Class ApplicationPrivileges

java.lang.Object
co.elastic.clients.elasticsearch.security.ApplicationPrivileges
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

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

      public final java.lang.String application()
      Required - The name of the application to which this entry applies.

      API name: application

    • privileges

      public final java.util.List<java.lang.String> privileges()
      Required - A list of strings, where each element is the name of an application privilege or action.

      API name: privileges

    • resources

      public final java.util.List<java.lang.String> resources()
      Required - A list resources to which the privileges are applied.

      API name: resources

    • serialize

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

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupApplicationPrivilegesDeserializer

      protected static void setupApplicationPrivilegesDeserializer​(ObjectDeserializer<ApplicationPrivileges.Builder> op)