Class RetentionPolicy
java.lang.Object
co.elastic.clients.elasticsearch.transform.RetentionPolicy
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<RetentionPolicy.Kind,Object>
@JsonpDeserializable
public class RetentionPolicy
extends Object
implements TaggedUnion<RetentionPolicy.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final RetentionPolicy.Kind_kind()Get the of the kind of variant held by this object.booleanisTime()Is this variant instance of kindtime?static RetentionPolicyvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtime()Get thetimevariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
RetentionPolicy
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RetentionPolicy.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RetentionPolicy.Kind,Object>
-
of
public static RetentionPolicy of(Function<RetentionPolicy.Builder, ObjectBuilder<RetentionPolicy>> fn) -
isTime
public boolean isTime()Is this variant instance of kindtime? -
time
Get thetimevariant value.- Throws:
IllegalStateException- if the current variant is not of thetimekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRetentionPolicyDeserializer
protected static void setupRetentionPolicyDeserializer(ObjectDeserializer<RetentionPolicy.Builder> op)
-