Class RoleMappingRule

java.lang.Object
co.elastic.clients.elasticsearch.security.RoleMappingRule
All Implemented Interfaces:
RoleMappingRuleVariant, JsonpSerializable, TaggedUnion<java.lang.Object>, UnionVariant

@JsonpDeserializable
public class RoleMappingRule
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>
    • any

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

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

      public FieldRule field()
      Get the field variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the field kind.
    • except

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

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

      protected static void setupRoleMappingRuleDeserializer​(DelegatingDeserializer<RoleMappingRule.Builder> op)