Class FieldRule
java.lang.Object
co.elastic.clients.elasticsearch.security.FieldRule
- All Implemented Interfaces:
RoleMappingRuleVariant
,JsonpSerializable
,TaggedUnion<java.lang.Object>
,UnionVariant
@JsonpDeserializable public class FieldRule extends java.lang.Object implements TaggedUnion<java.lang.Object>, RoleMappingRuleVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldRule.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FieldRule>
_DESERIALIZER
static java.lang.String
DN
static java.lang.String
GROUPS
static java.lang.String
METADATA
static java.lang.String
REALM
static java.lang.String
USERNAME
-
Constructor Summary
Constructors Constructor Description FieldRule(FieldRuleVariant value)
FieldRule(ObjectBuilder<T> builder)
FieldRule(java.util.function.Function<FieldRule.Builder,FieldRule.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<java.lang.String>
dn()
Get thedn
variant value.java.util.List<java.lang.String>
groups()
Get thegroups
variant value.JsonData
metadata()
Get themetadata
variant value.Realm
realm()
Get therealm
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupFieldRuleDeserializer(DelegatingDeserializer<FieldRule.Builder> op)
java.lang.String
username()
Get theusername
variant value.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
-
USERNAME
public static final java.lang.String USERNAME- See Also:
- Constant Field Values
-
DN
public static final java.lang.String DN- See Also:
- Constant Field Values
-
GROUPS
public static final java.lang.String GROUPS- See Also:
- Constant Field Values
-
METADATA
public static final java.lang.String METADATA- See Also:
- Constant Field Values
-
REALM
public static final java.lang.String REALM- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
FieldRule
-
FieldRule
-
FieldRule
-
-
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>
-
username
public java.lang.String username()Get theusername
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theusername
kind.
-
dn
public java.util.List<java.lang.String> dn()Get thedn
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedn
kind.
-
groups
public java.util.List<java.lang.String> groups()Get thegroups
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegroups
kind.
-
metadata
Get themetadata
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themetadata
kind.
-
realm
Get therealm
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therealm
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupFieldRuleDeserializer
-