Class QuotaBucketRequest
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.loadtestservice.models.QuotaBucketRequest
public final class QuotaBucketRequest
extends com.azure.core.management.ProxyResource
Request object of new quota for a quota bucket.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentQuota property: Current quota limit of the quota bucket.Get the currentUsage property: Current quota usage of the quota bucket.Get the dimensions property: Dimensions for new quota request.newQuota()
Get the newQuota property: New quota limit of the quota bucket.com.azure.core.management.SystemData
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.void
validate()
Validates the instance.withCurrentQuota
(Integer currentQuota) Set the currentQuota property: Current quota limit of the quota bucket.withCurrentUsage
(Integer currentUsage) Set the currentUsage property: Current quota usage of the quota bucket.withDimensions
(QuotaBucketRequestPropertiesDimensions dimensions) Set the dimensions property: Dimensions for new quota request.withNewQuota
(Integer newQuota) Set the newQuota property: New quota limit of the quota bucket.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
QuotaBucketRequest
public QuotaBucketRequest()Creates an instance of QuotaBucketRequest class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
currentUsage
Get the currentUsage property: Current quota usage of the quota bucket.- Returns:
- the currentUsage value.
-
withCurrentUsage
Set the currentUsage property: Current quota usage of the quota bucket.- Parameters:
currentUsage
- the currentUsage value to set.- Returns:
- the QuotaBucketRequest object itself.
-
currentQuota
Get the currentQuota property: Current quota limit of the quota bucket.- Returns:
- the currentQuota value.
-
withCurrentQuota
Set the currentQuota property: Current quota limit of the quota bucket.- Parameters:
currentQuota
- the currentQuota value to set.- Returns:
- the QuotaBucketRequest object itself.
-
newQuota
Get the newQuota property: New quota limit of the quota bucket.- Returns:
- the newQuota value.
-
withNewQuota
Set the newQuota property: New quota limit of the quota bucket.- Parameters:
newQuota
- the newQuota value to set.- Returns:
- the QuotaBucketRequest object itself.
-
dimensions
Get the dimensions property: Dimensions for new quota request.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: Dimensions for new quota request.- Parameters:
dimensions
- the dimensions value to set.- Returns:
- the QuotaBucketRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-