Class Validation
java.lang.Object
co.elastic.clients.elasticsearch.connector.Validation
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Validation.Kind,ValidationVariant>
@JsonpDeserializable
public class Validation
extends Object
implements TaggedUnion<Validation.Kind,ValidationVariant>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ValidationVariant_get()final Validation.Kind_kind()Get the of the kind of variant held by this object.Get thegreater_thanvariant value.Get theincluded_invariant value.booleanIs this variant instance of kindgreater_than?booleanIs this variant instance of kindincluded_in?booleanIs this variant instance of kindless_than?booleanIs this variant instance of kindlist_type?booleanisRegex()Is this variant instance of kindregex?lessThan()Get theless_thanvariant value.listType()Get thelist_typevariant value.static Validationregex()Get theregexvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Validation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Validation.Kind,ValidationVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Validation.Kind,ValidationVariant>
-
of
-
isGreaterThan
public boolean isGreaterThan()Is this variant instance of kindgreater_than? -
greaterThan
Get thegreater_thanvariant value.- Throws:
IllegalStateException- if the current variant is not of thegreater_thankind.
-
isIncludedIn
public boolean isIncludedIn()Is this variant instance of kindincluded_in? -
includedIn
Get theincluded_invariant value.- Throws:
IllegalStateException- if the current variant is not of theincluded_inkind.
-
isLessThan
public boolean isLessThan()Is this variant instance of kindless_than? -
lessThan
Get theless_thanvariant value.- Throws:
IllegalStateException- if the current variant is not of theless_thankind.
-
isListType
public boolean isListType()Is this variant instance of kindlist_type? -
listType
Get thelist_typevariant value.- Throws:
IllegalStateException- if the current variant is not of thelist_typekind.
-
isRegex
public boolean isRegex()Is this variant instance of kindregex? -
regex
Get theregexvariant value.- Throws:
IllegalStateException- if the current variant is not of theregexkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupValidationDeserializer
-