Class FieldRule
java.lang.Object
co.elastic.clients.elasticsearch.security.FieldRule
- All Implemented Interfaces:
RoleMappingRuleVariant,JsonpSerializable,OpenTaggedUnion<FieldRule.Kind,,Object> TaggedUnion<FieldRule.Kind,Object>
@JsonpDeserializable
public class FieldRule
extends Object
implements OpenTaggedUnion<FieldRule.Kind,Object>, RoleMappingRuleVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsFieldRule.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customFieldRuledefined by a plugin?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 kindusername?static FieldRulevoidserialize(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.
-
_isCustom
public boolean _isCustom()Is this a customFieldRuledefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsFieldRule.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<FieldRule.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notFieldRule.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupFieldRuleDeserializer
-