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
  • Field Details

  • Constructor Details

  • Method Details

    • _variantType

      public java.lang.String _variantType()
      RoleMappingRule variant type
      Specified by:
      _variantType in interface UnionVariant
    • _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 interface TaggedUnion<java.lang.Object>
      Returns:
      the variant type
    • _get

      public java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<java.lang.Object>
    • username

      public java.lang.String username()
      Get the username variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the username kind.
    • dn

      public java.util.List<java.lang.String> dn()
      Get the dn variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the dn kind.
    • groups

      public java.util.List<java.lang.String> groups()
      Get the groups variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the groups kind.
    • metadata

      public JsonData metadata()
      Get the metadata variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the metadata kind.
    • realm

      public Realm realm()
      Get the realm variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the realm kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupFieldRuleDeserializer

      protected static void setupFieldRuleDeserializer​(DelegatingDeserializer<FieldRule.Builder> op)