Interface NotifyMessage
- 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
- All Known Subinterfaces:
Notification,Notify
@Generated("mdsal-binding-generator")
public interface NotifyMessage
extends org.opendaylight.yangtools.binding.Grouping
Notification Message
This class represents the following YANG schema fragment defined in module bgp-message
grouping notify-message {
leaf error-code {
type uint8;
}
leaf error-subcode {
type uint8;
}
leaf data {
type binary;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Return data, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return errorCode, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return errorSubcode, ornullif it is not present.default byte @NonNull []Return data, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return errorCode, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return errorSubcode, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getErrorCode
org.opendaylight.yangtools.yang.common.Uint8 getErrorCode()Return errorCode, ornullif it is not present.- Returns:
Uint8errorCode, ornullif it is not present.
-
requireErrorCode
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorCode()Return errorCode, guaranteed to be non-null.- Returns:
Uint8errorCode, guaranteed to be non-null.- Throws:
NoSuchElementException- if errorCode is not present
-
getErrorSubcode
org.opendaylight.yangtools.yang.common.Uint8 getErrorSubcode()Return errorSubcode, ornullif it is not present.- Returns:
Uint8errorSubcode, ornullif it is not present.
-
requireErrorSubcode
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorSubcode()Return errorSubcode, guaranteed to be non-null.- Returns:
Uint8errorSubcode, guaranteed to be non-null.- Throws:
NoSuchElementException- if errorSubcode is not present
-
getData
byte[] getData()Return data, ornullif it is not present.- Returns:
byte[]data, ornullif it is not present.
-
requireData
default byte @NonNull [] requireData()Return data, guaranteed to be non-null.- Returns:
byte[]data, guaranteed to be non-null.- Throws:
NoSuchElementException- if data is not present
-