Interface Preferences
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,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
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint8
Return deadtimer, ornull
if it is not present.Return ipAddress, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint8
Return keepalive, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
Return sessionId, ornull
if it is not present.Class<? extends Preferences>
default @NonNull org.opendaylight.yangtools.yang.common.Uint8
Return deadtimer, guaranteed to be non-null.default @NonNull String
Return ipAddress, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8
Return keepalive, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return sessionId, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends Preferences> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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
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
-