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.BuilderaddApiKeys(ApiKey value)Add a value toapiKeys(List), creating the list if needed.GetApiKeyResponse.BuilderaddApiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)Add a value toapiKeys(List), creating the list if needed.GetApiKeyResponse.BuilderapiKeys(ApiKey... value)Required - API name:api_keysGetApiKeyResponse.BuilderapiKeys(java.util.function.Function<ApiKey.Builder,ObjectBuilder<ApiKey>> fn)SetapiKeys(List)to a singleton list.GetApiKeyResponse.BuilderapiKeys(java.util.List<ApiKey> value)Required - API name:api_keysGetApiKeyResponsebuild()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:
buildin interfaceObjectBuilder<GetApiKeyResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-