@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DhcpSearchDomainOption extends DhcpOption
DHCP 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 the DhcpSearchDomainOption.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 the DhcpSearchDomainOption.Builder
, which maintain a
set of all explicitly set fields called DhcpSearchDomainOption.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
DhcpSearchDomainOption.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DhcpSearchDomainOption(List<String> searchDomainNames)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DhcpSearchDomainOption.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<String> |
getSearchDomainNames()
|
int |
hashCode() |
DhcpSearchDomainOption.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public DhcpSearchDomainOption(List<String> searchDomainNames)
public static DhcpSearchDomainOption.Builder builder()
Create a new builder.
public DhcpSearchDomainOption.Builder toBuilder()
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 DhcpDnsOption
to 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.
public String toString()
toString
in class DhcpOption
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class DhcpOption
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class DhcpOption
public int hashCode()
hashCode
in class DhcpOption
Copyright © 2016–2024. All rights reserved.