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, ornullif it is not present.getValue()Return value, ornullif it is not present.default @NonNull NumericOperandReturn op, guaranteed to be non-null.default @NonNull DscpReturn value, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getOp
NumericOperand getOp()Return op, ornullif it is not present.- Returns:
NumericOperandop, ornullif it is not present.
-
requireOp
Return op, guaranteed to be non-null.- Returns:
NumericOperandop, guaranteed to be non-null.- Throws:
NoSuchElementException- if op is not present
-
getValue
Dscp getValue()Return value, ornullif it is not present.- Returns:
Dscpvalue, ornullif it is not present.
-
requireValue
Return value, guaranteed to be non-null.- Returns:
Dscpvalue, guaranteed to be non-null.- Throws:
NoSuchElementException- if value is not present
-