Class PutLifecycleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutLifecycleRequest.Builder>
co.elastic.clients.elasticsearch.slm.PutLifecycleRequest.Builder
- All Implemented Interfaces:
- WithJson<PutLifecycleRequest.Builder>,- ObjectBuilder<PutLifecycleRequest>
- Enclosing class:
- PutLifecycleRequest
public static class PutLifecycleRequest.Builder
extends RequestBase.AbstractBuilder<PutLifecycleRequest.Builder>
implements ObjectBuilder<PutLifecycleRequest>
Builder for 
PutLifecycleRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aPutLifecycleRequest.config(SlmConfiguration value) Configuration for each snapshot created by the policy.Configuration for each snapshot created by the policy.masterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.Name automatically assigned to each snapshot created by the policy.Required - The identifier for the snapshot lifecycle policy you want to create or update.repository(String value) Repository used to store snapshots created by this policy.Retention rules used to retain and delete snapshots created by the policy.Retention rules used to retain and delete snapshots created by the policy.Periodic or absolute schedule at which the policy creates snapshots.protected PutLifecycleRequest.Builderself()The period to wait for a response.The period to wait for a response.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- 
configConfiguration for each snapshot created by the policy.API name: config
- 
configpublic final PutLifecycleRequest.Builder config(Function<SlmConfiguration.Builder, ObjectBuilder<SlmConfiguration>> fn) Configuration for each snapshot created by the policy.API name: config
- 
masterTimeoutThe period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name: master_timeout
- 
masterTimeoutpublic final PutLifecycleRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name: master_timeout
- 
nameName automatically assigned to each snapshot created by the policy. Date math is supported. To prevent conflicting snapshot names, a UUID is automatically appended to each snapshot name.API name: name
- 
policyIdRequired - The identifier for the snapshot lifecycle policy you want to create or update.API name: policy_id
- 
repositoryRepository used to store snapshots created by this policy. This repository must exist prior to the policy’s creation. You can create a repository using the snapshot repository API.API name: repository
- 
retentionRetention rules used to retain and delete snapshots created by the policy.API name: retention
- 
retentionpublic final PutLifecycleRequest.Builder retention(Function<Retention.Builder, ObjectBuilder<Retention>> fn) Retention rules used to retain and delete snapshots created by the policy.API name: retention
- 
schedulePeriodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately.API name: schedule
- 
timeoutThe period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name: timeout
- 
timeoutThe period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name: timeout
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<PutLifecycleRequest.Builder>
 
- 
buildBuilds aPutLifecycleRequest.- Specified by:
- buildin interface- ObjectBuilder<PutLifecycleRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-