Class LicenseUpdate
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.LicenseUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>
Describes a License Update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedition()Get the edition property: Describes the edition of the license.static LicenseUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LicenseUpdate from the JsonReader.Get the licenseType property: The type of the license resource.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.withEdition(LicenseEdition edition) Set the edition property: Describes the edition of the license.withLicenseType(LicenseType licenseType) Set the licenseType property: The type of the license resource.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.Set the tags property: Resource tags.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).Methods inherited from class com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
tagsMethods 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
-
LicenseUpdate
public LicenseUpdate()Creates an instance of LicenseUpdate class.
-
-
Method Details
-
withTags
Set the tags property: Resource tags.- Overrides:
withTagsin classResourceUpdate- Parameters:
tags- the tags value to set.- Returns:
- the ResourceUpdate object itself.
-
licenseType
Get the licenseType property: The type of the license resource.- Returns:
- the licenseType value.
-
withLicenseType
Set the licenseType property: The type of the license resource.- Parameters:
licenseType- the licenseType value to set.- Returns:
- the LicenseUpdate object itself.
-
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 LicenseUpdate 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 LicenseUpdate 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 LicenseUpdate 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 LicenseUpdate 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 LicenseUpdate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceUpdate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceUpdate>- Overrides:
toJsonin classResourceUpdate- Throws:
IOException
-
fromJson
Reads an instance of LicenseUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LicenseUpdate 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 LicenseUpdate.
-