Interface Role
- 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
- All Known Subinterfaces:
Roles
@Generated("mdsal-binding-generator")
public interface Role
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module aaa
grouping role {
leaf roleid {
type string;
}
leaf name {
type string;
}
leaf description {
type string;
default "";
}
leaf domainid {
type string;
}
}
-
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 TypeMethodDescriptionReturn description, ornullif it is not present.Return domainid, ornullif it is not present.getName()Return name, ornullif it is not present.Return roleid, ornullif it is not present.default @NonNull StringReturn description, guaranteed to be non-null.default @NonNull StringReturn domainid, guaranteed to be non-null.default @NonNull StringReturn name, guaranteed to be non-null.default @NonNull StringReturn roleid, guaranteed to be non-null.
-
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
-
getRoleid
String getRoleid()Return roleid, ornullif it is not present.An internal wiring detail in the form 'name'.- Returns:
Stringroleid, ornullif it is not present.
-
requireRoleid
Return roleid, guaranteed to be non-null.An internal wiring detail in the form 'name'.- Returns:
Stringroleid, guaranteed to be non-null.- Throws:
NoSuchElementException- if roleid is not present
-
getName
String getName()Return name, ornullif it is not present.The name for the role.- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.The name for the role.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getDescription
String getDescription()Return description, ornullif it is not present.A description of the role; defaults to the empty string.- Returns:
Stringdescription, ornullif it is not present.
-
requireDescription
Return description, guaranteed to be non-null.A description of the role; defaults to the empty string.- Returns:
Stringdescription, guaranteed to be non-null.- Throws:
NoSuchElementException- if description is not present
-
getDomainid
String getDomainid()Return domainid, ornullif it is not present.The domain associated with the role.- Returns:
Stringdomainid, ornullif it is not present.
-
requireDomainid
Return domainid, guaranteed to be non-null.The domain associated with the role.- Returns:
Stringdomainid, guaranteed to be non-null.- Throws:
NoSuchElementException- if domainid is not present
-