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 class
RoleMappingRule.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RoleMappingRule>
_DESERIALIZER
static java.lang.String
ALL
static java.lang.String
ANY
static java.lang.String
EXCEPT
static java.lang.String
FIELD
-
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()
RoleMappingRule
variant typejava.util.List<RoleMappingRule>
all()
Get theall
variant value.java.util.List<RoleMappingRule>
any()
Get theany
variant value.RoleMappingRule
except()
Get theexcept
variant value.FieldRule
field()
Get thefield
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupRoleMappingRuleDeserializer(DelegatingDeserializer<RoleMappingRule.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.security.RoleMappingRuleVariant
_toRoleMappingRule
Methods 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()RoleMappingRule
variant type- Specified by:
_variantType
in interfaceUnionVariant
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
any
Get theany
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theany
kind.
-
all
Get theall
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theall
kind.
-
field
Get thefield
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefield
kind.
-
except
Get theexcept
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theexcept
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupRoleMappingRuleDeserializer
protected static void setupRoleMappingRuleDeserializer(DelegatingDeserializer<RoleMappingRule.Builder> op)
-