Interface SystemDnsStaticConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface SystemDnsStaticConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for static host entriesThis 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 Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable List<String>getAlias()Return alias, ornullif it is not present.StringgetHostname()Return hostname, ornullif it is not present.@Nullable List<Ipv4Address>getIpv4Address()Return ipv4Address, ornullif it is not present.@Nullable List<Ipv6Address>getIpv6Address()Return ipv6Address, ornullif it is not present.Class<? extends SystemDnsStaticConfig>implementedInterface()default @NonNull List<String>requireAlias()Return alias, guaranteed to be non-null.default @NonNull StringrequireHostname()Return hostname, guaranteed to be non-null.default @NonNull List<Ipv4Address>requireIpv4Address()Return ipv4Address, guaranteed to be non-null.default @NonNull List<Ipv6Address>requireIpv6Address()Return ipv6Address, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SystemDnsStaticConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getHostname
String getHostname()
Return hostname, ornullif it is not present.Hostname for the static DNS entry- Returns:
Stringhostname, ornullif it is not present.
-
requireHostname
default @NonNull String requireHostname()
Return hostname, guaranteed to be non-null.Hostname for the static DNS entry- Returns:
Stringhostname, guaranteed to be non-null.- Throws:
NoSuchElementException- if hostname is not present
-
getAlias
@Nullable List<String> getAlias()
Return alias, ornullif it is not present.Additional aliases for the hostname- Returns:
List<String>alias, ornullif 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, ornullif it is not present.List of IPv4 addresses for the host entry- Returns:
List<Ipv4Address>ipv4Address, ornullif 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, ornullif it is not present.List of IPv6 addresses for the host entry- Returns:
List<Ipv6Address>ipv6Address, ornullif 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
-
-