Class DhcpSearchDomainOption
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vnmonitoring.model.DhcpOption
-
- com.oracle.bmc.vnmonitoring.model.DhcpSearchDomainOption
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DhcpSearchDomainOption extends DhcpOptionDHCP option for specifying a search domain name for DNS queries.For more information, see DNS in Your Virtual Cloud Network.
Note: Objects should always be created or deserialized using theDhcpSearchDomainOption.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 theDhcpSearchDomainOption.Builder, which maintain a set of all explicitly set fields calledDhcpSearchDomainOption.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 classDhcpSearchDomainOption.Builder
-
Constructor Summary
Constructors Constructor Description DhcpSearchDomainOption(List<String> searchDomainNames)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DhcpSearchDomainOption.Builderbuilder()Create a new builder.booleanequals(Object o)List<String>getSearchDomainNames()inthashCode()DhcpSearchDomainOption.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
DhcpSearchDomainOption
@Deprecated public DhcpSearchDomainOption(List<String> searchDomainNames)
Deprecated.
-
-
Method Detail
-
builder
public static DhcpSearchDomainOption.Builder builder()
Create a new builder.
-
toBuilder
public DhcpSearchDomainOption.Builder toBuilder()
-
getSearchDomainNames
public List<String> getSearchDomainNames()
A single search domain name according to RFC 952 and RFC 1123.During a DNS query, the OS will append this search domain name to the value being queried.
If you set
DhcpDnsOptionto VcnLocalPlusInternet, and you assign a DNS label to the VCN during creation, the search domain name in the VCN's default set of DHCP options is automatically set to the VCN domain (for example, vcn1.oraclevcn.com).If you don't want to use a search domain name, omit this option from the set of DHCP options. Do not include this option with an empty list of search domain names, or with an empty string as the value for any search domain name.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classDhcpOption
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classDhcpOption- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDhcpOption
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDhcpOption
-
-