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.
Modifier and Type | Method and Description |
---|---|
static RecordOperation.Operation |
create(String key) |
String |
getValue() |
static RecordOperation.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordOperation.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordOperation.Operation Require
public static final RecordOperation.Operation Prohibit
public static final RecordOperation.Operation Add
public static final RecordOperation.Operation Remove
public static RecordOperation.Operation[] values()
for (RecordOperation.Operation c : RecordOperation.Operation.values()) System.out.println(c);
public static RecordOperation.Operation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static RecordOperation.Operation create(String key)
Copyright © 2016–2024. All rights reserved.