Class RetentionPolicy
java.lang.Object
co.elastic.clients.elasticsearch.transform.RetentionPolicy
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class RetentionPolicy extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetentionPolicy.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RetentionPolicy>_DESERIALIZERstatic java.lang.StringTIME -
Constructor Summary
Constructors Constructor Description RetentionPolicy(RetentionPolicyVariant value)RetentionPolicy(ObjectBuilder<T> builder)RetentionPolicy(java.util.function.Function<RetentionPolicy.Builder,RetentionPolicy.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRetentionPolicyDeserializer(DelegatingDeserializer<RetentionPolicy.Builder> op)TimeRetentionPolicytime()Get thetimevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
TIME
public static final java.lang.String TIME- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
RetentionPolicy
-
RetentionPolicy
-
RetentionPolicy
public RetentionPolicy(java.util.function.Function<RetentionPolicy.Builder,RetentionPolicy.Builder> fn)
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
time
Get thetimevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetimekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupRetentionPolicyDeserializer
protected static void setupRetentionPolicyDeserializer(DelegatingDeserializer<RetentionPolicy.Builder> op)
-