75
75
public class AliasesRequest extends CatRequestBase {
76
76
private final List <ExpandWildcard > expandWildcards ;
77
77
78
+ private final List <String > h ;
79
+
78
80
@ Nullable
79
81
private final Boolean local ;
80
82
@@ -83,14 +85,18 @@ public class AliasesRequest extends CatRequestBase {
83
85
84
86
private final List <String > name ;
85
87
88
+ private final List <String > s ;
89
+
86
90
// ---------------------------------------------------------------------------------------------
87
91
88
92
private AliasesRequest (Builder builder ) {
89
93
90
94
this .expandWildcards = ApiTypeHelper .unmodifiable (builder .expandWildcards );
95
+ this .h = ApiTypeHelper .unmodifiable (builder .h );
91
96
this .local = builder .local ;
92
97
this .masterTimeout = builder .masterTimeout ;
93
98
this .name = ApiTypeHelper .unmodifiable (builder .name );
99
+ this .s = ApiTypeHelper .unmodifiable (builder .s );
94
100
95
101
}
96
102
@@ -110,6 +116,15 @@ public final List<ExpandWildcard> expandWildcards() {
110
116
return this .expandWildcards ;
111
117
}
112
118
119
+ /**
120
+ * List of columns to appear in the response. Supports simple wildcards.
121
+ * <p>
122
+ * API name: {@code h}
123
+ */
124
+ public final List <String > h () {
125
+ return this .h ;
126
+ }
127
+
113
128
/**
114
129
* If <code>true</code>, the request computes the list of selected nodes from
115
130
* the local cluster state. If <code>false</code> the list of selected nodes are
@@ -148,6 +163,17 @@ public final List<String> name() {
148
163
return this .name ;
149
164
}
150
165
166
+ /**
167
+ * List of columns that determine how the table should be sorted. Sorting
168
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
169
+ * <code>:desc</code> as a suffix to the column name.
170
+ * <p>
171
+ * API name: {@code s}
172
+ */
173
+ public final List <String > s () {
174
+ return this .s ;
175
+ }
176
+
151
177
// ---------------------------------------------------------------------------------------------
152
178
153
179
/**
@@ -160,6 +186,9 @@ public static class Builder extends CatRequestBase.AbstractBuilder<Builder>
160
186
@ Nullable
161
187
private List <ExpandWildcard > expandWildcards ;
162
188
189
+ @ Nullable
190
+ private List <String > h ;
191
+
163
192
@ Nullable
164
193
private Boolean local ;
165
194
@@ -169,6 +198,9 @@ public static class Builder extends CatRequestBase.AbstractBuilder<Builder>
169
198
@ Nullable
170
199
private List <String > name ;
171
200
201
+ @ Nullable
202
+ private List <String > s ;
203
+
172
204
/**
173
205
* The type of index that wildcard patterns can match. If the request can target
174
206
* data streams, this argument determines whether wildcard expressions match
@@ -199,6 +231,30 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val
199
231
return this ;
200
232
}
201
233
234
+ /**
235
+ * List of columns to appear in the response. Supports simple wildcards.
236
+ * <p>
237
+ * API name: {@code h}
238
+ * <p>
239
+ * Adds all elements of <code>list</code> to <code>h</code>.
240
+ */
241
+ public final Builder h (List <String > list ) {
242
+ this .h = _listAddAll (this .h , list );
243
+ return this ;
244
+ }
245
+
246
+ /**
247
+ * List of columns to appear in the response. Supports simple wildcards.
248
+ * <p>
249
+ * API name: {@code h}
250
+ * <p>
251
+ * Adds one or more values to <code>h</code>.
252
+ */
253
+ public final Builder h (String value , String ... values ) {
254
+ this .h = _listAdd (this .h , value , values );
255
+ return this ;
256
+ }
257
+
202
258
/**
203
259
* If <code>true</code>, the request computes the list of selected nodes from
204
260
* the local cluster state. If <code>false</code> the list of selected nodes are
@@ -266,6 +322,34 @@ public final Builder name(String value, String... values) {
266
322
return this ;
267
323
}
268
324
325
+ /**
326
+ * List of columns that determine how the table should be sorted. Sorting
327
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
328
+ * <code>:desc</code> as a suffix to the column name.
329
+ * <p>
330
+ * API name: {@code s}
331
+ * <p>
332
+ * Adds all elements of <code>list</code> to <code>s</code>.
333
+ */
334
+ public final Builder s (List <String > list ) {
335
+ this .s = _listAddAll (this .s , list );
336
+ return this ;
337
+ }
338
+
339
+ /**
340
+ * List of columns that determine how the table should be sorted. Sorting
341
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
342
+ * <code>:desc</code> as a suffix to the column name.
343
+ * <p>
344
+ * API name: {@code s}
345
+ * <p>
346
+ * Adds one or more values to <code>s</code>.
347
+ */
348
+ public final Builder s (String value , String ... values ) {
349
+ this .s = _listAdd (this .s , value , values );
350
+ return this ;
351
+ }
352
+
269
353
@ Override
270
354
protected Builder self () {
271
355
return this ;
@@ -350,10 +434,16 @@ public AliasesRequest build() {
350
434
if (request .masterTimeout != null ) {
351
435
params .put ("master_timeout" , request .masterTimeout ._toJsonString ());
352
436
}
437
+ if (ApiTypeHelper .isDefined (request .s )) {
438
+ params .put ("s" , request .s .stream ().map (v -> v ).collect (Collectors .joining ("," )));
439
+ }
353
440
if (ApiTypeHelper .isDefined (request .expandWildcards )) {
354
441
params .put ("expand_wildcards" ,
355
442
request .expandWildcards .stream ().map (v -> v .jsonValue ()).collect (Collectors .joining ("," )));
356
443
}
444
+ if (ApiTypeHelper .isDefined (request .h )) {
445
+ params .put ("h" , request .h .stream ().map (v -> v ).collect (Collectors .joining ("," )));
446
+ }
357
447
if (request .local != null ) {
358
448
params .put ("local" , String .valueOf (request .local ));
359
449
}
0 commit comments