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 class
IndexRolloverMapping.Builder
static class
IndexRolloverMapping.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_type
variant value.boolean
isByType()
Is this variant instance of kindby_type
?boolean
isSingle()
Is this variant instance of kindsingle
?static IndexRolloverMapping
of(java.util.function.Function<IndexRolloverMapping.Builder,ObjectBuilder<IndexRolloverMapping>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
TypeMapping
single()
Get thesingle
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<IndexRolloverMapping.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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_type
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theby_type
kind.
-
isSingle
public boolean isSingle()Is this variant instance of kindsingle
? -
single
Get thesingle
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesingle
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-