Interface DscpValue

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Dscps

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

    This class represents the following YANG schema fragment defined in module bgp-flowspec

     grouping dscp-value {
       leaf op {
         type numeric-operand;
       }
       leaf value {
         type dscp;
       }
     }
     
    The schema path to identify an instance is bgp-flowspecdscp-value
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

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

        NumericOperand getOp()
        Return op, or null if it is not present.
        Returns:
        NumericOperand op, or null if it is not present.
      • requireOp

        default @NonNull NumericOperand requireOp()
        Return op, guaranteed to be non-null.
        Returns:
        NumericOperand op, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if op is not present
      • getValue

        Dscp getValue()
        Return value, or null if it is not present.
        Returns:
        Dscp value, or null if it is not present.
      • requireValue

        default @NonNull Dscp requireValue()
        Return value, guaranteed to be non-null.
        Returns:
        Dscp value, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if value is not present