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
All Known Subinterfaces:
Notification, Notify

@Generated("mdsal-binding-generator") public interface NotifyMessage extends org.opendaylight.yangtools.yang.binding.DataObject
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;
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Return data, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint8
    Return errorCode, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint8
    Return errorSubcode, or null if it is not present.
    Class<? extends NotifyMessage>
     
    default byte @NonNull []
    Return data, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return errorCode, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return errorSubcode, guaranteed to be non-null.
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends NotifyMessage> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getErrorCode

      org.opendaylight.yangtools.yang.common.Uint8 getErrorCode()
      Return errorCode, or null if it is not present.
      Returns:
      Uint8 errorCode, or null if it is not present.
    • requireErrorCode

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorCode()
      Return errorCode, guaranteed to be non-null.
      Returns:
      Uint8 errorCode, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if errorCode is not present
    • getErrorSubcode

      org.opendaylight.yangtools.yang.common.Uint8 getErrorSubcode()
      Return errorSubcode, or null if it is not present.
      Returns:
      Uint8 errorSubcode, or null if it is not present.
    • requireErrorSubcode

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorSubcode()
      Return errorSubcode, guaranteed to be non-null.
      Returns:
      Uint8 errorSubcode, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if errorSubcode is not present
    • getData

      byte[] getData()
      Return data, or null if it is not present.
      Returns:
      byte[] data, or null if 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