Class CommitmentPlanProperties

java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties

public final class CommitmentPlanProperties extends Object
Properties of Cognitive Services account commitment plan.
  • Constructor Details

    • CommitmentPlanProperties

      public CommitmentPlanProperties()
  • Method Details

    • hostingModel

      public HostingModel hostingModel()
      Get the hostingModel property: Account hosting model.
      Returns:
      the hostingModel value.
    • withHostingModel

      public CommitmentPlanProperties withHostingModel(HostingModel hostingModel)
      Set the hostingModel property: Account hosting model.
      Parameters:
      hostingModel - the hostingModel value to set.
      Returns:
      the CommitmentPlanProperties object itself.
    • planType

      public String planType()
      Get the planType property: Commitment plan type.
      Returns:
      the planType value.
    • withPlanType

      public CommitmentPlanProperties withPlanType(String planType)
      Set the planType property: Commitment plan type.
      Parameters:
      planType - the planType value to set.
      Returns:
      the CommitmentPlanProperties object itself.
    • current

      public CommitmentPeriod current()
      Get the current property: Cognitive Services account commitment period.
      Returns:
      the current value.
    • withCurrent

      public CommitmentPlanProperties withCurrent(CommitmentPeriod current)
      Set the current property: Cognitive Services account commitment period.
      Parameters:
      current - the current value to set.
      Returns:
      the CommitmentPlanProperties object itself.
    • autoRenew

      public Boolean autoRenew()
      Get the autoRenew property: AutoRenew commitment plan.
      Returns:
      the autoRenew value.
    • withAutoRenew

      public CommitmentPlanProperties withAutoRenew(Boolean autoRenew)
      Set the autoRenew property: AutoRenew commitment plan.
      Parameters:
      autoRenew - the autoRenew value to set.
      Returns:
      the CommitmentPlanProperties object itself.
    • next

      public CommitmentPeriod next()
      Get the next property: Cognitive Services account commitment period.
      Returns:
      the next value.
    • withNext

      Set the next property: Cognitive Services account commitment period.
      Parameters:
      next - the next value to set.
      Returns:
      the CommitmentPlanProperties object itself.
    • last

      public CommitmentPeriod last()
      Get the last property: Cognitive Services account commitment period.
      Returns:
      the last value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.