Class FieldRule
java.lang.Object
co.elastic.clients.elasticsearch.security.FieldRule
- All Implemented Interfaces:
RoleMappingRuleVariant,JsonpSerializable,TaggedUnion<FieldRule.Kind,Object>
@JsonpDeserializable
public class FieldRule
extends Object
implements TaggedUnion<FieldRule.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 FieldRule.Kind_kind()Get the of the kind of variant held by this object.RoleMappingRule variant kind.dn()Get thednvariant value.groups()Get thegroupsvariant value.booleanisDn()Is this variant instance of kinddn?booleanisGroups()Is this variant instance of kindgroups?booleanIs this variant instance of kindmetadata?booleanisRealm()Is this variant instance of kindrealm?booleanIs this variant instance of kindusername?metadata()Get themetadatavariant value.static FieldRulerealm()Get therealmvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()username()Get theusernamevariant value.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
-
FieldRule
-
-
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<FieldRule.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<FieldRule.Kind,Object>
-
of
-
isUsername
public boolean isUsername()Is this variant instance of kindusername? -
username
Get theusernamevariant value.- Throws:
IllegalStateException- if the current variant is not of theusernamekind.
-
isDn
public boolean isDn()Is this variant instance of kinddn? -
dn
Get thednvariant value.- Throws:
IllegalStateException- if the current variant is not of thednkind.
-
isGroups
public boolean isGroups()Is this variant instance of kindgroups? -
groups
Get thegroupsvariant value.- Throws:
IllegalStateException- if the current variant is not of thegroupskind.
-
isMetadata
public boolean isMetadata()Is this variant instance of kindmetadata? -
metadata
Get themetadatavariant value.- Throws:
IllegalStateException- if the current variant is not of themetadatakind.
-
isRealm
public boolean isRealm()Is this variant instance of kindrealm? -
realm
Get therealmvariant value.- Throws:
IllegalStateException- if the current variant is not of therealmkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupFieldRuleDeserializer
-