Class PutLifecycleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.slm.PutLifecycleRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class PutLifecycleRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutLifecycleRequest.BuilderBuilder forPutLifecycleRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutLifecycleRequest>_DESERIALIZERJson deserializer forPutLifecycleRequeststatic Endpoint<PutLifecycleRequest,PutLifecycleResponse,ElasticsearchError>ENDPOINTEndpoint "slm.put_lifecycle". -
Constructor Summary
Constructors Constructor Description PutLifecycleRequest(PutLifecycleRequest.Builder builder)PutLifecycleRequest(java.util.function.Function<PutLifecycleRequest.Builder,PutLifecycleRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description Configurationconfig()Configuration for each snapshot created by the policy.java.lang.StringmasterTimeout()Period to wait for a connection to the master node.java.lang.Stringname()Name automatically assigned to each snapshot created by the policy.java.lang.StringpolicyId()ID for the snapshot lifecycle policy you want to create or update.java.lang.Stringrepository()Repository used to store snapshots created by this policy.Retentionretention()Retention rules used to retain and delete snapshots created by the policy.java.lang.Stringschedule()Periodic or absolute schedule at which the policy creates snapshots.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPutLifecycleRequestDeserializer(DelegatingDeserializer<PutLifecycleRequest.Builder> op)java.lang.Stringtimeout()Period to wait for a response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutLifecycleRequest -
ENDPOINT
public static final Endpoint<PutLifecycleRequest,PutLifecycleResponse,ElasticsearchError> ENDPOINTEndpoint "slm.put_lifecycle".
-
-
Constructor Details
-
PutLifecycleRequest
-
PutLifecycleRequest
public PutLifecycleRequest(java.util.function.Function<PutLifecycleRequest.Builder,PutLifecycleRequest.Builder> fn)
-
-
Method Details
-
policyId
public java.lang.String policyId()ID for the snapshot lifecycle policy you want to create or update.API name:
policy_id -
masterTimeout
@Nullable public java.lang.String masterTimeout()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.API name:
master_timeout -
timeout
@Nullable public java.lang.String timeout()Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
config
Configuration for each snapshot created by the policy.API name:
config -
name
@Nullable public java.lang.String name()Name 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 -
repository
@Nullable public java.lang.String repository()Repository 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 -
retention
Retention rules used to retain and delete snapshots created by the policy.API name:
retention -
schedule
@Nullable public java.lang.String schedule()Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately.API name:
schedule -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutLifecycleRequestDeserializer
protected static void setupPutLifecycleRequestDeserializer(DelegatingDeserializer<PutLifecycleRequest.Builder> op)
-