Interface X500Principal
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface X500Principal extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module system-notifications
grouping x500-principal { leaf country { type string; } leaf state { type string; } leaf locality { type string; } leaf organization { type string; } leaf organization-unit { type string; } leaf common-name { type string; } }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetCommonName()Return commonName, ornullif it is not present.StringgetCountry()Return country, ornullif it is not present.StringgetLocality()Return locality, ornullif it is not present.StringgetOrganization()Return organization, ornullif it is not present.StringgetOrganizationUnit()Return organizationUnit, ornullif it is not present.StringgetState()Return state, ornullif it is not present.Class<? extends X500Principal>implementedInterface()default @NonNull StringrequireCommonName()Return commonName, guaranteed to be non-null.default @NonNull StringrequireCountry()Return country, guaranteed to be non-null.default @NonNull StringrequireLocality()Return locality, guaranteed to be non-null.default @NonNull StringrequireOrganization()Return organization, guaranteed to be non-null.default @NonNull StringrequireOrganizationUnit()Return organizationUnit, guaranteed to be non-null.default @NonNull StringrequireState()Return state, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends X500Principal> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getCountry
String getCountry()
Return country, ornullif it is not present.- Returns:
Stringcountry, ornullif it is not present.
-
requireCountry
default @NonNull String requireCountry()
Return country, guaranteed to be non-null.- Returns:
Stringcountry, guaranteed to be non-null.- Throws:
NoSuchElementException- if country is not present
-
getState
String getState()
Return state, ornullif it is not present.- Returns:
Stringstate, ornullif it is not present.
-
requireState
default @NonNull String requireState()
Return state, guaranteed to be non-null.- Returns:
Stringstate, guaranteed to be non-null.- Throws:
NoSuchElementException- if state is not present
-
getLocality
String getLocality()
Return locality, ornullif it is not present.- Returns:
Stringlocality, ornullif it is not present.
-
requireLocality
default @NonNull String requireLocality()
Return locality, guaranteed to be non-null.- Returns:
Stringlocality, guaranteed to be non-null.- Throws:
NoSuchElementException- if locality is not present
-
getOrganization
String getOrganization()
Return organization, ornullif it is not present.- Returns:
Stringorganization, ornullif it is not present.
-
requireOrganization
default @NonNull String requireOrganization()
Return organization, guaranteed to be non-null.- Returns:
Stringorganization, guaranteed to be non-null.- Throws:
NoSuchElementException- if organization is not present
-
getOrganizationUnit
String getOrganizationUnit()
Return organizationUnit, ornullif it is not present.- Returns:
StringorganizationUnit, ornullif it is not present.
-
requireOrganizationUnit
default @NonNull String requireOrganizationUnit()
Return organizationUnit, guaranteed to be non-null.- Returns:
StringorganizationUnit, guaranteed to be non-null.- Throws:
NoSuchElementException- if organizationUnit is not present
-
getCommonName
String getCommonName()
Return commonName, ornullif it is not present.- Returns:
StringcommonName, ornullif it is not present.
-
requireCommonName
default @NonNull String requireCommonName()
Return commonName, guaranteed to be non-null.- Returns:
StringcommonName, guaranteed to be non-null.- Throws:
NoSuchElementException- if commonName is not present
-
-