Class CloneApiKeyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<CloneApiKeyRequest.Builder>
co.elastic.clients.elasticsearch.security.CloneApiKeyRequest.Builder
- All Implemented Interfaces:
WithJson<CloneApiKeyRequest.Builder>,ObjectBuilder<CloneApiKeyRequest>
- Enclosing class:
- CloneApiKeyRequest
public static class CloneApiKeyRequest.Builder
extends RequestBase.AbstractBuilder<CloneApiKeyRequest.Builder>
implements ObjectBuilder<CloneApiKeyRequest>
Builder for
CloneApiKeyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - The credentials of the API key to clone.build()Builds aCloneApiKeyRequest.expiration(Time value) The expiration time for the cloned API key.The expiration time for the cloned API key.Arbitrary metadata to associate with the cloned API key.Arbitrary metadata to associate with the cloned API key.A name for the cloned API key.Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.protected CloneApiKeyRequest.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 credentials of the API key to clone. This is the secret value returned when the key was originally created.API name:
api_key -
expiration
The expiration time for the cloned API key. By default, API keys never expire. Set tonullto explicitly create a key with no expiration.API name:
expiration -
expiration
The expiration time for the cloned API key. By default, API keys never expire. Set tonullto explicitly create a key with no expiration.API name:
expiration -
metadata
Arbitrary metadata to associate with the cloned API key. It supports nested data structure. Within the metadata object, keys beginning with_are reserved for system usage.API name:
metadataAdds all entries of
maptometadata. -
metadata
Arbitrary metadata to associate with the cloned API key. It supports nested data structure. Within the metadata object, keys beginning with_are reserved for system usage.API name:
metadataAdds an entry to
metadata. -
name
A name for the cloned API key. If not provided, the name of the source key is used.API name:
name -
refresh
Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CloneApiKeyRequest.Builder>
-
build
Builds aCloneApiKeyRequest.- Specified by:
buildin interfaceObjectBuilder<CloneApiKeyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-