Enum Class DataSourcePrivilege

java.lang.Object
java.lang.Enum<DataSourcePrivilege>
co.elastic.clients.elasticsearch.security.DataSourcePrivilege
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<DataSourcePrivilege>, Constable

@JsonpDeserializable public enum DataSourcePrivilege extends Enum<DataSourcePrivilege> implements JsonEnum
See Also:
  • Enum Constant Details

    • Create

      public static final DataSourcePrivilege Create
      Grants privilege to create a data source with a matching name.
    • Delete

      public static final DataSourcePrivilege Delete
      Grants privilege to delete a data source with a matching name.
    • ReadMetadata

      public static final DataSourcePrivilege ReadMetadata
      Grants privilege to read a data source's metadata.
    • Read

      public static final DataSourcePrivilege Read
      Grants privilege to attach a dataset to a data source with a matching name.
    • Manage

      public static final DataSourcePrivilege Manage
      Grants all data source privileges, including create, delete, read, and read_metadata.
  • Field Details

  • Method Details

    • values

      public static DataSourcePrivilege[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DataSourcePrivilege valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum