Class IndexRolloverMapping
- java.lang.Object
-
- org.opensearch.client.opensearch.indices.rollover.IndexRolloverMapping
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<IndexRolloverMapping.Kind,java.lang.Object>
@JsonpDeserializable public class IndexRolloverMapping extends java.lang.Object implements TaggedUnion<IndexRolloverMapping.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexRolloverMapping.Builderstatic classIndexRolloverMapping.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IndexRolloverMapping>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()IndexRolloverMapping.Kind_kind()Get the of the kind of variant held by this object.java.util.Map<java.lang.String,TypeMapping>byType()Get theby_typevariant value.booleanisByType()Is this variant instance of kindby_type?booleanisSingle()Is this variant instance of kindsingle?static IndexRolloverMappingof(java.util.function.Function<IndexRolloverMapping.Builder,ObjectBuilder<IndexRolloverMapping>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)TypeMappingsingle()Get thesinglevariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<IndexRolloverMapping> _DESERIALIZER
-
-
Method Detail
-
_kind
public final IndexRolloverMapping.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IndexRolloverMapping.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<IndexRolloverMapping.Kind,java.lang.Object>
-
of
public static IndexRolloverMapping of(java.util.function.Function<IndexRolloverMapping.Builder,ObjectBuilder<IndexRolloverMapping>> fn)
-
isByType
public boolean isByType()
Is this variant instance of kindby_type?
-
byType
public java.util.Map<java.lang.String,TypeMapping> byType()
Get theby_typevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theby_typekind.
-
isSingle
public boolean isSingle()
Is this variant instance of kindsingle?
-
single
public TypeMapping single()
Get thesinglevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesinglekind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-