Class QueryApiKeysResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryApiKeysResponse.Builder>
co.elastic.clients.elasticsearch.security.QueryApiKeysResponse.Builder
- All Implemented Interfaces:
WithJson<QueryApiKeysResponse.Builder>,ObjectBuilder<QueryApiKeysResponse>
- Enclosing class:
- QueryApiKeysResponse
public static class QueryApiKeysResponse.Builder
extends WithJsonObjectBuilderBase<QueryApiKeysResponse.Builder>
implements ObjectBuilder<QueryApiKeysResponse>
Builder for
QueryApiKeysResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations(String key, ApiKeyAggregate value) The aggregations result, if requested.The aggregations result, if requested.aggregations(Map<String, ApiKeyAggregate> map) The aggregations result, if requested.Required - A list of API key information.Required - A list of API key information.Required - A list of API key information.build()Builds aQueryApiKeysResponse.count(int value) Required - The number of API keys returned in the response.protected QueryApiKeysResponse.Builderself()total(int value) Required - The total number of API keys found.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - The total number of API keys found.API name:
total -
count
Required - The number of API keys returned in the response.API name:
count -
apiKeys
Required - A list of API key information.API name:
api_keysAdds all elements of
listtoapiKeys. -
apiKeys
Required - A list of API key information.API name:
api_keysAdds one or more values to
apiKeys. -
apiKeys
public final QueryApiKeysResponse.Builder apiKeys(Function<ApiKey.Builder, ObjectBuilder<ApiKey>> fn) Required - A list of API key information.API name:
api_keysAdds a value to
apiKeysusing a builder lambda. -
aggregations
The aggregations result, if requested.API name:
aggregationsAdds all entries of
maptoaggregations. -
aggregations
The aggregations result, if requested.API name:
aggregationsAdds an entry to
aggregations. -
aggregations
public final QueryApiKeysResponse.Builder aggregations(String key, Function<ApiKeyAggregate.Builder, ObjectBuilder<ApiKeyAggregate>> fn) The aggregations result, if requested.API name:
aggregationsAdds an entry to
aggregationsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryApiKeysResponse.Builder>
-
build
Builds aQueryApiKeysResponse.- Specified by:
buildin interfaceObjectBuilder<QueryApiKeysResponse>- Throws:
NullPointerException- if some of the required fields are null.
-