74
74
public class AliasesRequest extends CatRequestBase {
75
75
private final List <ExpandWildcard > expandWildcards ;
76
76
77
+ private final List <String > h ;
78
+
77
79
@ Nullable
78
80
private final Time masterTimeout ;
79
81
80
82
private final List <String > name ;
81
83
84
+ private final List <String > s ;
85
+
82
86
// ---------------------------------------------------------------------------------------------
83
87
84
88
private AliasesRequest (Builder builder ) {
85
89
86
90
this .expandWildcards = ApiTypeHelper .unmodifiable (builder .expandWildcards );
91
+ this .h = ApiTypeHelper .unmodifiable (builder .h );
87
92
this .masterTimeout = builder .masterTimeout ;
88
93
this .name = ApiTypeHelper .unmodifiable (builder .name );
94
+ this .s = ApiTypeHelper .unmodifiable (builder .s );
89
95
90
96
}
91
97
@@ -105,6 +111,15 @@ public final List<ExpandWildcard> expandWildcards() {
105
111
return this .expandWildcards ;
106
112
}
107
113
114
+ /**
115
+ * List of columns to appear in the response. Supports simple wildcards.
116
+ * <p>
117
+ * API name: {@code h}
118
+ */
119
+ public final List <String > h () {
120
+ return this .h ;
121
+ }
122
+
108
123
/**
109
124
* The period to wait for a connection to the master node. If the master node is
110
125
* not available before the timeout expires, the request fails and returns an
@@ -129,6 +144,17 @@ public final List<String> name() {
129
144
return this .name ;
130
145
}
131
146
147
+ /**
148
+ * List of columns that determine how the table should be sorted. Sorting
149
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
150
+ * <code>:desc</code> as a suffix to the column name.
151
+ * <p>
152
+ * API name: {@code s}
153
+ */
154
+ public final List <String > s () {
155
+ return this .s ;
156
+ }
157
+
132
158
// ---------------------------------------------------------------------------------------------
133
159
134
160
/**
@@ -141,12 +167,18 @@ public static class Builder extends CatRequestBase.AbstractBuilder<Builder>
141
167
@ Nullable
142
168
private List <ExpandWildcard > expandWildcards ;
143
169
170
+ @ Nullable
171
+ private List <String > h ;
172
+
144
173
@ Nullable
145
174
private Time masterTimeout ;
146
175
147
176
@ Nullable
148
177
private List <String > name ;
149
178
179
+ @ Nullable
180
+ private List <String > s ;
181
+
150
182
/**
151
183
* The type of index that wildcard patterns can match. If the request can target
152
184
* data streams, this argument determines whether wildcard expressions match
@@ -177,6 +209,30 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val
177
209
return this ;
178
210
}
179
211
212
+ /**
213
+ * List of columns to appear in the response. Supports simple wildcards.
214
+ * <p>
215
+ * API name: {@code h}
216
+ * <p>
217
+ * Adds all elements of <code>list</code> to <code>h</code>.
218
+ */
219
+ public final Builder h (List <String > list ) {
220
+ this .h = _listAddAll (this .h , list );
221
+ return this ;
222
+ }
223
+
224
+ /**
225
+ * List of columns to appear in the response. Supports simple wildcards.
226
+ * <p>
227
+ * API name: {@code h}
228
+ * <p>
229
+ * Adds one or more values to <code>h</code>.
230
+ */
231
+ public final Builder h (String value , String ... values ) {
232
+ this .h = _listAdd (this .h , value , values );
233
+ return this ;
234
+ }
235
+
180
236
/**
181
237
* The period to wait for a connection to the master node. If the master node is
182
238
* not available before the timeout expires, the request fails and returns an
@@ -230,6 +286,34 @@ public final Builder name(String value, String... values) {
230
286
return this ;
231
287
}
232
288
289
+ /**
290
+ * List of columns that determine how the table should be sorted. Sorting
291
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
292
+ * <code>:desc</code> as a suffix to the column name.
293
+ * <p>
294
+ * API name: {@code s}
295
+ * <p>
296
+ * Adds all elements of <code>list</code> to <code>s</code>.
297
+ */
298
+ public final Builder s (List <String > list ) {
299
+ this .s = _listAddAll (this .s , list );
300
+ return this ;
301
+ }
302
+
303
+ /**
304
+ * List of columns that determine how the table should be sorted. Sorting
305
+ * defaults to ascending and can be changed by setting <code>:asc</code> or
306
+ * <code>:desc</code> as a suffix to the column name.
307
+ * <p>
308
+ * API name: {@code s}
309
+ * <p>
310
+ * Adds one or more values to <code>s</code>.
311
+ */
312
+ public final Builder s (String value , String ... values ) {
313
+ this .s = _listAdd (this .s , value , values );
314
+ return this ;
315
+ }
316
+
233
317
@ Override
234
318
protected Builder self () {
235
319
return this ;
@@ -314,10 +398,16 @@ public AliasesRequest build() {
314
398
if (request .masterTimeout != null ) {
315
399
params .put ("master_timeout" , request .masterTimeout ._toJsonString ());
316
400
}
401
+ if (ApiTypeHelper .isDefined (request .s )) {
402
+ params .put ("s" , request .s .stream ().map (v -> v ).collect (Collectors .joining ("," )));
403
+ }
317
404
if (ApiTypeHelper .isDefined (request .expandWildcards )) {
318
405
params .put ("expand_wildcards" ,
319
406
request .expandWildcards .stream ().map (v -> v .jsonValue ()).collect (Collectors .joining ("," )));
320
407
}
408
+ if (ApiTypeHelper .isDefined (request .h )) {
409
+ params .put ("h" , request .h .stream ().map (v -> v ).collect (Collectors .joining ("," )));
410
+ }
321
411
return params ;
322
412
323
413
}, SimpleEndpoint .emptyMap (), false , AliasesResponse ._DESERIALIZER );
0 commit comments