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

@Generated("mdsal-binding-generator") public interface Preferences extends org.opendaylight.yangtools.binding.Grouping

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;
   }
 }
 
  • 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.
    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.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • 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