Interface MeterMod$G
- 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
,OfHeader
- All Known Subinterfaces:
MeterModInput
@Generated("mdsal-binding-generator")
public interface MeterMod$G
extends org.opendaylight.yangtools.yang.binding.DataObject, OfHeader
This class represents the following YANG schema fragment defined in module openflow-protocol
grouping meter-mod { uses ofHeader; leaf command { type oft:meter-mod-command; } leaf flags { type oft:meter-flags; } leaf meter-id { type oft:meter-id; } list bands { uses meter-band-header; } }
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetBands()
Return bands, ornull
if it is not present.Return command, ornull
if it is not present.getFlags()
Return flags, ornull
if it is not present.Return meterId, ornull
if it is not present.Class<? extends MeterMod$G>
Return bands, or an empty list if it is not present.default @NonNull MeterModCommand
Return command, guaranteed to be non-null.default @NonNull MeterFlags
Return flags, guaranteed to be non-null.default @NonNull MeterId
Return meterId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader
getVersion, getXid, requireVersion, requireXid
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends MeterMod$G> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceOfHeader
-
getCommand
MeterModCommand getCommand()Return command, ornull
if it is not present.- Returns:
MeterModCommand
command, ornull
if it is not present.
-
requireCommand
Return command, guaranteed to be non-null.- Returns:
MeterModCommand
command, guaranteed to be non-null.- Throws:
NoSuchElementException
- if command is not present
-
getFlags
MeterFlags getFlags()Return flags, ornull
if it is not present.- Returns:
MeterFlags
flags, ornull
if it is not present.
-
requireFlags
Return flags, guaranteed to be non-null.- Returns:
MeterFlags
flags, guaranteed to be non-null.- Throws:
NoSuchElementException
- if flags is not present
-
getMeterId
MeterId getMeterId()Return meterId, ornull
if it is not present.- Returns:
MeterId
meterId, ornull
if it is not present.
-
requireMeterId
Return meterId, guaranteed to be non-null.- Returns:
MeterId
meterId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if meterId is not present
-
getBands
Return bands, ornull
if it is not present.- Returns:
List<Bands>
bands, ornull
if it is not present.
-
nonnullBands
Return bands, or an empty list if it is not present.- Returns:
List<Bands>
bands, or an empty list if it is not present.
-