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>

public final class LicenseUpdate extends ResourceUpdate
Describes a License Update.
  • Constructor Details

    • LicenseUpdate

      public LicenseUpdate()
      Creates an instance of LicenseUpdate class.
  • Method Details

    • withTags

      public LicenseUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class ResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceUpdate object itself.
    • licenseType

      public LicenseType licenseType()
      Get the licenseType property: The type of the license resource.
      Returns:
      the licenseType value.
    • withLicenseType

      public LicenseUpdate withLicenseType(LicenseType licenseType)
      Set the licenseType property: The type of the license resource.
      Parameters:
      licenseType - the licenseType value to set.
      Returns:
      the LicenseUpdate object itself.
    • state

      public LicenseState state()
      Get the state property: Describes the state of the license.
      Returns:
      the state value.
    • withState

      public LicenseUpdate withState(LicenseState state)
      Set the state property: Describes the state of the license.
      Parameters:
      state - the state value to set.
      Returns:
      the LicenseUpdate object itself.
    • target

      public LicenseTarget target()
      Get the target property: Describes the license target server.
      Returns:
      the target value.
    • withTarget

      public LicenseUpdate withTarget(LicenseTarget target)
      Set the target property: Describes the license target server.
      Parameters:
      target - the target value to set.
      Returns:
      the LicenseUpdate object itself.
    • edition

      public LicenseEdition edition()
      Get the edition property: Describes the edition of the license. The values are either Standard or Datacenter.
      Returns:
      the edition value.
    • withEdition

      public LicenseUpdate withEdition(LicenseEdition edition)
      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

      public LicenseCoreType type()
      Get the type property: Describes the license core type (pCore or vCore).
      Returns:
      the type value.
    • withType

      public LicenseUpdate withType(LicenseCoreType type)
      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

      public Integer processors()
      Get the processors property: Describes the number of processors.
      Returns:
      the processors value.
    • withProcessors

      public LicenseUpdate withProcessors(Integer processors)
      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:
      validate in class ResourceUpdate
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceUpdate>
      Overrides:
      toJson in class ResourceUpdate
      Throws:
      IOException
    • fromJson

      public static LicenseUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.