Interface LicenseConfig
- 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
@Generated("mdsal-binding-generator")
public interface LicenseConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for license
This class represents the following YANG schema fragment defined in module openconfig-license
grouping license-config {
leaf license-id {
type string;
}
leaf license-data {
type union {
type binary;
type string;
}
}
leaf active {
type boolean;
default false;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-license -
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 active, ornullif it is not present.Return licenseData, ornullif it is not present.Return licenseId, ornullif it is not present.Class<? extends LicenseConfig>default @NonNull BooleanReturn active, guaranteed to be non-null.default @NonNull LicenseConfig.LicenseDataReturn licenseData, guaranteed to be non-null.default @NonNull StringReturn licenseId, 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 LicenseConfig> 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
-
getLicenseId
String getLicenseId()Return licenseId, ornullif it is not present.License ID. A string that uniquelly identifies the license. The platform should list all the licenses it supports being activated.- Returns:
StringlicenseId, ornullif it is not present.
-
requireLicenseId
Return licenseId, guaranteed to be non-null.License ID. A string that uniquelly identifies the license. The platform should list all the licenses it supports being activated.- Returns:
StringlicenseId, guaranteed to be non-null.- Throws:
NoSuchElementException- if licenseId is not present
-
getLicenseData
LicenseConfig.LicenseData getLicenseData()Return licenseData, ornullif it is not present.The contents of the licence (if required) - which may be supplied as a binary blob, or a simple string value. If this value is considered sensitive, it may be read as an empty value.- Returns:
LicenseDatalicenseData, ornullif it is not present.
-
requireLicenseData
Return licenseData, guaranteed to be non-null.The contents of the licence (if required) - which may be supplied as a binary blob, or a simple string value. If this value is considered sensitive, it may be read as an empty value.- Returns:
LicenseDatalicenseData, guaranteed to be non-null.- Throws:
NoSuchElementException- if licenseData is not present
-
getActive
Boolean getActive()Return active, ornullif it is not present.The activation state of the license.- Returns:
Booleanactive, ornullif it is not present.
-
requireActive
Return active, guaranteed to be non-null.The activation state of the license.- Returns:
Booleanactive, guaranteed to be non-null.- Throws:
NoSuchElementException- if active is not present
-