All Implemented Interfaces:

public class RoleDescriptor
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static RoleDescriptor of​(java.util.function.Function<RoleDescriptor.Builder,​ObjectBuilder<RoleDescriptor>> fn)
    • cluster

      public final java.util.List<java.lang.String> cluster()
      Required - API name: cluster
    • indices

      public final java.util.List<IndicesPrivileges> indices()
      Required - API name: indices
    • global

      public final java.util.List<GlobalPrivilege> global()
      API name: global
    • applications

      public final java.util.List<ApplicationPrivileges> applications()
      API name: applications
    • metadata

      public final java.util.Map<java.lang.String,​JsonData> metadata()
      API name: metadata
    • runAs

      public final java.util.List<java.lang.String> runAs()
      API name: run_as
    • transientMetadata

      public final java.util.Map<java.lang.String,​JsonData> transientMetadata()
      API name: transient_metadata
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupRoleDescriptorDeserializer

      protected static void setupRoleDescriptorDeserializer​(ObjectDeserializer<RoleDescriptor.Builder> op)