@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrivateDnsNameOptionsOnLaunch extends Object implements Serializable, Cloneable
Describes the options for instance hostnames.
Constructor and Description |
---|
PrivateDnsNameOptionsOnLaunch() |
Modifier and Type | Method and Description |
---|---|
PrivateDnsNameOptionsOnLaunch |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostname 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 hostname 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 hostname 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.
|
PrivateDnsNameOptionsOnLaunch |
withEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
|
PrivateDnsNameOptionsOnLaunch |
withEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
|
PrivateDnsNameOptionsOnLaunch |
withHostnameType(HostnameType hostnameType)
The type of hostname for EC2 instances.
|
PrivateDnsNameOptionsOnLaunch |
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 PrivateDnsNameOptionsOnLaunch 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 PrivateDnsNameOptionsOnLaunch 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 PrivateDnsNameOptionsOnLaunch 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 hostname with DNS AAAA records.
enableResourceNameDnsAAAARecord
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.public Boolean getEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
public PrivateDnsNameOptionsOnLaunch withEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord)
Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
enableResourceNameDnsAAAARecord
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.public Boolean isEnableResourceNameDnsAAAARecord()
Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
public String toString()
toString
in class Object
Object.toString()
public PrivateDnsNameOptionsOnLaunch clone()