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.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getCommonName()
Return commonName, ornull
if it is not present.String
getCountry()
Return country, ornull
if it is not present.String
getLocality()
Return locality, ornull
if it is not present.String
getOrganization()
Return organization, ornull
if it is not present.String
getOrganizationUnit()
Return organizationUnit, ornull
if it is not present.String
getState()
Return state, ornull
if it is not present.Class<? extends X500Principal>
implementedInterface()
default @NonNull String
requireCommonName()
Return commonName, guaranteed to be non-null.default @NonNull String
requireCountry()
Return country, guaranteed to be non-null.default @NonNull String
requireLocality()
Return locality, guaranteed to be non-null.default @NonNull String
requireOrganization()
Return organization, guaranteed to be non-null.default @NonNull String
requireOrganizationUnit()
Return organizationUnit, guaranteed to be non-null.default @NonNull String
requireState()
Return state, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends X500Principal> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getCountry
String getCountry()
Return country, ornull
if it is not present.- Returns:
String
country, ornull
if it is not present.
-
requireCountry
default @NonNull String requireCountry()
Return country, guaranteed to be non-null.- Returns:
String
country, guaranteed to be non-null.- Throws:
NoSuchElementException
- if country is not present
-
getState
String getState()
Return state, ornull
if it is not present.- Returns:
String
state, ornull
if it is not present.
-
requireState
default @NonNull String requireState()
Return state, guaranteed to be non-null.- Returns:
String
state, guaranteed to be non-null.- Throws:
NoSuchElementException
- if state is not present
-
getLocality
String getLocality()
Return locality, ornull
if it is not present.- Returns:
String
locality, ornull
if it is not present.
-
requireLocality
default @NonNull String requireLocality()
Return locality, guaranteed to be non-null.- Returns:
String
locality, guaranteed to be non-null.- Throws:
NoSuchElementException
- if locality is not present
-
getOrganization
String getOrganization()
Return organization, ornull
if it is not present.- Returns:
String
organization, ornull
if it is not present.
-
requireOrganization
default @NonNull String requireOrganization()
Return organization, guaranteed to be non-null.- Returns:
String
organization, guaranteed to be non-null.- Throws:
NoSuchElementException
- if organization is not present
-
getOrganizationUnit
String getOrganizationUnit()
Return organizationUnit, ornull
if it is not present.- Returns:
String
organizationUnit, ornull
if it is not present.
-
requireOrganizationUnit
default @NonNull String requireOrganizationUnit()
Return organizationUnit, guaranteed to be non-null.- Returns:
String
organizationUnit, guaranteed to be non-null.- Throws:
NoSuchElementException
- if organizationUnit is not present
-
getCommonName
String getCommonName()
Return commonName, ornull
if it is not present.- Returns:
String
commonName, ornull
if it is not present.
-
requireCommonName
default @NonNull String requireCommonName()
Return commonName, guaranteed to be non-null.- Returns:
String
commonName, guaranteed to be non-null.- Throws:
NoSuchElementException
- if commonName is not present
-
-