Class CommitmentPlanProperties
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties
Properties of Cognitive Services account commitment plan.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the autoRenew property: AutoRenew commitment plan.current()
Get the current property: Cognitive Services account commitment period.Get the hostingModel property: Account hosting model.last()
Get the last property: Cognitive Services account commitment period.next()
Get the next property: Cognitive Services account commitment period.planType()
Get the planType property: Commitment plan type.void
validate()
Validates the instance.withAutoRenew
(Boolean autoRenew) Set the autoRenew property: AutoRenew commitment plan.withCurrent
(CommitmentPeriod current) Set the current property: Cognitive Services account commitment period.withHostingModel
(HostingModel hostingModel) Set the hostingModel property: Account hosting model.withNext
(CommitmentPeriod next) Set the next property: Cognitive Services account commitment period.withPlanType
(String planType) Set the planType property: Commitment plan type.
-
Constructor Details
-
CommitmentPlanProperties
public CommitmentPlanProperties()
-
-
Method Details
-
hostingModel
Get the hostingModel property: Account hosting model.- Returns:
- the hostingModel value.
-
withHostingModel
Set the hostingModel property: Account hosting model.- Parameters:
hostingModel
- the hostingModel value to set.- Returns:
- the CommitmentPlanProperties object itself.
-
planType
Get the planType property: Commitment plan type.- Returns:
- the planType value.
-
withPlanType
Set the planType property: Commitment plan type.- Parameters:
planType
- the planType value to set.- Returns:
- the CommitmentPlanProperties object itself.
-
current
Get the current property: Cognitive Services account commitment period.- Returns:
- the current value.
-
withCurrent
Set the current property: Cognitive Services account commitment period.- Parameters:
current
- the current value to set.- Returns:
- the CommitmentPlanProperties object itself.
-
autoRenew
Get the autoRenew property: AutoRenew commitment plan.- Returns:
- the autoRenew value.
-
withAutoRenew
Set the autoRenew property: AutoRenew commitment plan.- Parameters:
autoRenew
- the autoRenew value to set.- Returns:
- the CommitmentPlanProperties object itself.
-
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
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.
-