Class IndexRolloverMapping
java.lang.Object
co.elastic.clients.elasticsearch.indices.rollover.IndexRolloverMapping
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<IndexRolloverMapping.Kind,
Object>
@JsonpDeserializable
public class IndexRolloverMapping
extends Object
implements TaggedUnion<IndexRolloverMapping.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
_kind()
Get the of the kind of variant held by this object.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
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) single()
Get thesingle
variant value.toString()
-
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,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<IndexRolloverMapping.Kind,
Object>
-
of
public static IndexRolloverMapping of(Function<IndexRolloverMapping.Builder, ObjectBuilder<IndexRolloverMapping>> fn) -
isByType
public boolean isByType()Is this variant instance of kindby_type
? -
byType
Get theby_type
variant value.- Throws:
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:
IllegalStateException
- if the current variant is not of thesingle
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-