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:
MeterBandDrop, MeterBandDscpRemark, MeterBandExperimenter

@Generated("mdsal-binding-generator") public interface MeterBandCommons extends org.opendaylight.yangtools.yang.binding.DataObject

This class represents the following YANG schema fragment defined in module openflow-protocol

 grouping meter-band-commons {
   leaf type {
     type oft:meter-band-type;
   }
   leaf rate {
     type uint32;
   }
   leaf burst-size {
     type uint32;
   }
 }
 
  • 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.Uint32
    Return burstSize, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint32
    Return rate, or null if it is not present.
    Return type, or null if it is not present.
     
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return burstSize, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return rate, guaranteed to be non-null.
    default @NonNull MeterBandType
    Return type, 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 MeterBandCommons> 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
    • getType

      MeterBandType getType()
      Return type, or null if it is not present.
      Returns:
      MeterBandType type, or null if it is not present.
    • requireType

      default @NonNull MeterBandType requireType()
      Return type, guaranteed to be non-null.
      Returns:
      MeterBandType type, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if type is not present
    • getRate

      org.opendaylight.yangtools.yang.common.Uint32 getRate()
      Return rate, or null if it is not present.
      Returns:
      Uint32 rate, or null if it is not present.
    • requireRate

      default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireRate()
      Return rate, guaranteed to be non-null.
      Returns:
      Uint32 rate, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if rate is not present
    • getBurstSize

      org.opendaylight.yangtools.yang.common.Uint32 getBurstSize()
      Return burstSize, or null if it is not present.
      Returns:
      Uint32 burstSize, or null if it is not present.
    • requireBurstSize

      default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireBurstSize()
      Return burstSize, guaranteed to be non-null.
      Returns:
      Uint32 burstSize, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if burstSize is not present