Class GetApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.GetApiKeyResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetApiKeyResponse>
- Enclosing class:
- GetApiKeyResponse
public static class GetApiKeyResponse.Builder extends java.lang.Object implements ObjectBuilder<GetApiKeyResponse>
Builder for
GetApiKeyResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetApiKeyResponse.Builder
addApiKeys(ApiKey value)
Add a value toapiKeys(List)
, creating the list if needed.GetApiKeyResponse.Builder
addApiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)
Add a value toapiKeys(List)
, creating the list if needed.GetApiKeyResponse.Builder
apiKeys(ApiKey... value)
Required - API name:api_keys
GetApiKeyResponse.Builder
apiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)
SetapiKeys(List)
to a singleton list.GetApiKeyResponse.Builder
apiKeys(java.util.List<ApiKey> value)
Required - API name:api_keys
GetApiKeyResponse
build()
Builds aGetApiKeyResponse
.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
-
apiKeys
Required - API name:api_keys
-
addApiKeys
Add a value toapiKeys(List)
, creating the list if needed. -
apiKeys
public GetApiKeyResponse.Builder apiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)SetapiKeys(List)
to a singleton list. -
addApiKeys
public GetApiKeyResponse.Builder addApiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)Add a value toapiKeys(List)
, creating the list if needed. -
build
Builds aGetApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<GetApiKeyResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-