Class LicenseDetails
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.LicenseDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LicenseDetails>
public final class LicenseDetails
extends Object
implements com.azure.json.JsonSerializable<LicenseDetails>
Describes the properties of a License.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the assignedLicenses property: Describes the number of assigned licenses.edition()Get the edition property: Describes the edition of the license.static LicenseDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LicenseDetails from the JsonReader.Get the immutableId property: Describes the immutable id.Get the processors property: Describes the number of processors.state()Get the state property: Describes the state of the license.target()Get the target property: Describes the license target server.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Describes the license core type (pCore or vCore).voidvalidate()Validates the instance.Get the volumeLicenseDetails property: A list of volume license details.withEdition(LicenseEdition edition) Set the edition property: Describes the edition of the license.withProcessors(Integer processors) Set the processors property: Describes the number of processors.withState(LicenseState state) Set the state property: Describes the state of the license.withTarget(LicenseTarget target) Set the target property: Describes the license target server.withType(LicenseCoreType type) Set the type property: Describes the license core type (pCore or vCore).withVolumeLicenseDetails(List<VolumeLicenseDetails> volumeLicenseDetails) Set the volumeLicenseDetails property: A list of volume license details.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LicenseDetails
public LicenseDetails()Creates an instance of LicenseDetails class.
-
-
Method Details
-
state
Get the state property: Describes the state of the license.- Returns:
- the state value.
-
withState
Set the state property: Describes the state of the license.- Parameters:
state- the state value to set.- Returns:
- the LicenseDetails object itself.
-
target
Get the target property: Describes the license target server.- Returns:
- the target value.
-
withTarget
Set the target property: Describes the license target server.- Parameters:
target- the target value to set.- Returns:
- the LicenseDetails object itself.
-
edition
Get the edition property: Describes the edition of the license. The values are either Standard or Datacenter.- Returns:
- the edition value.
-
withEdition
Set the edition property: Describes the edition of the license. The values are either Standard or Datacenter.- Parameters:
edition- the edition value to set.- Returns:
- the LicenseDetails object itself.
-
type
Get the type property: Describes the license core type (pCore or vCore).- Returns:
- the type value.
-
withType
Set the type property: Describes the license core type (pCore or vCore).- Parameters:
type- the type value to set.- Returns:
- the LicenseDetails object itself.
-
processors
Get the processors property: Describes the number of processors.- Returns:
- the processors value.
-
withProcessors
Set the processors property: Describes the number of processors.- Parameters:
processors- the processors value to set.- Returns:
- the LicenseDetails object itself.
-
assignedLicenses
Get the assignedLicenses property: Describes the number of assigned licenses.- Returns:
- the assignedLicenses value.
-
immutableId
Get the immutableId property: Describes the immutable id.- Returns:
- the immutableId value.
-
volumeLicenseDetails
Get the volumeLicenseDetails property: A list of volume license details.- Returns:
- the volumeLicenseDetails value.
-
withVolumeLicenseDetails
Set the volumeLicenseDetails property: A list of volume license details.- Parameters:
volumeLicenseDetails- the volumeLicenseDetails value to set.- Returns:
- the LicenseDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LicenseDetails>- Throws:
IOException
-
fromJson
Reads an instance of LicenseDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LicenseDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LicenseDetails.
-