Class PutLifecycleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ilm.PutLifecycleRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PutLifecycleRequest extends RequestBase implements JsonpSerializable
Creates a lifecycle policy. If the specified policy exists, the policy is
replaced and the policy version is incremented.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutLifecycleRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forPutLifecycleRequest
static Endpoint<PutLifecycleRequest,PutLifecycleResponse,ErrorResponse>
_ENDPOINT
Endpoint "ilm.put_lifecycle
". -
Method Summary
Modifier and Type Method Description Time
masterTimeout()
Period to wait for a connection to the master node.java.lang.String
name()
Required - Identifier for the policy.static PutLifecycleRequest
of(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn)
IlmPolicy
policy()
API name:policy
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPutLifecycleRequestDeserializer(ObjectDeserializer<PutLifecycleRequest.Builder> op)
Time
timeout()
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
Endpoint "ilm.put_lifecycle
".
-
-
Method Details
-
of
public static PutLifecycleRequest of(java.util.function.Function<PutLifecycleRequest.Builder,ObjectBuilder<PutLifecycleRequest>> fn) -
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
-
name
public final java.lang.String name()Required - Identifier for the policy.API name:
policy
-
policy
API name:policy
-
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutLifecycleRequestDeserializer
protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializer<PutLifecycleRequest.Builder> op)
-