Class UpdateCrossClusterApiKeyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<UpdateCrossClusterApiKeyRequest.Builder>
co.elastic.clients.elasticsearch.security.UpdateCrossClusterApiKeyRequest.Builder
- All Implemented Interfaces:
- WithJson<UpdateCrossClusterApiKeyRequest.Builder>,- ObjectBuilder<UpdateCrossClusterApiKeyRequest>
- Enclosing class:
- UpdateCrossClusterApiKeyRequest
public static class UpdateCrossClusterApiKeyRequest.Builder
extends RequestBase.AbstractBuilder<UpdateCrossClusterApiKeyRequest.Builder>
implements ObjectBuilder<UpdateCrossClusterApiKeyRequest>
Builder for 
UpdateCrossClusterApiKeyRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRequired - The access to be granted to this API key.Required - The access to be granted to this API key.build()Builds aUpdateCrossClusterApiKeyRequest.expiration(Time value) The expiration time for the API key.The expiration time for the API key.Required - The ID of the cross-cluster API key to update.Arbitrary metadata that you want to associate with the API key.Arbitrary metadata that you want to associate with the API key.protected UpdateCrossClusterApiKeyRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
accessRequired - The access to be granted to this API key. The access is composed of permissions for cross cluster search and cross cluster replication. At least one of them must be specified. When specified, the new access assignment fully replaces the previously assigned access.API name: access
- 
accesspublic final UpdateCrossClusterApiKeyRequest.Builder access(Function<Access.Builder, ObjectBuilder<Access>> fn) Required - The access to be granted to this API key. The access is composed of permissions for cross cluster search and cross cluster replication. At least one of them must be specified. When specified, the new access assignment fully replaces the previously assigned access.API name: access
- 
expirationThe expiration time for the API key. By default, API keys never expire. This property can be omitted to leave the value unchanged.API name: expiration
- 
expirationpublic final UpdateCrossClusterApiKeyRequest.Builder expiration(Function<Time.Builder, ObjectBuilder<Time>> fn) The expiration time for the API key. By default, API keys never expire. This property can be omitted to leave the value unchanged.API name: expiration
- 
idRequired - The ID of the cross-cluster API key to update.API name: id
- 
metadataArbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with_are reserved for system usage. When specified, this information fully replaces metadata previously associated with the API key.API name: metadataAdds all entries of maptometadata.
- 
metadataArbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with_are reserved for system usage. When specified, this information fully replaces metadata previously associated with the API key.API name: metadataAdds an entry to metadata.
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<UpdateCrossClusterApiKeyRequest.Builder>
 
- 
buildBuilds aUpdateCrossClusterApiKeyRequest.- Specified by:
- buildin interface- ObjectBuilder<UpdateCrossClusterApiKeyRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-