@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrivateDnsNameOptionsRequest extends Object implements Serializable, Cloneable
Describes the options for instance hostnames.
Constructor and Description |
---|
PrivateDnsNameOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
PrivateDnsNameOptionsRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
|
Boolean |
getEnableResourceNameDnsARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
|
String |
getHostnameType()
The type of hostname for EC2 instances.
|
int |
hashCode() |
Boolean |
isEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
|
Boolean |
isEnableResourceNameDnsARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
|
void |
setEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
|
void |
setEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
|
void |
setHostnameType(String hostnameType)
The type of hostname for EC2 instances.
|
String |
toString()
Returns a string representation of this object.
|
PrivateDnsNameOptionsRequest |
withEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
|
PrivateDnsNameOptionsRequest |
withEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
|
PrivateDnsNameOptionsRequest |
withHostnameType(HostnameType hostnameType)
The type of hostname for EC2 instances.
|
PrivateDnsNameOptionsRequest |
withHostnameType(String hostnameType)
The type of hostname for EC2 instances.
|
public void setHostnameType(String hostnameType)
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
hostnameType
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the
instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For
dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.HostnameType
public String getHostnameType()
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
HostnameType
public PrivateDnsNameOptionsRequest withHostnameType(String hostnameType)
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
hostnameType
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the
instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For
dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.HostnameType
public PrivateDnsNameOptionsRequest withHostnameType(HostnameType hostnameType)
The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
hostnameType
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the
instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For
dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.HostnameType
public void setEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
enableResourceNameDnsARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.public Boolean getEnableResourceNameDnsARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
public PrivateDnsNameOptionsRequest withEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
enableResourceNameDnsARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.public Boolean isEnableResourceNameDnsARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
public void setEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
enableResourceNameDnsAAAARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.public Boolean getEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
public PrivateDnsNameOptionsRequest withEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
enableResourceNameDnsAAAARecord
- Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.public Boolean isEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
public String toString()
toString
in class Object
Object.toString()
public PrivateDnsNameOptionsRequest clone()