Interface LicenseState
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator") public interface LicenseState extends org.opendaylight.yangtools.yang.binding.DataObject
State data for licenseThis class represents the following YANG schema fragment defined in module openconfig-license
grouping license-state { leaf description { type string; } leaf issue-date { type uint64; } leaf expiration-date { type uint64; } leaf in-use { type boolean; } leaf expired { type boolean; } leaf valid { type boolean; } }The schema path to identify an instance is openconfig-licenselicense-state
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetDescription()Return description, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64getExpirationDate()Return expirationDate, ornullif it is not present.BooleangetExpired()Return expired, ornullif it is not present.BooleangetInUse()Return inUse, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64getIssueDate()Return issueDate, ornullif it is not present.BooleangetValid()Return valid, ornullif it is not present.Class<? extends LicenseState>implementedInterface()default @NonNull StringrequireDescription()Return description, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64requireExpirationDate()Return expirationDate, guaranteed to be non-null.default @NonNull BooleanrequireExpired()Return expired, guaranteed to be non-null.default @NonNull BooleanrequireInUse()Return inUse, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64requireIssueDate()Return issueDate, guaranteed to be non-null.default @NonNull BooleanrequireValid()Return valid, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends LicenseState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getDescription
String getDescription()
Return description, ornullif it is not present.The license description.- Returns:
Stringdescription, ornullif it is not present.
-
requireDescription
default @NonNull String requireDescription()
Return description, guaranteed to be non-null.The license description.- Returns:
Stringdescription, guaranteed to be non-null.- Throws:
NoSuchElementException- if description is not present
-
getIssueDate
org.opendaylight.yangtools.yang.common.Uint64 getIssueDate()
Return issueDate, ornullif it is not present.The date and time at which the license was issued, expressed as the number of nanoseconds since the Unix Epoch (January 1, 1970, 00:00 UTC).- Returns:
Uint64issueDate, ornullif it is not present.
-
requireIssueDate
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireIssueDate()
Return issueDate, guaranteed to be non-null.The date and time at which the license was issued, expressed as the number of nanoseconds since the Unix Epoch (January 1, 1970, 00:00 UTC).- Returns:
Uint64issueDate, guaranteed to be non-null.- Throws:
NoSuchElementException- if issueDate is not present
-
getExpirationDate
org.opendaylight.yangtools.yang.common.Uint64 getExpirationDate()
Return expirationDate, ornullif it is not present.The date and time at which the license will expire, expressed as the number of nanoseconds since the Unix Epoch (January 1, 1970, 00:00 UTC). Zero if it does not expire.- Returns:
Uint64expirationDate, ornullif it is not present.
-
requireExpirationDate
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireExpirationDate()
Return expirationDate, guaranteed to be non-null.The date and time at which the license will expire, expressed as the number of nanoseconds since the Unix Epoch (January 1, 1970, 00:00 UTC). Zero if it does not expire.- Returns:
Uint64expirationDate, guaranteed to be non-null.- Throws:
NoSuchElementException- if expirationDate is not present
-
getInUse
Boolean getInUse()
Return inUse, ornullif it is not present.The license is in use. Different from active. This states that the license is effectively being used in addition to being active. If license for feature X was activated but feature X is not being used, then this should be false.- Returns:
BooleaninUse, ornullif it is not present.
-
requireInUse
default @NonNull Boolean requireInUse()
Return inUse, guaranteed to be non-null.The license is in use. Different from active. This states that the license is effectively being used in addition to being active. If license for feature X was activated but feature X is not being used, then this should be false.- Returns:
BooleaninUse, guaranteed to be non-null.- Throws:
NoSuchElementException- if inUse is not present
-
getExpired
Boolean getExpired()
Return expired, ornullif it is not present.The license has expired.- Returns:
Booleanexpired, ornullif it is not present.
-
requireExpired
default @NonNull Boolean requireExpired()
Return expired, guaranteed to be non-null.The license has expired.- Returns:
Booleanexpired, guaranteed to be non-null.- Throws:
NoSuchElementException- if expired is not present
-
getValid
Boolean getValid()
Return valid, ornullif it is not present.The license is valid. Can be activated in the system or platform.- Returns:
Booleanvalid, ornullif it is not present.
-
requireValid
default @NonNull Boolean requireValid()
Return valid, guaranteed to be non-null.The license is valid. Can be activated in the system or platform.- Returns:
Booleanvalid, guaranteed to be non-null.- Throws:
NoSuchElementException- if valid is not present
-
-