Class RoleMappingRule
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleMappingRule
- All Implemented Interfaces:
RoleMappingRuleVariant,JsonpSerializable,TaggedUnion<RoleMappingRule.Kind,Object>
@JsonpDeserializable
public class RoleMappingRule
extends Object
implements TaggedUnion<RoleMappingRule.Kind,Object>, RoleMappingRuleVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final RoleMappingRule.Kind_kind()Get the of the kind of variant held by this object.RoleMappingRule variant kind.all()Get theallvariant value.any()Get theanyvariant value.except()Get theexceptvariant value.field()Get thefieldvariant value.booleanisAll()Is this variant instance of kindall?booleanisAny()Is this variant instance of kindany?booleanisExcept()Is this variant instance of kindexcept?booleanisField()Is this variant instance of kindfield?static RoleMappingRulevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.security.RoleMappingRuleVariant
_toRoleMappingRule
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
RoleMappingRule
-
-
Method Details
-
_roleMappingRuleKind
RoleMappingRule variant kind.- Specified by:
_roleMappingRuleKindin interfaceRoleMappingRuleVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RoleMappingRule.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RoleMappingRule.Kind,Object>
-
of
public static RoleMappingRule of(Function<RoleMappingRule.Builder, ObjectBuilder<RoleMappingRule>> fn) -
isAny
public boolean isAny()Is this variant instance of kindany? -
any
Get theanyvariant value.- Throws:
IllegalStateException- if the current variant is not of theanykind.
-
isAll
public boolean isAll()Is this variant instance of kindall? -
all
Get theallvariant value.- Throws:
IllegalStateException- if the current variant is not of theallkind.
-
isField
public boolean isField()Is this variant instance of kindfield? -
field
Get thefieldvariant value.- Throws:
IllegalStateException- if the current variant is not of thefieldkind.
-
isExcept
public boolean isExcept()Is this variant instance of kindexcept? -
except
Get theexceptvariant value.- Throws:
IllegalStateException- if the current variant is not of theexceptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRoleMappingRuleDeserializer
protected static void setupRoleMappingRuleDeserializer(ObjectDeserializer<RoleMappingRule.Builder> op)
-