@@ -50,6 +50,16 @@ public class DestinationSubscriptionUpdateInput {
50
50
@ SerializedName (SERIALIZED_NAME_SETTINGS )
51
51
private Map <String , Object > settings ;
52
52
53
+ public static final String SERIALIZED_NAME_REVERSE_E_T_L_MODEL_ID = "reverseETLModelId" ;
54
+
55
+ @ SerializedName (SERIALIZED_NAME_REVERSE_E_T_L_MODEL_ID )
56
+ private String reverseETLModelId ;
57
+
58
+ public static final String SERIALIZED_NAME_REVERSE_E_T_L_SCHEDULE = "reverseETLSchedule" ;
59
+
60
+ @ SerializedName (SERIALIZED_NAME_REVERSE_E_T_L_SCHEDULE )
61
+ private ReverseEtlScheduleDefinition reverseETLSchedule ;
62
+
53
63
public DestinationSubscriptionUpdateInput () {}
54
64
55
65
public DestinationSubscriptionUpdateInput name (String name ) {
@@ -140,6 +150,47 @@ public void setSettings(Map<String, Object> settings) {
140
150
this .settings = settings ;
141
151
}
142
152
153
+ public DestinationSubscriptionUpdateInput reverseETLModelId (String reverseETLModelId ) {
154
+
155
+ this .reverseETLModelId = reverseETLModelId ;
156
+ return this ;
157
+ }
158
+
159
+ /**
160
+ * (Reverse ETL only) The reverse ETL model to attach this subscription to.
161
+ *
162
+ * @return reverseETLModelId
163
+ */
164
+ @ javax .annotation .Nullable
165
+ public String getReverseETLModelId () {
166
+ return reverseETLModelId ;
167
+ }
168
+
169
+ public void setReverseETLModelId (String reverseETLModelId ) {
170
+ this .reverseETLModelId = reverseETLModelId ;
171
+ }
172
+
173
+ public DestinationSubscriptionUpdateInput reverseETLSchedule (
174
+ ReverseEtlScheduleDefinition reverseETLSchedule ) {
175
+
176
+ this .reverseETLSchedule = reverseETLSchedule ;
177
+ return this ;
178
+ }
179
+
180
+ /**
181
+ * Get reverseETLSchedule
182
+ *
183
+ * @return reverseETLSchedule
184
+ */
185
+ @ javax .annotation .Nullable
186
+ public ReverseEtlScheduleDefinition getReverseETLSchedule () {
187
+ return reverseETLSchedule ;
188
+ }
189
+
190
+ public void setReverseETLSchedule (ReverseEtlScheduleDefinition reverseETLSchedule ) {
191
+ this .reverseETLSchedule = reverseETLSchedule ;
192
+ }
193
+
143
194
@ Override
144
195
public boolean equals (Object o ) {
145
196
if (this == o ) {
@@ -153,12 +204,19 @@ public boolean equals(Object o) {
153
204
return Objects .equals (this .name , destinationSubscriptionUpdateInput .name )
154
205
&& Objects .equals (this .trigger , destinationSubscriptionUpdateInput .trigger )
155
206
&& Objects .equals (this .enabled , destinationSubscriptionUpdateInput .enabled )
156
- && Objects .equals (this .settings , destinationSubscriptionUpdateInput .settings );
207
+ && Objects .equals (this .settings , destinationSubscriptionUpdateInput .settings )
208
+ && Objects .equals (
209
+ this .reverseETLModelId ,
210
+ destinationSubscriptionUpdateInput .reverseETLModelId )
211
+ && Objects .equals (
212
+ this .reverseETLSchedule ,
213
+ destinationSubscriptionUpdateInput .reverseETLSchedule );
157
214
}
158
215
159
216
@ Override
160
217
public int hashCode () {
161
- return Objects .hash (name , trigger , enabled , settings );
218
+ return Objects .hash (
219
+ name , trigger , enabled , settings , reverseETLModelId , reverseETLSchedule );
162
220
}
163
221
164
222
@ Override
@@ -169,6 +227,12 @@ public String toString() {
169
227
sb .append (" trigger: " ).append (toIndentedString (trigger )).append ("\n " );
170
228
sb .append (" enabled: " ).append (toIndentedString (enabled )).append ("\n " );
171
229
sb .append (" settings: " ).append (toIndentedString (settings )).append ("\n " );
230
+ sb .append (" reverseETLModelId: " )
231
+ .append (toIndentedString (reverseETLModelId ))
232
+ .append ("\n " );
233
+ sb .append (" reverseETLSchedule: " )
234
+ .append (toIndentedString (reverseETLSchedule ))
235
+ .append ("\n " );
172
236
sb .append ("}" );
173
237
return sb .toString ();
174
238
}
@@ -194,6 +258,8 @@ private String toIndentedString(Object o) {
194
258
openapiFields .add ("trigger" );
195
259
openapiFields .add ("enabled" );
196
260
openapiFields .add ("settings" );
261
+ openapiFields .add ("reverseETLModelId" );
262
+ openapiFields .add ("reverseETLSchedule" );
197
263
198
264
// a set of required properties/fields (JSON key names)
199
265
openapiRequiredFields = new HashSet <String >();
@@ -247,6 +313,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
247
313
+ " but got `%s`" ,
248
314
jsonObj .get ("trigger" ).toString ()));
249
315
}
316
+ if ((jsonObj .get ("reverseETLModelId" ) != null
317
+ && !jsonObj .get ("reverseETLModelId" ).isJsonNull ())
318
+ && !jsonObj .get ("reverseETLModelId" ).isJsonPrimitive ()) {
319
+ throw new IllegalArgumentException (
320
+ String .format (
321
+ "Expected the field `reverseETLModelId` to be a primitive type in the"
322
+ + " JSON string but got `%s`" ,
323
+ jsonObj .get ("reverseETLModelId" ).toString ()));
324
+ }
325
+ // validate the optional field `reverseETLSchedule`
326
+ if (jsonObj .get ("reverseETLSchedule" ) != null
327
+ && !jsonObj .get ("reverseETLSchedule" ).isJsonNull ()) {
328
+ ReverseEtlScheduleDefinition .validateJsonElement (jsonObj .get ("reverseETLSchedule" ));
329
+ }
250
330
}
251
331
252
332
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
0 commit comments