Class RoleMappingRule
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleMappingRule
- All Implemented Interfaces:
RoleMappingRuleVariant,JsonpSerializable,TaggedUnion<java.lang.Object>,UnionVariant
@JsonpDeserializable public class RoleMappingRule extends java.lang.Object implements TaggedUnion<java.lang.Object>, RoleMappingRuleVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoleMappingRule.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RoleMappingRule>_DESERIALIZERstatic java.lang.StringALLstatic java.lang.StringANYstatic java.lang.StringEXCEPTstatic java.lang.StringFIELD -
Constructor Summary
Constructors Constructor Description RoleMappingRule(RoleMappingRuleVariant value)RoleMappingRule(ObjectBuilder<T> builder)RoleMappingRule(java.util.function.Function<RoleMappingRule.Builder,RoleMappingRule.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.java.lang.String_variantType()RoleMappingRulevariant typejava.util.List<RoleMappingRule>all()Get theallvariant value.java.util.List<RoleMappingRule>any()Get theanyvariant value.RoleMappingRuleexcept()Get theexceptvariant value.FieldRulefield()Get thefieldvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRoleMappingRuleDeserializer(DelegatingDeserializer<RoleMappingRule.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.security.RoleMappingRuleVariant
_toRoleMappingRuleMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
ANY
public static final java.lang.String ANY- See Also:
- Constant Field Values
-
ALL
public static final java.lang.String ALL- See Also:
- Constant Field Values
-
FIELD
public static final java.lang.String FIELD- See Also:
- Constant Field Values
-
EXCEPT
public static final java.lang.String EXCEPT- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
RoleMappingRule
-
RoleMappingRule
-
RoleMappingRule
public RoleMappingRule(java.util.function.Function<RoleMappingRule.Builder,RoleMappingRule.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()RoleMappingRulevariant type- Specified by:
_variantTypein interfaceUnionVariant
-
_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>
-
any
Get theanyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theanykind.
-
all
Get theallvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theallkind.
-
field
Get thefieldvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefieldkind.
-
except
Get theexceptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theexceptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupRoleMappingRuleDeserializer
protected static void setupRoleMappingRuleDeserializer(DelegatingDeserializer<RoleMappingRule.Builder> op)
-