Class ApiKeyAuthorization.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ApiKeyAuthorization.Builder>
co.elastic.clients.elasticsearch.ml.ApiKeyAuthorization.Builder
- All Implemented Interfaces:
WithJson<ApiKeyAuthorization.Builder>,ObjectBuilder<ApiKeyAuthorization>
- Enclosing class:
- ApiKeyAuthorization
public static class ApiKeyAuthorization.Builder extends WithJsonObjectBuilderBase<ApiKeyAuthorization.Builder> implements ObjectBuilder<ApiKeyAuthorization>
Builder for
ApiKeyAuthorization.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ApiKeyAuthorizationbuild()Builds aApiKeyAuthorization.ApiKeyAuthorization.Builderid(java.lang.String value)Required - The identifier for the API key.ApiKeyAuthorization.Buildername(java.lang.String value)Required - The name of the API key.protected ApiKeyAuthorization.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The identifier for the API key.API name:
id -
name
Required - The name of the API key.API name:
name -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ApiKeyAuthorization.Builder>
-
build
Builds aApiKeyAuthorization.- Specified by:
buildin interfaceObjectBuilder<ApiKeyAuthorization>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-