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 SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<Validation.Kind,- ValidationVariant> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<Validation.Kind,- ValidationVariant> 
 
- 
of
- 
isGreaterThanpublic boolean isGreaterThan()Is this variant instance of kindgreater_than?
- 
greaterThanGet thegreater_thanvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- greater_thankind.
 
- 
isIncludedInpublic boolean isIncludedIn()Is this variant instance of kindincluded_in?
- 
includedInGet theincluded_invariant value.- Throws:
- IllegalStateException- if the current variant is not of the- included_inkind.
 
- 
isLessThanpublic boolean isLessThan()Is this variant instance of kindless_than?
- 
lessThanGet theless_thanvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- less_thankind.
 
- 
isListTypepublic boolean isListType()Is this variant instance of kindlist_type?
- 
listTypeGet thelist_typevariant value.- Throws:
- IllegalStateException- if the current variant is not of the- list_typekind.
 
- 
isRegexpublic boolean isRegex()Is this variant instance of kindregex?
- 
regexGet theregexvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- regexkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
- 
setupValidationDeserializer
 
-