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 Summary
Constructors Constructor Description CommitmentPlanProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
autoRenew()
Get the autoRenew property: AutoRenew commitment plan.CommitmentPeriod
current()
Get the current property: Cognitive Services account commitment period.HostingModel
hostingModel()
Get the hostingModel property: Account hosting model.CommitmentPeriod
last()
Get the last property: Cognitive Services account commitment period.CommitmentPeriod
next()
Get the next property: Cognitive Services account commitment period.String
planType()
Get the planType property: Commitment plan type.void
validate()
Validates the instance.CommitmentPlanProperties
withAutoRenew(Boolean autoRenew)
Set the autoRenew property: AutoRenew commitment plan.CommitmentPlanProperties
withCurrent(CommitmentPeriod current)
Set the current property: Cognitive Services account commitment period.CommitmentPlanProperties
withHostingModel(HostingModel hostingModel)
Set the hostingModel property: Account hosting model.CommitmentPlanProperties
withNext(CommitmentPeriod next)
Set the next property: Cognitive Services account commitment period.CommitmentPlanProperties
withPlanType(String planType)
Set the planType property: Commitment plan type.
-
-
-
Method Detail
-
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
public CommitmentPlanProperties withNext(CommitmentPeriod next)
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.
-
-