@Generated(value="OracleSDKGenerator", comments="API Version: 20180115") public final class RecordOperation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
An extension of the existing record resource, describing either a precondition, an add, or a
remove. Preconditions check all fields, including read-only data like recordHash
and
rrsetVersion
.
Note: Objects should always be created or deserialized using the RecordOperation.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the RecordOperation.Builder
, which maintain a
set of all explicitly set fields called RecordOperation.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RecordOperation.Builder |
static class |
RecordOperation.Operation
A description of how a record relates to a PATCH operation.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RecordOperation(String domain,
String recordHash,
Boolean isProtected,
String rdata,
String rrsetVersion,
String rtype,
Integer ttl,
RecordOperation.Operation operation)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RecordOperation.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDomain()
The fully qualified domain name where the record can be located.
|
Boolean |
getIsProtected()
A Boolean flag indicating whether or not parts of the record are unable to be explicitly
managed.
|
RecordOperation.Operation |
getOperation()
A description of how a record relates to a PATCH operation.
|
String |
getRdata()
The record’s data, as whitespace-delimited tokens in type-specific presentation format.
|
String |
getRecordHash()
A unique identifier for the record within its zone.
|
String |
getRrsetVersion()
The latest version of the record’s zone in which its RRSet differs from the preceding
version.
|
String |
getRtype()
The type of DNS record, such as A or CNAME.
|
Integer |
getTtl()
The Time To Live for the record, in seconds.
|
int |
hashCode() |
RecordOperation.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"domain","recordHash","isProtected","rdata","rrsetVersion","rtype","ttl","operation"}) public RecordOperation(String domain, String recordHash, Boolean isProtected, String rdata, String rrsetVersion, String rtype, Integer ttl, RecordOperation.Operation operation)
public static RecordOperation.Builder builder()
Create a new builder.
public RecordOperation.Builder toBuilder()
public String getDomain()
The fully qualified domain name where the record can be located.
public String getRecordHash()
A unique identifier for the record within its zone.
public Boolean getIsProtected()
A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.
public String getRdata()
The record’s data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types
public String getRrsetVersion()
The latest version of the record’s zone in which its RRSet differs from the preceding version.
public String getRtype()
The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.
public Integer getTtl()
The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.
public RecordOperation.Operation getOperation()
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.