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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductFeatureUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProductFeatureUpdate from the JsonReader.name()Get the name property: Product feature name.Get the subscriptionStatus property: Indicates the new status of the product feature.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: Product feature name.withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate subscriptionStatus) Set the subscriptionStatus property: Indicates the new status of the product feature.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
-
ProductFeatureUpdate
public ProductFeatureUpdate()Creates an instance of ProductFeatureUpdate class.
-
-
Method Details
-
name
Get the name property: Product feature name.- Returns:
- the name value.
-
withName
Set the name property: Product feature name.- Parameters:
name- the name value to set.- Returns:
- the ProductFeatureUpdate object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-