@@ -41,11 +41,6 @@ public class CreateFilterInput {
41
41
@ SerializedName (SERIALIZED_NAME_ENABLED )
42
42
private Boolean enabled ;
43
43
44
- public static final String SERIALIZED_NAME_DROP = "drop" ;
45
-
46
- @ SerializedName (SERIALIZED_NAME_DROP )
47
- private Boolean drop ;
48
-
49
44
public static final String SERIALIZED_NAME_NAME = "name" ;
50
45
51
46
@ SerializedName (SERIALIZED_NAME_NAME )
@@ -61,10 +56,15 @@ public class CreateFilterInput {
61
56
@ SerializedName (SERIALIZED_NAME_IF )
62
57
private String _if ;
63
58
64
- public static final String SERIALIZED_NAME_PROPERTY_DROPS = "propertyDrops " ;
59
+ public static final String SERIALIZED_NAME_DROP = "drop " ;
65
60
66
- @ SerializedName (SERIALIZED_NAME_PROPERTY_DROPS )
67
- private List <String > propertyDrops ;
61
+ @ SerializedName (SERIALIZED_NAME_DROP )
62
+ private Boolean drop ;
63
+
64
+ public static final String SERIALIZED_NAME_DROP_PROPERTIES = "dropProperties" ;
65
+
66
+ @ SerializedName (SERIALIZED_NAME_DROP_PROPERTIES )
67
+ private List <String > dropProperties ;
68
68
69
69
public static final String SERIALIZED_NAME_ALLOW_PROPERTIES = "allowProperties" ;
70
70
@@ -113,26 +113,6 @@ public void setEnabled(Boolean enabled) {
113
113
this .enabled = enabled ;
114
114
}
115
115
116
- public CreateFilterInput drop (Boolean drop ) {
117
-
118
- this .drop = drop ;
119
- return this ;
120
- }
121
-
122
- /**
123
- * Whether the event is dropped.
124
- *
125
- * @return drop
126
- */
127
- @ javax .annotation .Nullable
128
- public Boolean getDrop () {
129
- return drop ;
130
- }
131
-
132
- public void setDrop (Boolean drop ) {
133
- this .drop = drop ;
134
- }
135
-
136
116
public CreateFilterInput name (String name ) {
137
117
138
118
this .name = name ;
@@ -193,32 +173,52 @@ public void setIf(String _if) {
193
173
this ._if = _if ;
194
174
}
195
175
196
- public CreateFilterInput propertyDrops ( List < String > propertyDrops ) {
176
+ public CreateFilterInput drop ( Boolean drop ) {
197
177
198
- this .propertyDrops = propertyDrops ;
178
+ this .drop = drop ;
199
179
return this ;
200
180
}
201
181
202
- public CreateFilterInput addPropertyDropsItem (String propertyDropsItem ) {
203
- if (this .propertyDrops == null ) {
204
- this .propertyDrops = new ArrayList <>();
182
+ /**
183
+ * Whether the event is dropped.
184
+ *
185
+ * @return drop
186
+ */
187
+ @ javax .annotation .Nullable
188
+ public Boolean getDrop () {
189
+ return drop ;
190
+ }
191
+
192
+ public void setDrop (Boolean drop ) {
193
+ this .drop = drop ;
194
+ }
195
+
196
+ public CreateFilterInput dropProperties (List <String > dropProperties ) {
197
+
198
+ this .dropProperties = dropProperties ;
199
+ return this ;
200
+ }
201
+
202
+ public CreateFilterInput addDropPropertiesItem (String dropPropertiesItem ) {
203
+ if (this .dropProperties == null ) {
204
+ this .dropProperties = new ArrayList <>();
205
205
}
206
- this .propertyDrops .add (propertyDropsItem );
206
+ this .dropProperties .add (dropPropertiesItem );
207
207
return this ;
208
208
}
209
209
210
210
/**
211
211
* Describes the properties to be dropped on events that match the \"if\" statement.
212
212
*
213
- * @return propertyDrops
213
+ * @return dropProperties
214
214
*/
215
215
@ javax .annotation .Nullable
216
- public List <String > getPropertyDrops () {
217
- return propertyDrops ;
216
+ public List <String > getDropProperties () {
217
+ return dropProperties ;
218
218
}
219
219
220
- public void setPropertyDrops (List <String > propertyDrops ) {
221
- this .propertyDrops = propertyDrops ;
220
+ public void setDropProperties (List <String > dropProperties ) {
221
+ this .dropProperties = dropProperties ;
222
222
}
223
223
224
224
public CreateFilterInput allowProperties (List <String > allowProperties ) {
@@ -260,11 +260,11 @@ public boolean equals(Object o) {
260
260
CreateFilterInput createFilterInput = (CreateFilterInput ) o ;
261
261
return Objects .equals (this .integrationId , createFilterInput .integrationId )
262
262
&& Objects .equals (this .enabled , createFilterInput .enabled )
263
- && Objects .equals (this .drop , createFilterInput .drop )
264
263
&& Objects .equals (this .name , createFilterInput .name )
265
264
&& Objects .equals (this .description , createFilterInput .description )
266
265
&& Objects .equals (this ._if , createFilterInput ._if )
267
- && Objects .equals (this .propertyDrops , createFilterInput .propertyDrops )
266
+ && Objects .equals (this .drop , createFilterInput .drop )
267
+ && Objects .equals (this .dropProperties , createFilterInput .dropProperties )
268
268
&& Objects .equals (this .allowProperties , createFilterInput .allowProperties );
269
269
}
270
270
@@ -273,11 +273,11 @@ public int hashCode() {
273
273
return Objects .hash (
274
274
integrationId ,
275
275
enabled ,
276
- drop ,
277
276
name ,
278
277
description ,
279
278
_if ,
280
- propertyDrops ,
279
+ drop ,
280
+ dropProperties ,
281
281
allowProperties );
282
282
}
283
283
@@ -287,11 +287,11 @@ public String toString() {
287
287
sb .append ("class CreateFilterInput {\n " );
288
288
sb .append (" integrationId: " ).append (toIndentedString (integrationId )).append ("\n " );
289
289
sb .append (" enabled: " ).append (toIndentedString (enabled )).append ("\n " );
290
- sb .append (" drop: " ).append (toIndentedString (drop )).append ("\n " );
291
290
sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
292
291
sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
293
292
sb .append (" _if: " ).append (toIndentedString (_if )).append ("\n " );
294
- sb .append (" propertyDrops: " ).append (toIndentedString (propertyDrops )).append ("\n " );
293
+ sb .append (" drop: " ).append (toIndentedString (drop )).append ("\n " );
294
+ sb .append (" dropProperties: " ).append (toIndentedString (dropProperties )).append ("\n " );
295
295
sb .append (" allowProperties: " ).append (toIndentedString (allowProperties )).append ("\n " );
296
296
sb .append ("}" );
297
297
return sb .toString ();
@@ -316,11 +316,11 @@ private String toIndentedString(Object o) {
316
316
openapiFields = new HashSet <String >();
317
317
openapiFields .add ("integrationId" );
318
318
openapiFields .add ("enabled" );
319
- openapiFields .add ("drop" );
320
319
openapiFields .add ("name" );
321
320
openapiFields .add ("description" );
322
321
openapiFields .add ("if" );
323
- openapiFields .add ("propertyDrops" );
322
+ openapiFields .add ("drop" );
323
+ openapiFields .add ("dropProperties" );
324
324
openapiFields .add ("allowProperties" );
325
325
326
326
// a set of required properties/fields (JSON key names)
@@ -400,14 +400,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
400
400
jsonObj .get ("if" ).toString ()));
401
401
}
402
402
// ensure the optional json data is an array if present
403
- if (jsonObj .get ("propertyDrops " ) != null
404
- && !jsonObj .get ("propertyDrops " ).isJsonNull ()
405
- && !jsonObj .get ("propertyDrops " ).isJsonArray ()) {
403
+ if (jsonObj .get ("dropProperties " ) != null
404
+ && !jsonObj .get ("dropProperties " ).isJsonNull ()
405
+ && !jsonObj .get ("dropProperties " ).isJsonArray ()) {
406
406
throw new IllegalArgumentException (
407
407
String .format (
408
- "Expected the field `propertyDrops ` to be an array in the JSON string"
408
+ "Expected the field `dropProperties ` to be an array in the JSON string"
409
409
+ " but got `%s`" ,
410
- jsonObj .get ("propertyDrops " ).toString ()));
410
+ jsonObj .get ("dropProperties " ).toString ()));
411
411
}
412
412
// ensure the optional json data is an array if present
413
413
if (jsonObj .get ("allowProperties" ) != null
0 commit comments