2424import com .segment .publicapi .JSON ;
2525import java .io .IOException ;
2626import java .util .ArrayList ;
27+ import java .util .Arrays ;
2728import java .util .HashSet ;
2829import java .util .List ;
2930import java .util .Map ;
3031import java .util .Objects ;
3132import java .util .Set ;
33+ import org .openapitools .jackson .nullable .JsonNullable ;
3234
3335/** AddDestinationToAudienceAlphaOutput */
3436public 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 >();
0 commit comments