Class CommitmentQuota
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota
Cognitive Services account commitment quota.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionquantity()
Get the quantity property: Commitment quota quantity.unit()
Get the unit property: Commitment quota unit.void
validate()
Validates the instance.withQuantity
(Long quantity) Set the quantity property: Commitment quota quantity.Set the unit property: Commitment quota unit.
-
Constructor Details
-
CommitmentQuota
public CommitmentQuota()
-
-
Method Details
-
quantity
Get the quantity property: Commitment quota quantity.- Returns:
- the quantity value.
-
withQuantity
Set the quantity property: Commitment quota quantity.- Parameters:
quantity
- the quantity value to set.- Returns:
- the CommitmentQuota object itself.
-
unit
Get the unit property: Commitment quota unit.- Returns:
- the unit value.
-
withUnit
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.
-