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 Details

    • ProductFeature

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

    • name

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

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

      public LicenseProfileSubscriptionStatus subscriptionStatus()
      Get the subscriptionStatus property: Indicates the current status of the product features.
      Returns:
      the subscriptionStatus value.
    • withSubscriptionStatus

      public ProductFeature withSubscriptionStatus(LicenseProfileSubscriptionStatus subscriptionStatus)
      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

      public OffsetDateTime enrollmentDate()
      Get the enrollmentDate property: The timestamp in UTC when the user enrolls the feature.
      Returns:
      the enrollmentDate value.
    • billingStartDate

      public OffsetDateTime billingStartDate()
      Get the billingStartDate property: The timestamp in UTC when the billing starts.
      Returns:
      the billingStartDate value.
    • disenrollmentDate

      public OffsetDateTime disenrollmentDate()
      Get the disenrollmentDate property: The timestamp in UTC when the user disenrolled the feature.
      Returns:
      the disenrollmentDate value.
    • billingEndDate

      public OffsetDateTime 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

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

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