@@ -87,6 +87,9 @@ public class PluginStats implements PlainJsonSerializable, ToCopyableBuilder<Plu
87
87
@ Nonnull
88
88
private final String opensearchVersion ;
89
89
90
+ @ Nonnull
91
+ private final List <String > optionalExtendedPlugins ;
92
+
90
93
@ Nonnull
91
94
private final String version ;
92
95
@@ -102,6 +105,7 @@ private PluginStats(Builder builder) {
102
105
this .licensed = builder .licensed ;
103
106
this .name = ApiTypeHelper .requireNonNull (builder .name , this , "name" );
104
107
this .opensearchVersion = ApiTypeHelper .requireNonNull (builder .opensearchVersion , this , "opensearchVersion" );
108
+ this .optionalExtendedPlugins = ApiTypeHelper .unmodifiable (builder .optionalExtendedPlugins );
105
109
this .version = ApiTypeHelper .requireNonNull (builder .version , this , "version" );
106
110
}
107
111
@@ -180,6 +184,14 @@ public final String opensearchVersion() {
180
184
return this .opensearchVersion ;
181
185
}
182
186
187
+ /**
188
+ * API name: {@code optional_extended_plugins}
189
+ */
190
+ @ Nonnull
191
+ public final List <String > optionalExtendedPlugins () {
192
+ return this .optionalExtendedPlugins ;
193
+ }
194
+
183
195
/**
184
196
* Required - API name: {@code version}
185
197
*/
@@ -234,6 +246,15 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
234
246
generator .writeKey ("opensearch_version" );
235
247
generator .write (this .opensearchVersion );
236
248
249
+ if (ApiTypeHelper .isDefined (this .optionalExtendedPlugins )) {
250
+ generator .writeKey ("optional_extended_plugins" );
251
+ generator .writeStartArray ();
252
+ for (String item0 : this .optionalExtendedPlugins ) {
253
+ generator .write (item0 );
254
+ }
255
+ generator .writeEnd ();
256
+ }
257
+
237
258
generator .writeKey ("version" );
238
259
generator .write (this .version );
239
260
}
@@ -266,6 +287,8 @@ public static class Builder extends ObjectBuilderBase implements CopyableBuilder
266
287
private Boolean licensed ;
267
288
private String name ;
268
289
private String opensearchVersion ;
290
+ @ Nullable
291
+ private List <String > optionalExtendedPlugins ;
269
292
private String version ;
270
293
271
294
public Builder () {}
@@ -280,6 +303,7 @@ private Builder(PluginStats o) {
280
303
this .licensed = o .licensed ;
281
304
this .name = o .name ;
282
305
this .opensearchVersion = o .opensearchVersion ;
306
+ this .optionalExtendedPlugins = _listCopy (o .optionalExtendedPlugins );
283
307
this .version = o .version ;
284
308
}
285
309
@@ -293,6 +317,7 @@ private Builder(Builder o) {
293
317
this .licensed = o .licensed ;
294
318
this .name = o .name ;
295
319
this .opensearchVersion = o .opensearchVersion ;
320
+ this .optionalExtendedPlugins = _listCopy (o .optionalExtendedPlugins );
296
321
this .version = o .version ;
297
322
}
298
323
@@ -400,6 +425,32 @@ public final Builder opensearchVersion(String value) {
400
425
return this ;
401
426
}
402
427
428
+ /**
429
+ * API name: {@code optional_extended_plugins}
430
+ *
431
+ * <p>
432
+ * Adds all elements of <code>list</code> to <code>optionalExtendedPlugins</code>.
433
+ * </p>
434
+ */
435
+ @ Nonnull
436
+ public final Builder optionalExtendedPlugins (List <String > list ) {
437
+ this .optionalExtendedPlugins = _listAddAll (this .optionalExtendedPlugins , list );
438
+ return this ;
439
+ }
440
+
441
+ /**
442
+ * API name: {@code optional_extended_plugins}
443
+ *
444
+ * <p>
445
+ * Adds one or more values to <code>optionalExtendedPlugins</code>.
446
+ * </p>
447
+ */
448
+ @ Nonnull
449
+ public final Builder optionalExtendedPlugins (String value , String ... values ) {
450
+ this .optionalExtendedPlugins = _listAdd (this .optionalExtendedPlugins , value , values );
451
+ return this ;
452
+ }
453
+
403
454
/**
404
455
* Required - API name: {@code version}
405
456
*/
@@ -443,6 +494,11 @@ protected static void setupPluginStatsDeserializer(ObjectDeserializer<PluginStat
443
494
op .add (Builder ::licensed , JsonpDeserializer .booleanDeserializer (), "licensed" );
444
495
op .add (Builder ::name , JsonpDeserializer .stringDeserializer (), "name" );
445
496
op .add (Builder ::opensearchVersion , JsonpDeserializer .stringDeserializer (), "opensearch_version" );
497
+ op .add (
498
+ Builder ::optionalExtendedPlugins ,
499
+ JsonpDeserializer .arrayDeserializer (JsonpDeserializer .stringDeserializer ()),
500
+ "optional_extended_plugins"
501
+ );
446
502
op .add (Builder ::version , JsonpDeserializer .stringDeserializer (), "version" );
447
503
}
448
504
@@ -458,6 +514,7 @@ public int hashCode() {
458
514
result = 31 * result + Objects .hashCode (this .licensed );
459
515
result = 31 * result + this .name .hashCode ();
460
516
result = 31 * result + this .opensearchVersion .hashCode ();
517
+ result = 31 * result + Objects .hashCode (this .optionalExtendedPlugins );
461
518
result = 31 * result + this .version .hashCode ();
462
519
return result ;
463
520
}
@@ -476,6 +533,7 @@ public boolean equals(Object o) {
476
533
&& Objects .equals (this .licensed , other .licensed )
477
534
&& this .name .equals (other .name )
478
535
&& this .opensearchVersion .equals (other .opensearchVersion )
536
+ && Objects .equals (this .optionalExtendedPlugins , other .optionalExtendedPlugins )
479
537
&& this .version .equals (other .version );
480
538
}
481
539
}
0 commit comments