Class ProductFeatureUpdate

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

public final class ProductFeatureUpdate extends Object implements com.azure.json.JsonSerializable<ProductFeatureUpdate>
Product Feature.
  • Constructor Details

    • ProductFeatureUpdate

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

    • name

      public String name()
      Get the name property: Product feature name.
      Returns:
      the name value.
    • withName

      public ProductFeatureUpdate withName(String name)
      Set the name property: Product feature name.
      Parameters:
      name - the name value to set.
      Returns:
      the ProductFeatureUpdate object itself.
    • subscriptionStatus

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

      public ProductFeatureUpdate withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate subscriptionStatus)
      Set the subscriptionStatus property: Indicates the new status of the product feature.
      Parameters:
      subscriptionStatus - the subscriptionStatus value to set.
      Returns:
      the ProductFeatureUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      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<ProductFeatureUpdate>
      Throws:
      IOException
    • fromJson

      public static ProductFeatureUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ProductFeatureUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ProductFeatureUpdate 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 ProductFeatureUpdate.