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:
LocalPref, PeerPref

@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 final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint8
    Return deadtimer, or null if it is not present.
    Return ipAddress, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint8
    Return keepalive, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint16
    Return sessionId, or null 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 QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends Preferences> 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
    • getKeepalive

      org.opendaylight.yangtools.yang.common.Uint8 getKeepalive()
      Return keepalive, or null if it is not present.
           
               Advertised keep-alive value.
           
       
      Returns:
      Uint8 keepalive, or null 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, or null if it is not present.
           
               Advertised deadtimer value.
           
       
      Returns:
      Uint8 deadtimer, or null 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, or null if it is not present.
           
               Peer's IP address.
           
       
      Returns:
      String ipAddress, or null 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, or null if it is not present.
           
               Peer's session identifier.
           
       
      Returns:
      Uint16 sessionId, or null 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