@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DnsRecord extends Object implements Serializable, Cloneable, StructuredPojo
A DNS record uploaded to your DNS provider.
| Constructor and Description |
|---|
DnsRecord() |
| Modifier and Type | Method and Description |
|---|---|
DnsRecord |
clone() |
boolean |
equals(Object obj) |
String |
getHostname()
The DNS hostname.- For example,
domain.example.com. |
String |
getType()
The RFC 1035 record type.
|
String |
getValue()
The value returned by the DNS for a query to that hostname and record type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setHostname(String hostname)
The DNS hostname.- For example,
domain.example.com. |
void |
setType(String type)
The RFC 1035 record type.
|
void |
setValue(String value)
The value returned by the DNS for a query to that hostname and record type.
|
String |
toString()
Returns a string representation of this object.
|
DnsRecord |
withHostname(String hostname)
The DNS hostname.- For example,
domain.example.com. |
DnsRecord |
withType(String type)
The RFC 1035 record type.
|
DnsRecord |
withValue(String value)
The value returned by the DNS for a query to that hostname and record type.
|
public void setType(String type)
The RFC 1035 record type. Possible values: CNAME, A, MX.
type - The RFC 1035 record type. Possible values: CNAME, A, MX.public String getType()
The RFC 1035 record type. Possible values: CNAME, A, MX.
CNAME, A, MX.public DnsRecord withType(String type)
The RFC 1035 record type. Possible values: CNAME, A, MX.
type - The RFC 1035 record type. Possible values: CNAME, A, MX.public void setHostname(String hostname)
The DNS hostname.- For example, domain.example.com.
hostname - The DNS hostname.- For example, domain.example.com.public String getHostname()
The DNS hostname.- For example, domain.example.com.
domain.example.com.public DnsRecord withHostname(String hostname)
The DNS hostname.- For example, domain.example.com.
hostname - The DNS hostname.- For example, domain.example.com.public void setValue(String value)
The value returned by the DNS for a query to that hostname and record type.
value - The value returned by the DNS for a query to that hostname and record type.public String getValue()
The value returned by the DNS for a query to that hostname and record type.
public DnsRecord withValue(String value)
The value returned by the DNS for a query to that hostname and record type.
value - The value returned by the DNS for a query to that hostname and record type.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.