Interface DscpValue
- 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:
Dscps
@Generated("mdsal-binding-generator")
public interface DscpValue
extends org.opendaylight.yangtools.binding.Grouping
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; } }
-
Method Summary
Modifier and TypeMethodDescriptiongetOp()
Return op, ornull
if it is not present.getValue()
Return value, ornull
if it is not present.default @NonNull NumericOperand
Return op, guaranteed to be non-null.default @NonNull Dscp
Return value, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getOp
NumericOperand getOp()Return op, ornull
if it is not present.- Returns:
NumericOperand
op, ornull
if it is not present.
-
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, ornull
if it is not present.- Returns:
Dscp
value, ornull
if it is not present.
-
requireValue
Return value, guaranteed to be non-null.- Returns:
Dscp
value, guaranteed to be non-null.- Throws:
NoSuchElementException
- if value is not present
-