Class ProductFeature
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ProductFeature
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProductFeature>
public final class ProductFeature
extends Object
implements com.azure.json.JsonSerializable<ProductFeature>
Product Feature.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the billingEndDate property: The timestamp in UTC when the billing ends.Get the billingStartDate property: The timestamp in UTC when the billing starts.Get the disenrollmentDate property: The timestamp in UTC when the user disenrolled the feature.Get the enrollmentDate property: The timestamp in UTC when the user enrolls the feature.com.azure.core.management.exception.ManagementErrorerror()Get the error property: The errors that were encountered during the feature enrollment or disenrollment.static ProductFeaturefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProductFeature from the JsonReader.name()Get the name property: Product feature name.Get the subscriptionStatus property: Indicates the current status of the product features.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: Product feature name.withSubscriptionStatus(LicenseProfileSubscriptionStatus subscriptionStatus) Set the subscriptionStatus property: Indicates the current status of the product features.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
-
ProductFeature
public ProductFeature()Creates an instance of ProductFeature 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 ProductFeature object itself.
-
subscriptionStatus
Get the subscriptionStatus property: Indicates the current status of the product features.- Returns:
- the subscriptionStatus value.
-
withSubscriptionStatus
Set the subscriptionStatus property: Indicates the current status of the product features.- Parameters:
subscriptionStatus- the subscriptionStatus value to set.- Returns:
- the ProductFeature object itself.
-
enrollmentDate
Get the enrollmentDate property: The timestamp in UTC when the user enrolls the feature.- Returns:
- the enrollmentDate value.
-
billingStartDate
Get the billingStartDate property: The timestamp in UTC when the billing starts.- Returns:
- the billingStartDate value.
-
disenrollmentDate
Get the disenrollmentDate property: The timestamp in UTC when the user disenrolled the feature.- Returns:
- the disenrollmentDate value.
-
billingEndDate
Get the billingEndDate property: The timestamp in UTC when the billing ends.- Returns:
- the billingEndDate value.
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The errors that were encountered during the feature enrollment or disenrollment.- Returns:
- the error value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProductFeature>- Throws:
IOException
-
fromJson
Reads an instance of ProductFeature from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProductFeature 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 ProductFeature.
-