Enum ConditionType

  • All Implemented Interfaces:
    Serializable, Comparable<ConditionType>, java.lang.constant.Constable

    public enum ConditionType
    extends Enum<ConditionType>
    Condition types. A Condition defines which field value of the `Asset` is compared against a given value.
    We currently support 4 different kinds of Conditions on `Assets`:
    - **TAG**: Refers to a tag of the `Asset`.
    - **METADATA_VALUE**: Refers to a value of a custom `MetadataField` of an `Asset`.
    - **CUSTOM_METADATA_VALUE**: Refers to a value of a `CustomMetadata` of an `Asset`.
    - **EXTERNAL_ID**: Refers to the `externalId` assigned to the `Asset`.
    - **FILE_EXTENSION**: Refers to the file extension of an `Asset`.
    • Enum Constant Detail

      • METADATA_VALUE

        @SerializedName("METADATA_VALUE")
        public static final ConditionType METADATA_VALUE
      • CUSTOM_METADATA_VALUE

        @SerializedName("CUSTOM_METADATA_VALUE")
        public static final ConditionType CUSTOM_METADATA_VALUE
      • EXTERNAL_ID

        @SerializedName("EXTERNAL_ID")
        public static final ConditionType EXTERNAL_ID
      • TAG

        @SerializedName("TAG")
        public static final ConditionType TAG
      • FILE_EXTENSION

        @SerializedName("FILE_EXTENSION")
        public static final ConditionType FILE_EXTENSION
    • Method Detail

      • values

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

        public static ConditionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null