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;
       }
     }
     
    The schema path to identify an instance is openconfig-systemsystem-dns-static-config
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • 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 List<String> getAlias()
        Return alias, or null if it is not present.
             
                 Additional aliases for the hostname
             
         
        Returns:
        List<String> alias, or null if it is not present.
      • requireAlias

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

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

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

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

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