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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.byType()Get theby_typevariant value.booleanisByType()Is this variant instance of kindby_type?booleanisSingle()Is this variant instance of kindsingle?static IndexRolloverMappingvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) single()Get thesinglevariant value.toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin 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_typevariant value.- Throws:
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:
IllegalStateException- if the current variant is not of thesinglekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-