Class Policy
java.lang.Object
org.opensearch.client.opensearch.ism.Policy
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Policy.Builder,Policy>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Policy
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Policy.Builder,Policy>
The policy defines how an index is managed throughout its lifetime.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Policy> Json deserializer forPolicy -
Method Summary
Modifier and TypeMethodDescriptionstatic Policy.Builderbuilder()final StringThe default state an index is in.final StringThe description of the policy.booleanfinal ErrorNotificationThe configuration for error notifications.inthashCode()final List<IsmTemplate> The ISM template configuration.final IntegerWhen the policy was last updated.static Policyfinal StringpolicyId()The unique identifier for the policy.final NumberThe version of the policy schema.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidstates()The list of states for the index to transition between.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPolicy
-
-
Method Details
-
of
-
defaultState
The default state an index is in.API name:
default_state -
description
The description of the policy.API name:
description -
errorNotification
The configuration for error notifications.API name:
error_notification -
ismTemplate
The ISM template configuration.API name:
ism_template -
lastUpdatedTime
When the policy was last updated.API name:
last_updated_time -
policyId
The unique identifier for the policy.API name:
policy_id -
schemaVersion
The version of the policy schema.API name:
schema_version -
states
The list of states for the index to transition between.API name:
states -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Policy.Builder,Policy> - Returns:
- a new builder instance.
-
builder
-
setupPolicyDeserializer
-
hashCode
public int hashCode() -
equals
-