Class GetApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.GetApiKeyResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetApiKeyResponse>
- Enclosing class:
- GetApiKeyResponse
public static class GetApiKeyResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<GetApiKeyResponse>
Builder for
GetApiKeyResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetApiKeyResponse.Builder
apiKeys(ApiKey value, ApiKey... values)
Required - API name:api_keys
GetApiKeyResponse.Builder
apiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)
Required - API name:api_keys
GetApiKeyResponse.Builder
apiKeys(java.util.List<ApiKey> list)
Required - API name:api_keys
GetApiKeyResponse
build()
Builds aGetApiKeyResponse
.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKeys
Required - API name:api_keys
Adds all elements of
list
toapiKeys
. -
apiKeys
Required - API name:api_keys
Adds one or more values to
apiKeys
. -
apiKeys
public final GetApiKeyResponse.Builder apiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)Required - API name:api_keys
Adds a value to
apiKeys
using a builder lambda. -
build
Builds aGetApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<GetApiKeyResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-