Interface LicenseConfig
-
- 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 LicenseConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for licenseThis 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; } }The schema path to identify an instance is openconfig-licenselicense-config
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLicenseConfig.LicenseData
-
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 BooleangetActive()Return active, ornullif it is not present.LicenseConfig.LicenseDatagetLicenseData()Return licenseData, ornullif it is not present.StringgetLicenseId()Return licenseId, ornullif it is not present.Class<? extends LicenseConfig>implementedInterface()default @NonNull BooleanrequireActive()Return active, guaranteed to be non-null.default @NonNull LicenseConfig.LicenseDatarequireLicenseData()Return licenseData, guaranteed to be non-null.default @NonNull StringrequireLicenseId()Return licenseId, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends LicenseConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.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
default @NonNull String 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
default @NonNull LicenseConfig.LicenseData 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
default @NonNull Boolean 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
-
-