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 classFieldRule.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FieldRule>_DESERIALIZERstatic java.lang.StringDNstatic java.lang.StringGROUPSstatic java.lang.StringMETADATAstatic java.lang.StringREALMstatic java.lang.StringUSERNAME -
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()RoleMappingRulevariant typejava.util.List<java.lang.String>dn()Get thednvariant value.java.util.List<java.lang.String>groups()Get thegroupsvariant value.JsonDatametadata()Get themetadatavariant value.Realmrealm()Get therealmvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupFieldRuleDeserializer(DelegatingDeserializer<FieldRule.Builder> op)java.lang.Stringusername()Get theusernamevariant value.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
-
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()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>
-
username
public java.lang.String username()Get theusernamevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theusernamekind.
-
dn
public java.util.List<java.lang.String> dn()Get thednvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thednkind.
-
groups
public java.util.List<java.lang.String> groups()Get thegroupsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegroupskind.
-
metadata
Get themetadatavariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themetadatakind.
-
realm
Get therealmvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therealmkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupFieldRuleDeserializer
-