Class CreateCrossClusterApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CreateCrossClusterApiKeyResponse.Builder>
co.elastic.clients.elasticsearch.security.CreateCrossClusterApiKeyResponse.Builder
- All Implemented Interfaces:
WithJson<CreateCrossClusterApiKeyResponse.Builder>
,ObjectBuilder<CreateCrossClusterApiKeyResponse>
- Enclosing class:
- CreateCrossClusterApiKeyResponse
public static class CreateCrossClusterApiKeyResponse.Builder
extends WithJsonObjectBuilderBase<CreateCrossClusterApiKeyResponse.Builder>
implements ObjectBuilder<CreateCrossClusterApiKeyResponse>
Builder for
CreateCrossClusterApiKeyResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - Generated API key.build()
Builds aCreateCrossClusterApiKeyResponse
.Required - API key credentials which is the base64-encoding of the UTF-8 representation ofid
andapi_key
joined by a colon (:
).expiration
(Long value) Expiration in milliseconds for the API key.Required - Unique ID for this API key.Required - Specifies the name for this API key.protected CreateCrossClusterApiKeyResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Required - Generated API key.API name:
api_key
-
expiration
Expiration in milliseconds for the API key.API name:
expiration
-
id
Required - Unique ID for this API key.API name:
id
-
name
Required - Specifies the name for this API key.API name:
name
-
encoded
Required - API key credentials which is the base64-encoding of the UTF-8 representation ofid
andapi_key
joined by a colon (:
).API name:
encoded
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CreateCrossClusterApiKeyResponse.Builder>
-
build
Builds aCreateCrossClusterApiKeyResponse
.- Specified by:
build
in interfaceObjectBuilder<CreateCrossClusterApiKeyResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-