Skip to content

Commit 9545124

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@a6d7679e.
1 parent a470281 commit 9545124

File tree

2 files changed

+105
-4
lines changed

2 files changed

+105
-4
lines changed

src/main/java/com/segment/publicapi/models/AddDestinationToAudienceAlphaOutput.java

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
import com.segment.publicapi.JSON;
2525
import java.io.IOException;
2626
import java.util.ArrayList;
27+
import java.util.Arrays;
2728
import java.util.HashSet;
2829
import java.util.List;
2930
import java.util.Map;
3031
import java.util.Objects;
3132
import java.util.Set;
33+
import org.openapitools.jackson.nullable.JsonNullable;
3234

3335
/** AddDestinationToAudienceAlphaOutput */
3436
public class AddDestinationToAudienceAlphaOutput {
@@ -42,6 +44,11 @@ public class AddDestinationToAudienceAlphaOutput {
4244
@SerializedName(SERIALIZED_NAME_ID_SYNC_CONFIGURATION)
4345
private List<IDSyncConfigurationInput> idSyncConfiguration = new ArrayList<>();
4446

47+
public static final String SERIALIZED_NAME_CONNECTION_SETTINGS = "connectionSettings";
48+
49+
@SerializedName(SERIALIZED_NAME_CONNECTION_SETTINGS)
50+
private Object connectionSettings = null;
51+
4552
public AddDestinationToAudienceAlphaOutput() {}
4653

4754
public AddDestinationToAudienceAlphaOutput connection(Connection connection) {
@@ -94,6 +101,27 @@ public void setIdSyncConfiguration(List<IDSyncConfigurationInput> idSyncConfigur
94101
this.idSyncConfiguration = idSyncConfiguration;
95102
}
96103

104+
public AddDestinationToAudienceAlphaOutput connectionSettings(Object connectionSettings) {
105+
106+
this.connectionSettings = connectionSettings;
107+
return this;
108+
}
109+
110+
/**
111+
* The settings that a Destination requires to create audiences on a third-party platform. These
112+
* settings are Destination-specific and thus are best defined as unknown.
113+
*
114+
* @return connectionSettings
115+
*/
116+
@javax.annotation.Nullable
117+
public Object getConnectionSettings() {
118+
return connectionSettings;
119+
}
120+
121+
public void setConnectionSettings(Object connectionSettings) {
122+
this.connectionSettings = connectionSettings;
123+
}
124+
97125
@Override
98126
public boolean equals(Object o) {
99127
if (this == o) {
@@ -107,12 +135,31 @@ public boolean equals(Object o) {
107135
return Objects.equals(this.connection, addDestinationToAudienceAlphaOutput.connection)
108136
&& Objects.equals(
109137
this.idSyncConfiguration,
110-
addDestinationToAudienceAlphaOutput.idSyncConfiguration);
138+
addDestinationToAudienceAlphaOutput.idSyncConfiguration)
139+
&& Objects.equals(
140+
this.connectionSettings,
141+
addDestinationToAudienceAlphaOutput.connectionSettings);
142+
}
143+
144+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
145+
return a == b
146+
|| (a != null
147+
&& b != null
148+
&& a.isPresent()
149+
&& b.isPresent()
150+
&& Objects.deepEquals(a.get(), b.get()));
111151
}
112152

113153
@Override
114154
public int hashCode() {
115-
return Objects.hash(connection, idSyncConfiguration);
155+
return Objects.hash(connection, idSyncConfiguration, connectionSettings);
156+
}
157+
158+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
159+
if (a == null) {
160+
return 1;
161+
}
162+
return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31;
116163
}
117164

118165
@Override
@@ -123,6 +170,9 @@ public String toString() {
123170
sb.append(" idSyncConfiguration: ")
124171
.append(toIndentedString(idSyncConfiguration))
125172
.append("\n");
173+
sb.append(" connectionSettings: ")
174+
.append(toIndentedString(connectionSettings))
175+
.append("\n");
126176
sb.append("}");
127177
return sb.toString();
128178
}
@@ -146,6 +196,7 @@ private String toIndentedString(Object o) {
146196
openapiFields = new HashSet<String>();
147197
openapiFields.add("connection");
148198
openapiFields.add("idSyncConfiguration");
199+
openapiFields.add("connectionSettings");
149200

150201
// a set of required properties/fields (JSON key names)
151202
openapiRequiredFields = new HashSet<String>();

src/main/java/com/segment/publicapi/models/SimpleDestination.java

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
import com.segment.publicapi.JSON;
2525
import java.io.IOException;
2626
import java.util.ArrayList;
27+
import java.util.Arrays;
2728
import java.util.HashMap;
2829
import java.util.HashSet;
2930
import java.util.List;
3031
import java.util.Map;
3132
import java.util.Objects;
3233
import java.util.Set;
34+
import org.openapitools.jackson.nullable.JsonNullable;
3335

3436
/** SimpleDestination */
3537
public class SimpleDestination {
@@ -83,6 +85,11 @@ public class SimpleDestination {
8385
@SerializedName(SERIALIZED_NAME_ID_SYNC_CONFIGURATION)
8486
private List<IDSyncConfigurationInput> idSyncConfiguration;
8587

88+
public static final String SERIALIZED_NAME_CONNECTION_SETTINGS = "connectionSettings";
89+
90+
@SerializedName(SERIALIZED_NAME_CONNECTION_SETTINGS)
91+
private Object connectionSettings = null;
92+
8693
public SimpleDestination() {}
8794

8895
public SimpleDestination id(String id) {
@@ -303,6 +310,27 @@ public void setIdSyncConfiguration(List<IDSyncConfigurationInput> idSyncConfigur
303310
this.idSyncConfiguration = idSyncConfiguration;
304311
}
305312

313+
public SimpleDestination connectionSettings(Object connectionSettings) {
314+
315+
this.connectionSettings = connectionSettings;
316+
return this;
317+
}
318+
319+
/**
320+
* The settings that a Destination requires to create audiences on a third-party platform. These
321+
* settings are Destination-specific and thus are best defined as unknown.
322+
*
323+
* @return connectionSettings
324+
*/
325+
@javax.annotation.Nullable
326+
public Object getConnectionSettings() {
327+
return connectionSettings;
328+
}
329+
330+
public void setConnectionSettings(Object connectionSettings) {
331+
this.connectionSettings = connectionSettings;
332+
}
333+
306334
@Override
307335
public boolean equals(Object o) {
308336
if (this == o) {
@@ -321,7 +349,17 @@ public boolean equals(Object o) {
321349
&& Objects.equals(this.settings, simpleDestination.settings)
322350
&& Objects.equals(this.destinationId, simpleDestination.destinationId)
323351
&& Objects.equals(this.metadata, simpleDestination.metadata)
324-
&& Objects.equals(this.idSyncConfiguration, simpleDestination.idSyncConfiguration);
352+
&& Objects.equals(this.idSyncConfiguration, simpleDestination.idSyncConfiguration)
353+
&& Objects.equals(this.connectionSettings, simpleDestination.connectionSettings);
354+
}
355+
356+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
357+
return a == b
358+
|| (a != null
359+
&& b != null
360+
&& a.isPresent()
361+
&& b.isPresent()
362+
&& Objects.deepEquals(a.get(), b.get()));
325363
}
326364

327365
@Override
@@ -336,7 +374,15 @@ public int hashCode() {
336374
settings,
337375
destinationId,
338376
metadata,
339-
idSyncConfiguration);
377+
idSyncConfiguration,
378+
connectionSettings);
379+
}
380+
381+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
382+
if (a == null) {
383+
return 1;
384+
}
385+
return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31;
340386
}
341387

342388
@Override
@@ -355,6 +401,9 @@ public String toString() {
355401
sb.append(" idSyncConfiguration: ")
356402
.append(toIndentedString(idSyncConfiguration))
357403
.append("\n");
404+
sb.append(" connectionSettings: ")
405+
.append(toIndentedString(connectionSettings))
406+
.append("\n");
358407
sb.append("}");
359408
return sb.toString();
360409
}
@@ -386,6 +435,7 @@ private String toIndentedString(Object o) {
386435
openapiFields.add("destinationId");
387436
openapiFields.add("metadata");
388437
openapiFields.add("idSyncConfiguration");
438+
openapiFields.add("connectionSettings");
389439

390440
// a set of required properties/fields (JSON key names)
391441
openapiRequiredFields = new HashSet<String>();

0 commit comments

Comments
 (0)