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_than
variant value.Get theincluded_in
variant value.boolean
Is this variant instance of kindgreater_than
?boolean
Is this variant instance of kindincluded_in
?boolean
Is this variant instance of kindless_than
?boolean
Is this variant instance of kindlist_type
?boolean
isRegex()
Is this variant instance of kindregex
?lessThan()
Get theless_than
variant value.listType()
Get thelist_type
variant value.static Validation
regex()
Get theregex
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Validation
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Validation.Kind,
ValidationVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Validation.Kind,
ValidationVariant>
-
of
-
isGreaterThan
public boolean isGreaterThan()Is this variant instance of kindgreater_than
? -
greaterThan
Get thegreater_than
variant value.- Throws:
IllegalStateException
- if the current variant is not of thegreater_than
kind.
-
isIncludedIn
public boolean isIncludedIn()Is this variant instance of kindincluded_in
? -
includedIn
Get theincluded_in
variant value.- Throws:
IllegalStateException
- if the current variant is not of theincluded_in
kind.
-
isLessThan
public boolean isLessThan()Is this variant instance of kindless_than
? -
lessThan
Get theless_than
variant value.- Throws:
IllegalStateException
- if the current variant is not of theless_than
kind.
-
isListType
public boolean isListType()Is this variant instance of kindlist_type
? -
listType
Get thelist_type
variant value.- Throws:
IllegalStateException
- if the current variant is not of thelist_type
kind.
-
isRegex
public boolean isRegex()Is this variant instance of kindregex
? -
regex
Get theregex
variant value.- Throws:
IllegalStateException
- if the current variant is not of theregex
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupValidationDeserializer
-