@Generated(value="software.amazon.awssdk:codegen") public class DnsRecord extends Object implements StructuredPojo, ToCopyableBuilder<DnsRecord.Builder,DnsRecord>
A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance.
Modifier and Type | Class and Description |
---|---|
static interface |
DnsRecord.Builder |
Modifier and Type | Method and Description |
---|---|
static DnsRecord.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends DnsRecord.Builder> |
serializableBuilderClass() |
DnsRecord.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
ttl()
The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set.
|
RecordType |
type()
The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries.
|
String |
typeString()
The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries.
|
copy
public RecordType type()
The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. The following values are supported:
A: Amazon Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.
AAAA: Amazon Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.
SRV: Amazon Route 53 returns the value for an SRV record. The value for an SRV record uses the following template, which can't be changed:
priority weight port resource-record-set-name
The values of priority
and weight
are both set to 1. The value of port comes from the
value that you specify for Port
when you submit a RegisterInstance request.
If the service returns an enum value that is not available in the current SDK version, type
will return
RecordType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
A: Amazon Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.
AAAA: Amazon Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.
SRV: Amazon Route 53 returns the value for an SRV record. The value for an SRV record uses the following template, which can't be changed:
priority weight port resource-record-set-name
The values of priority
and weight
are both set to 1. The value of port comes
from the value that you specify for Port
when you submit a RegisterInstance request.
RecordType
public String typeString()
The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. The following values are supported:
A: Amazon Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.
AAAA: Amazon Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.
SRV: Amazon Route 53 returns the value for an SRV record. The value for an SRV record uses the following template, which can't be changed:
priority weight port resource-record-set-name
The values of priority
and weight
are both set to 1. The value of port comes from the
value that you specify for Port
when you submit a RegisterInstance request.
If the service returns an enum value that is not available in the current SDK version, type
will return
RecordType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
A: Amazon Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.
AAAA: Amazon Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.
SRV: Amazon Route 53 returns the value for an SRV record. The value for an SRV record uses the following template, which can't be changed:
priority weight port resource-record-set-name
The values of priority
and weight
are both set to 1. The value of port comes
from the value that you specify for Port
when you submit a RegisterInstance request.
RecordType
public Long ttl()
The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set.
public DnsRecord.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DnsRecord.Builder,DnsRecord>
public static DnsRecord.Builder builder()
public static Class<? extends DnsRecord.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.