Class CommitmentQuota
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota
-
public final class CommitmentQuota extends Object
Cognitive Services account commitment quota.
-
-
Constructor Summary
Constructors Constructor Description CommitmentQuota()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
quantity()
Get the quantity property: Commitment quota quantity.String
unit()
Get the unit property: Commitment quota unit.void
validate()
Validates the instance.CommitmentQuota
withQuantity(Long quantity)
Set the quantity property: Commitment quota quantity.CommitmentQuota
withUnit(String unit)
Set the unit property: Commitment quota unit.
-
-
-
Method Detail
-
quantity
public Long quantity()
Get the quantity property: Commitment quota quantity.- Returns:
- the quantity value.
-
withQuantity
public CommitmentQuota withQuantity(Long quantity)
Set the quantity property: Commitment quota quantity.- Parameters:
quantity
- the quantity value to set.- Returns:
- the CommitmentQuota object itself.
-
unit
public String unit()
Get the unit property: Commitment quota unit.- Returns:
- the unit value.
-
withUnit
public CommitmentQuota withUnit(String unit)
Set the unit property: Commitment quota unit.- Parameters:
unit
- the unit value to set.- Returns:
- the CommitmentQuota object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-