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