Enum RecordOperation.Operation

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<RecordOperation.Operation>
    Enclosing class:
    RecordOperation

    public static enum RecordOperation.Operation
    extends Enum<RecordOperation.Operation>
    implements BmcEnum
    A description of how a record relates to a PATCH operation.

    - REQUIRE indicates a precondition that record data **must** already exist. - PROHIBIT indicates a precondition that record data **must not** already exist. - ADD indicates that record data **must** exist after successful application. - REMOVE indicates that record data **must not** exist after successful application.

    **Note:** ADD and REMOVE operations can succeed even if they require no changes when applied, such as when the described records are already present or absent.

    **Note:** ADD and REMOVE operations can describe changes for more than one record.

    **Example:** { "domain": "www.example.com", "rtype": "AAAA", "ttl": 60 } specifies a new TTL for every record in the www.example.com AAAA RRSet.

    • Method Detail

      • values

        public static RecordOperation.Operation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RecordOperation.Operation c : RecordOperation.Operation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RecordOperation.Operation 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