Class LicenseProfileUpdate

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.LicenseProfileUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>

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

    • LicenseProfileUpdate

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

    • withTags

      public LicenseProfileUpdate 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.
    • softwareAssuranceCustomer

      public Boolean softwareAssuranceCustomer()
      Get the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance agreement.
      Returns:
      the softwareAssuranceCustomer value.
    • withSoftwareAssuranceCustomer

      public LicenseProfileUpdate withSoftwareAssuranceCustomer(Boolean softwareAssuranceCustomer)
      Set the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance agreement.
      Parameters:
      softwareAssuranceCustomer - the softwareAssuranceCustomer value to set.
      Returns:
      the LicenseProfileUpdate object itself.
    • assignedLicense

      public String assignedLicense()
      Get the assignedLicense property: The resource id of the license.
      Returns:
      the assignedLicense value.
    • withAssignedLicense

      public LicenseProfileUpdate withAssignedLicense(String assignedLicense)
      Set the assignedLicense property: The resource id of the license.
      Parameters:
      assignedLicense - the assignedLicense value to set.
      Returns:
      the LicenseProfileUpdate object itself.
    • subscriptionStatus

      public LicenseProfileSubscriptionStatusUpdate subscriptionStatus()
      Get the subscriptionStatus property: Indicates the subscription status of the product.
      Returns:
      the subscriptionStatus value.
    • withSubscriptionStatus

      public LicenseProfileUpdate withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate subscriptionStatus)
      Set the subscriptionStatus property: Indicates the subscription status of the product.
      Parameters:
      subscriptionStatus - the subscriptionStatus value to set.
      Returns:
      the LicenseProfileUpdate object itself.
    • productType

      public LicenseProfileProductType productType()
      Get the productType property: Indicates the product type of the license.
      Returns:
      the productType value.
    • withProductType

      public LicenseProfileUpdate withProductType(LicenseProfileProductType productType)
      Set the productType property: Indicates the product type of the license.
      Parameters:
      productType - the productType value to set.
      Returns:
      the LicenseProfileUpdate object itself.
    • productFeatures

      public List<ProductFeatureUpdate> productFeatures()
      Get the productFeatures property: The list of product feature updates.
      Returns:
      the productFeatures value.
    • withProductFeatures

      public LicenseProfileUpdate withProductFeatures(List<ProductFeatureUpdate> productFeatures)
      Set the productFeatures property: The list of product feature updates.
      Parameters:
      productFeatures - the productFeatures value to set.
      Returns:
      the LicenseProfileUpdate 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 LicenseProfileUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LicenseProfileUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LicenseProfileUpdate 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 LicenseProfileUpdate.