Interface Preferences
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
@Generated("mdsal-binding-generator")
public interface Preferences
extends org.opendaylight.yangtools.binding.Grouping
This class represents the following YANG schema fragment defined in module pcep-session-stats
grouping preferences {
leaf keepalive {
type uint8;
default 0;
}
leaf deadtimer {
type uint8;
default 0;
}
leaf ip-address {
type string;
default "";
}
leaf session-id {
type uint16;
default 0;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint8Return deadtimer, ornullif it is not present.Return ipAddress, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return keepalive, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16Return sessionId, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return deadtimer, guaranteed to be non-null.default @NonNull StringReturn ipAddress, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return keepalive, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return sessionId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getKeepalive
org.opendaylight.yangtools.yang.common.Uint8 getKeepalive()Return keepalive, ornullif it is not present.Advertised keep-alive value.- Returns:
Uint8keepalive, ornullif it is not present.
-
requireKeepalive
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireKeepalive()Return keepalive, guaranteed to be non-null.Advertised keep-alive value.- Returns:
Uint8keepalive, guaranteed to be non-null.- Throws:
NoSuchElementException- if keepalive is not present
-
getDeadtimer
org.opendaylight.yangtools.yang.common.Uint8 getDeadtimer()Return deadtimer, ornullif it is not present.Advertised deadtimer value.- Returns:
Uint8deadtimer, ornullif it is not present.
-
requireDeadtimer
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireDeadtimer()Return deadtimer, guaranteed to be non-null.Advertised deadtimer value.- Returns:
Uint8deadtimer, guaranteed to be non-null.- Throws:
NoSuchElementException- if deadtimer is not present
-
getIpAddress
String getIpAddress()Return ipAddress, ornullif it is not present.Peer's IP address.- Returns:
StringipAddress, ornullif it is not present.
-
requireIpAddress
Return ipAddress, guaranteed to be non-null.Peer's IP address.- Returns:
StringipAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if ipAddress is not present
-
getSessionId
org.opendaylight.yangtools.yang.common.Uint16 getSessionId()Return sessionId, ornullif it is not present.Peer's session identifier.- Returns:
Uint16sessionId, ornullif it is not present.
-
requireSessionId
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireSessionId()Return sessionId, guaranteed to be non-null.Peer's session identifier.- Returns:
Uint16sessionId, guaranteed to be non-null.- Throws:
NoSuchElementException- if sessionId is not present
-