Class IndexRolloverMapping
java.lang.Object
co.elastic.clients.elasticsearch.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
- See Also:
- API specification
-
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
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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<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
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
Get thesinglevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesinglekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-