Interface RoleReply
- 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:
RoleRequestOutput
@Generated("mdsal-binding-generator")
public interface RoleReply
extends org.opendaylight.yangtools.yang.binding.DataObject, OfHeader
This class represents the following YANG schema fragment defined in module openflow-protocol
grouping role-reply {
uses ofHeader;
leaf role {
type oft:controller-role;
}
leaf generation-id {
type uint64;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint64Return generationId, ornullif it is not present.getRole()Return role, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return generationId, guaranteed to be non-null.default @NonNull ControllerRoleReturn role, 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
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject- Specified by:
implementedInterfacein interfaceOfHeader
-
getRole
ControllerRole getRole()Return role, ornullif it is not present.- Returns:
ControllerRolerole, ornullif it is not present.
-
requireRole
Return role, guaranteed to be non-null.- Returns:
ControllerRolerole, guaranteed to be non-null.- Throws:
NoSuchElementException- if role is not present
-
getGenerationId
org.opendaylight.yangtools.yang.common.Uint64 getGenerationId()Return generationId, ornullif it is not present.- Returns:
Uint64generationId, ornullif it is not present.
-
requireGenerationId
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireGenerationId()Return generationId, guaranteed to be non-null.- Returns:
Uint64generationId, guaranteed to be non-null.- Throws:
NoSuchElementException- if generationId is not present
-