Interface LicenseState
- 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:
State
@Generated("mdsal-binding-generator")
public interface LicenseState
extends org.opendaylight.yangtools.yang.binding.DataObject
State data for license
This 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;
}
}
-
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.org.opendaylight.yangtools.yang.common.Uint64Return expirationDate, ornullif it is not present.Return expired, ornullif it is not present.getInUse()Return inUse, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64Return issueDate, ornullif it is not present.getValid()Return valid, ornullif it is not present.Class<? extends LicenseState>default @NonNull StringReturn description, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return expirationDate, guaranteed to be non-null.default @NonNull BooleanReturn expired, guaranteed to be non-null.default @NonNull BooleanReturn inUse, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return issueDate, guaranteed to be non-null.default @NonNull BooleanReturn valid, 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
Class<? extends LicenseState> 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
-
getDescription
String getDescription()Return description, ornullif it is not present.The license description.- Returns:
Stringdescription, ornullif it is not present.
-
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
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
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
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
-