7575public class AliasesRequest extends CatRequestBase {
7676 private final List <ExpandWildcard > expandWildcards ;
7777
78+ private final List <String > h ;
79+
7880 @ Nullable
7981 private final Boolean local ;
8082
@@ -83,14 +85,18 @@ public class AliasesRequest extends CatRequestBase {
8385
8486 private final List <String > name ;
8587
88+ private final List <String > s ;
89+
8690 // ---------------------------------------------------------------------------------------------
8791
8892 private AliasesRequest (Builder builder ) {
8993
9094 this .expandWildcards = ApiTypeHelper .unmodifiable (builder .expandWildcards );
95+ this .h = ApiTypeHelper .unmodifiable (builder .h );
9196 this .local = builder .local ;
9297 this .masterTimeout = builder .masterTimeout ;
9398 this .name = ApiTypeHelper .unmodifiable (builder .name );
99+ this .s = ApiTypeHelper .unmodifiable (builder .s );
94100
95101 }
96102
@@ -110,6 +116,15 @@ public final List<ExpandWildcard> expandWildcards() {
110116 return this .expandWildcards ;
111117 }
112118
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+
113128 /**
114129 * If <code>true</code>, the request computes the list of selected nodes from
115130 * the local cluster state. If <code>false</code> the list of selected nodes are
@@ -148,6 +163,17 @@ public final List<String> name() {
148163 return this .name ;
149164 }
150165
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+
151177 // ---------------------------------------------------------------------------------------------
152178
153179 /**
@@ -160,6 +186,9 @@ public static class Builder extends CatRequestBase.AbstractBuilder<Builder>
160186 @ Nullable
161187 private List <ExpandWildcard > expandWildcards ;
162188
189+ @ Nullable
190+ private List <String > h ;
191+
163192 @ Nullable
164193 private Boolean local ;
165194
@@ -169,6 +198,9 @@ public static class Builder extends CatRequestBase.AbstractBuilder<Builder>
169198 @ Nullable
170199 private List <String > name ;
171200
201+ @ Nullable
202+ private List <String > s ;
203+
172204 /**
173205 * The type of index that wildcard patterns can match. If the request can target
174206 * data streams, this argument determines whether wildcard expressions match
@@ -199,6 +231,30 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val
199231 return this ;
200232 }
201233
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+
202258 /**
203259 * If <code>true</code>, the request computes the list of selected nodes from
204260 * 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) {
266322 return this ;
267323 }
268324
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+
269353 @ Override
270354 protected Builder self () {
271355 return this ;
@@ -350,10 +434,16 @@ public AliasesRequest build() {
350434 if (request .masterTimeout != null ) {
351435 params .put ("master_timeout" , request .masterTimeout ._toJsonString ());
352436 }
437+ if (ApiTypeHelper .isDefined (request .s )) {
438+ params .put ("s" , request .s .stream ().map (v -> v ).collect (Collectors .joining ("," )));
439+ }
353440 if (ApiTypeHelper .isDefined (request .expandWildcards )) {
354441 params .put ("expand_wildcards" ,
355442 request .expandWildcards .stream ().map (v -> v .jsonValue ()).collect (Collectors .joining ("," )));
356443 }
444+ if (ApiTypeHelper .isDefined (request .h )) {
445+ params .put ("h" , request .h .stream ().map (v -> v ).collect (Collectors .joining ("," )));
446+ }
357447 if (request .local != null ) {
358448 params .put ("local" , String .valueOf (request .local ));
359449 }
0 commit comments