Class CommitmentPeriod
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod
-
public final class CommitmentPeriod extends Object
Cognitive Services account commitment period.
-
-
Constructor Summary
Constructors Constructor Description CommitmentPeriod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
count()
Get the count property: Commitment period commitment count.String
endDate()
Get the endDate property: Commitment period end date.CommitmentQuota
quota()
Get the quota property: Cognitive Services account commitment quota.String
startDate()
Get the startDate property: Commitment period start date.String
tier()
Get the tier property: Commitment period commitment tier.void
validate()
Validates the instance.CommitmentPeriod
withCount(Integer count)
Set the count property: Commitment period commitment count.CommitmentPeriod
withTier(String tier)
Set the tier property: Commitment period commitment tier.
-
-
-
Method Detail
-
tier
public String tier()
Get the tier property: Commitment period commitment tier.- Returns:
- the tier value.
-
withTier
public CommitmentPeriod withTier(String tier)
Set the tier property: Commitment period commitment tier.- Parameters:
tier
- the tier value to set.- Returns:
- the CommitmentPeriod object itself.
-
count
public Integer count()
Get the count property: Commitment period commitment count.- Returns:
- the count value.
-
withCount
public CommitmentPeriod withCount(Integer count)
Set the count property: Commitment period commitment count.- Parameters:
count
- the count value to set.- Returns:
- the CommitmentPeriod object itself.
-
quota
public CommitmentQuota quota()
Get the quota property: Cognitive Services account commitment quota.- Returns:
- the quota value.
-
startDate
public String startDate()
Get the startDate property: Commitment period start date.- Returns:
- the startDate value.
-
endDate
public String endDate()
Get the endDate property: Commitment period end date.- Returns:
- the endDate value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-