Class DhcpDnsOption
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vnmonitoring.model.DhcpOption
-
- com.oracle.bmc.vnmonitoring.model.DhcpDnsOption
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DhcpDnsOption extends DhcpOption
DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN.For more information, see DNS in Your Virtual Cloud Network.
Note: Objects should always be created or deserialized using theDhcpDnsOption.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theDhcpDnsOption.Builder
, which maintain a set of all explicitly set fields calledDhcpDnsOption.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DhcpDnsOption.Builder
static class
DhcpDnsOption.ServerType
- VcnLocal: Reserved for future use.
-
Constructor Summary
Constructors Constructor Description DhcpDnsOption(List<String> customDnsServers, DhcpDnsOption.ServerType serverType)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DhcpDnsOption.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<String>
getCustomDnsServers()
If you set serverType to CustomDnsServer, specify the IP address of at least one DNS server of your choice (three maximum).DhcpDnsOption.ServerType
getServerType()
- VcnLocal: Reserved for future use.
int
hashCode()
DhcpDnsOption.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
DhcpDnsOption
@Deprecated public DhcpDnsOption(List<String> customDnsServers, DhcpDnsOption.ServerType serverType)
Deprecated.
-
-
Method Detail
-
builder
public static DhcpDnsOption.Builder builder()
Create a new builder.
-
toBuilder
public DhcpDnsOption.Builder toBuilder()
-
getCustomDnsServers
public List<String> getCustomDnsServers()
If you set serverType to CustomDnsServer, specify the IP address of at least one DNS server of your choice (three maximum).- Returns:
- the value
-
getServerType
public DhcpDnsOption.ServerType getServerType()
- VcnLocal: Reserved for future use.
**VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". Instances can resolve internet hostnames (no internet gateway is required), and can resolve hostnames of instances in the VCN. This is the default value in the default set of DHCP options in the VCN. For the Internet and VCN Resolver to work across the VCN, there must also be a DNS label set for the VCN, a DNS label set for each subnet, and a hostname for each instance. The Internet and VCN Resolver also enables reverse DNS lookup, which lets you determine the hostname corresponding to the private IP address. For more information, see [DNS in Your Virtual Cloud Network](https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm).
**CustomDnsServer:** Instances use a DNS server of your choice (three maximum).
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classDhcpOption
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classDhcpOption
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDhcpOption
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDhcpOption
-
-