Interface SystemDnsStaticConfig

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Config, State

    @Generated("mdsal-binding-generator")
    public interface SystemDnsStaticConfig
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Configuration data for static host entries

    This class represents the following YANG schema fragment defined in module openconfig-system

     grouping system-dns-static-config {
       leaf hostname {
         type string;
       }
       leaf-list alias {
         type string;
       }
       leaf-list ipv4-address {
         type oc-inet:ipv4-address;
       }
       leaf-list ipv6-address {
         type oc-inet:ipv6-address;
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends SystemDnsStaticConfig> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getHostname

        String getHostname()
        Return hostname, or null if it is not present.
             
                 Hostname for the static DNS entry
             
         
        Returns:
        String hostname, or null if it is not present.
      • requireHostname

        default @NonNull String requireHostname()
        Return hostname, guaranteed to be non-null.
             
                 Hostname for the static DNS entry
             
         
        Returns:
        String hostname, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if hostname is not present
      • getAlias

        @Nullable Set<String> getAlias()
        Return alias, or null if it is not present.
             
                 Additional aliases for the hostname
             
         
        Returns:
        Set<String> alias, or null if it is not present.
      • requireAlias

        default @NonNull Set<String> requireAlias()
        Return alias, guaranteed to be non-null.
             
                 Additional aliases for the hostname
             
         
        Returns:
        Set<String> alias, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if alias is not present
      • getIpv4Address

        @Nullable Set<Ipv4Address> getIpv4Address()
        Return ipv4Address, or null if it is not present.
             
                 List of IPv4 addresses for the host entry
             
         
        Returns:
        Set<Ipv4Address> ipv4Address, or null if it is not present.
      • requireIpv4Address

        default @NonNull Set<Ipv4Address> requireIpv4Address()
        Return ipv4Address, guaranteed to be non-null.
             
                 List of IPv4 addresses for the host entry
             
         
        Returns:
        Set<Ipv4Address> ipv4Address, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if ipv4Address is not present
      • getIpv6Address

        @Nullable Set<Ipv6Address> getIpv6Address()
        Return ipv6Address, or null if it is not present.
             
                 List of IPv6 addresses for the host entry
             
         
        Returns:
        Set<Ipv6Address> ipv6Address, or null if it is not present.
      • requireIpv6Address

        default @NonNull Set<Ipv6Address> requireIpv6Address()
        Return ipv6Address, guaranteed to be non-null.
             
                 List of IPv6 addresses for the host entry
             
         
        Returns:
        Set<Ipv6Address> ipv6Address, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if ipv6Address is not present