Class IndexSettingsMergePolicy
java.lang.Object
org.opensearch.client.opensearch.indices.IndexSettingsMergePolicy
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<IndexSettingsMergePolicy.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IndexSettingsMergePolicy
extends Object
implements TaggedUnion<IndexSettingsMergePolicy.Kind,Object>, PlainJsonSerializable
The policy configuration for segment merging.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIndexSettingsMergePolicyvariant kinds. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.builder()booleaninthashCode()booleanisName()Is this variant instance of kindname?booleanIs this variant instance of kindtiered_policy_config?name()Get thenamevariant value.static IndexSettingsMergePolicyvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Get thetiered_policy_configvariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IndexSettingsMergePolicy.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<IndexSettingsMergePolicy.Kind,Object>
-
of
public static IndexSettingsMergePolicy of(Function<IndexSettingsMergePolicy.Builder, ObjectBuilder<IndexSettingsMergePolicy>> fn) -
isName
public boolean isName()Is this variant instance of kindname? -
name
Get thenamevariant value.- Throws:
IllegalStateException- if the current variant is not thenamekind.
-
isTieredPolicyConfig
public boolean isTieredPolicyConfig()Is this variant instance of kindtiered_policy_config? -
tieredPolicyConfig
Get thetiered_policy_configvariant value.- Throws:
IllegalStateException- if the current variant is not thetiered_policy_configkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-