@@ -59,6 +59,21 @@ public class DeliveryOverviewDestinationFilterBy {
59
59
@ SerializedName (SERIALIZED_NAME_SUBSCRIPTION_ID )
60
60
private List <String > subscriptionId ;
61
61
62
+ public static final String SERIALIZED_NAME_ACTIVATION_ID = "activationId" ;
63
+
64
+ @ SerializedName (SERIALIZED_NAME_ACTIVATION_ID )
65
+ private List <String > activationId ;
66
+
67
+ public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId" ;
68
+
69
+ @ SerializedName (SERIALIZED_NAME_AUDIENCE_ID )
70
+ private List <String > audienceId ;
71
+
72
+ public static final String SERIALIZED_NAME_SPACE_ID = "spaceId" ;
73
+
74
+ @ SerializedName (SERIALIZED_NAME_SPACE_ID )
75
+ private List <String > spaceId ;
76
+
62
77
public DeliveryOverviewDestinationFilterBy () {}
63
78
64
79
public DeliveryOverviewDestinationFilterBy discardReason (List <String > discardReason ) {
@@ -204,6 +219,90 @@ public void setSubscriptionId(List<String> subscriptionId) {
204
219
this .subscriptionId = subscriptionId ;
205
220
}
206
221
222
+ public DeliveryOverviewDestinationFilterBy activationId (List <String > activationId ) {
223
+
224
+ this .activationId = activationId ;
225
+ return this ;
226
+ }
227
+
228
+ public DeliveryOverviewDestinationFilterBy addActivationIdItem (String activationIdItem ) {
229
+ if (this .activationId == null ) {
230
+ this .activationId = new ArrayList <>();
231
+ }
232
+ this .activationId .add (activationIdItem );
233
+ return this ;
234
+ }
235
+
236
+ /**
237
+ * A list of strings of event context IDs from a Linked Audience mapping/activation.
238
+ *
239
+ * @return activationId
240
+ */
241
+ @ javax .annotation .Nullable
242
+ public List <String > getActivationId () {
243
+ return activationId ;
244
+ }
245
+
246
+ public void setActivationId (List <String > activationId ) {
247
+ this .activationId = activationId ;
248
+ }
249
+
250
+ public DeliveryOverviewDestinationFilterBy audienceId (List <String > audienceId ) {
251
+
252
+ this .audienceId = audienceId ;
253
+ return this ;
254
+ }
255
+
256
+ public DeliveryOverviewDestinationFilterBy addAudienceIdItem (String audienceIdItem ) {
257
+ if (this .audienceId == null ) {
258
+ this .audienceId = new ArrayList <>();
259
+ }
260
+ this .audienceId .add (audienceIdItem );
261
+ return this ;
262
+ }
263
+
264
+ /**
265
+ * A list of strings of audienceIDs for a Linked Audience.
266
+ *
267
+ * @return audienceId
268
+ */
269
+ @ javax .annotation .Nullable
270
+ public List <String > getAudienceId () {
271
+ return audienceId ;
272
+ }
273
+
274
+ public void setAudienceId (List <String > audienceId ) {
275
+ this .audienceId = audienceId ;
276
+ }
277
+
278
+ public DeliveryOverviewDestinationFilterBy spaceId (List <String > spaceId ) {
279
+
280
+ this .spaceId = spaceId ;
281
+ return this ;
282
+ }
283
+
284
+ public DeliveryOverviewDestinationFilterBy addSpaceIdItem (String spaceIdItem ) {
285
+ if (this .spaceId == null ) {
286
+ this .spaceId = new ArrayList <>();
287
+ }
288
+ this .spaceId .add (spaceIdItem );
289
+ return this ;
290
+ }
291
+
292
+ /**
293
+ * A list of strings of spaceIDs for a Linked Audience.
294
+ *
295
+ * @return spaceId
296
+ */
297
+ @ javax .annotation .Nullable
298
+ public List <String > getSpaceId () {
299
+ return spaceId ;
300
+ }
301
+
302
+ public void setSpaceId (List <String > spaceId ) {
303
+ this .spaceId = spaceId ;
304
+ }
305
+
207
306
@ Override
208
307
public boolean equals (Object o ) {
209
308
if (this == o ) {
@@ -219,12 +318,24 @@ public boolean equals(Object o) {
219
318
&& Objects .equals (this .eventType , deliveryOverviewDestinationFilterBy .eventType )
220
319
&& Objects .equals (this .appVersion , deliveryOverviewDestinationFilterBy .appVersion )
221
320
&& Objects .equals (
222
- this .subscriptionId , deliveryOverviewDestinationFilterBy .subscriptionId );
321
+ this .subscriptionId , deliveryOverviewDestinationFilterBy .subscriptionId )
322
+ && Objects .equals (
323
+ this .activationId , deliveryOverviewDestinationFilterBy .activationId )
324
+ && Objects .equals (this .audienceId , deliveryOverviewDestinationFilterBy .audienceId )
325
+ && Objects .equals (this .spaceId , deliveryOverviewDestinationFilterBy .spaceId );
223
326
}
224
327
225
328
@ Override
226
329
public int hashCode () {
227
- return Objects .hash (discardReason , eventName , eventType , appVersion , subscriptionId );
330
+ return Objects .hash (
331
+ discardReason ,
332
+ eventName ,
333
+ eventType ,
334
+ appVersion ,
335
+ subscriptionId ,
336
+ activationId ,
337
+ audienceId ,
338
+ spaceId );
228
339
}
229
340
230
341
@ Override
@@ -236,6 +347,9 @@ public String toString() {
236
347
sb .append (" eventType: " ).append (toIndentedString (eventType )).append ("\n " );
237
348
sb .append (" appVersion: " ).append (toIndentedString (appVersion )).append ("\n " );
238
349
sb .append (" subscriptionId: " ).append (toIndentedString (subscriptionId )).append ("\n " );
350
+ sb .append (" activationId: " ).append (toIndentedString (activationId )).append ("\n " );
351
+ sb .append (" audienceId: " ).append (toIndentedString (audienceId )).append ("\n " );
352
+ sb .append (" spaceId: " ).append (toIndentedString (spaceId )).append ("\n " );
239
353
sb .append ("}" );
240
354
return sb .toString ();
241
355
}
@@ -262,6 +376,9 @@ private String toIndentedString(Object o) {
262
376
openapiFields .add ("eventType" );
263
377
openapiFields .add ("appVersion" );
264
378
openapiFields .add ("subscriptionId" );
379
+ openapiFields .add ("activationId" );
380
+ openapiFields .add ("audienceId" );
381
+ openapiFields .add ("spaceId" );
265
382
266
383
// a set of required properties/fields (JSON key names)
267
384
openapiRequiredFields = new HashSet <String >();
@@ -349,6 +466,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
349
466
+ " but got `%s`" ,
350
467
jsonObj .get ("subscriptionId" ).toString ()));
351
468
}
469
+ // ensure the optional json data is an array if present
470
+ if (jsonObj .get ("activationId" ) != null
471
+ && !jsonObj .get ("activationId" ).isJsonNull ()
472
+ && !jsonObj .get ("activationId" ).isJsonArray ()) {
473
+ throw new IllegalArgumentException (
474
+ String .format (
475
+ "Expected the field `activationId` to be an array in the JSON string"
476
+ + " but got `%s`" ,
477
+ jsonObj .get ("activationId" ).toString ()));
478
+ }
479
+ // ensure the optional json data is an array if present
480
+ if (jsonObj .get ("audienceId" ) != null
481
+ && !jsonObj .get ("audienceId" ).isJsonNull ()
482
+ && !jsonObj .get ("audienceId" ).isJsonArray ()) {
483
+ throw new IllegalArgumentException (
484
+ String .format (
485
+ "Expected the field `audienceId` to be an array in the JSON string but"
486
+ + " got `%s`" ,
487
+ jsonObj .get ("audienceId" ).toString ()));
488
+ }
489
+ // ensure the optional json data is an array if present
490
+ if (jsonObj .get ("spaceId" ) != null
491
+ && !jsonObj .get ("spaceId" ).isJsonNull ()
492
+ && !jsonObj .get ("spaceId" ).isJsonArray ()) {
493
+ throw new IllegalArgumentException (
494
+ String .format (
495
+ "Expected the field `spaceId` to be an array in the JSON string but got"
496
+ + " `%s`" ,
497
+ jsonObj .get ("spaceId" ).toString ()));
498
+ }
352
499
}
353
500
354
501
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
0 commit comments