Class DhcpSearchDomainOption


  • @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).

    • Constructor Detail

      • DhcpSearchDomainOption

        @Deprecated
        public DhcpSearchDomainOption​(List<String> searchDomainNames)
        Deprecated.
    • Method Detail

      • 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 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.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class DhcpOption
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation