@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DnsServersOptionsModifyStructure extends Object implements Serializable, Cloneable
Information about the DNS server to be used.
Constructor and Description |
---|
DnsServersOptionsModifyStructure() |
Modifier and Type | Method and Description |
---|---|
DnsServersOptionsModifyStructure |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCustomDnsServers()
The IPv4 address range, in CIDR notation, of the DNS servers to be used.
|
Boolean |
getEnabled()
Indicates whether DNS servers should be used.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether DNS servers should be used.
|
void |
setCustomDnsServers(Collection<String> customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used.
|
void |
setEnabled(Boolean enabled)
Indicates whether DNS servers should be used.
|
String |
toString()
Returns a string representation of this object.
|
DnsServersOptionsModifyStructure |
withCustomDnsServers(Collection<String> customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used.
|
DnsServersOptionsModifyStructure |
withCustomDnsServers(String... customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used.
|
DnsServersOptionsModifyStructure |
withEnabled(Boolean enabled)
Indicates whether DNS servers should be used.
|
public List<String> getCustomDnsServers()
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
public void setCustomDnsServers(Collection<String> customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
customDnsServers
- The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS
servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the
existing values.public DnsServersOptionsModifyStructure withCustomDnsServers(String... customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
NOTE: This method appends the values to the existing list (if any). Use
setCustomDnsServers(java.util.Collection)
or withCustomDnsServers(java.util.Collection)
if you
want to override the existing values.
customDnsServers
- The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS
servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the
existing values.public DnsServersOptionsModifyStructure withCustomDnsServers(Collection<String> customDnsServers)
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
customDnsServers
- The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS
servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the
existing values.public void setEnabled(Boolean enabled)
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
enabled
- Indicates whether DNS servers should be used. Specify False
to delete the existing DNS
servers.public Boolean getEnabled()
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
False
to delete the existing DNS
servers.public DnsServersOptionsModifyStructure withEnabled(Boolean enabled)
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
enabled
- Indicates whether DNS servers should be used. Specify False
to delete the existing DNS
servers.public Boolean isEnabled()
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
False
to delete the existing DNS
servers.public String toString()
toString
in class Object
Object.toString()
public DnsServersOptionsModifyStructure clone()