Interface Preferences
-
- 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 Preferences extends org.opendaylight.yangtools.yang.binding.DataObject
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; } }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint8
getDeadtimer()
Return deadtimer, ornull
if it is not present.String
getIpAddress()
Return ipAddress, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint8
getKeepalive()
Return keepalive, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
getSessionId()
Return sessionId, ornull
if it is not present.Class<? extends Preferences>
implementedInterface()
default @NonNull org.opendaylight.yangtools.yang.common.Uint8
requireDeadtimer()
Return deadtimer, guaranteed to be non-null.default @NonNull String
requireIpAddress()
Return ipAddress, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8
requireKeepalive()
Return keepalive, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
requireSessionId()
Return sessionId, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends Preferences> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getKeepalive
org.opendaylight.yangtools.yang.common.Uint8 getKeepalive()
Return keepalive, ornull
if it is not present.Advertised keep-alive value.
- Returns:
Uint8
keepalive, ornull
if 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:
Uint8
keepalive, guaranteed to be non-null.- Throws:
NoSuchElementException
- if keepalive is not present
-
getDeadtimer
org.opendaylight.yangtools.yang.common.Uint8 getDeadtimer()
Return deadtimer, ornull
if it is not present.Advertised deadtimer value.
- Returns:
Uint8
deadtimer, ornull
if 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:
Uint8
deadtimer, guaranteed to be non-null.- Throws:
NoSuchElementException
- if deadtimer is not present
-
getIpAddress
String getIpAddress()
Return ipAddress, ornull
if it is not present.Peer's IP address.
- Returns:
String
ipAddress, ornull
if it is not present.
-
requireIpAddress
default @NonNull String requireIpAddress()
Return ipAddress, guaranteed to be non-null.Peer's IP address.
- Returns:
String
ipAddress, guaranteed to be non-null.- Throws:
NoSuchElementException
- if ipAddress is not present
-
getSessionId
org.opendaylight.yangtools.yang.common.Uint16 getSessionId()
Return sessionId, ornull
if it is not present.Peer's session identifier.
- Returns:
Uint16
sessionId, ornull
if 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:
Uint16
sessionId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if sessionId is not present
-
-