Enum Class AccessPrivilege

java.lang.Object
java.lang.Enum<AccessPrivilege>
io.skipcheck.tm1.client.model.AccessPrivilege
All Implemented Interfaces:
ODataLiteral, Serializable, Comparable<AccessPrivilege>, Constable

@Generated("io.skipcheck.tm1.codegen") @Since("11.8.20") public enum AccessPrivilege extends Enum<AccessPrivilege> implements ODataLiteral
The AccessPrivilege enum type of the TM1 REST API.

Generated from $metadata; the fallback constant stands for a value this client doesn't know, such as one a newer server added. It's never sent.

  • Enum Constant Details

  • Method Details

    • values

      public static AccessPrivilege[] 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 AccessPrivilege 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
    • json

      public @Nullable String json()
      The value as TM1 writes it.
      Returns:
      the value, or null for the fallback constant
    • odataLiteral

      public String odataLiteral()
      The value as an OData literal, for filters: ibm.tm1.api.v1.AccessPrivilege'None'.
      Specified by:
      odataLiteral in interface ODataLiteral
      Returns:
      the literal
      Throws:
      IllegalStateException - for UNKNOWN, which has none
    • fromJson

      public static AccessPrivilege fromJson(@Nullable String value)
      The constant for a value TM1 sent.
      Parameters:
      value - the value
      Returns:
      its constant, or UNKNOWN if this client doesn't know it