QuotaBucketRequest Class
- java.
lang. Object - com.
azure. resourcemanager. loadtesting. models. QuotaBucketRequest
- com.
Implements
public final class QuotaBucketRequest
implements JsonSerializable<QuotaBucketRequest>
Request object of new quota for a quota bucket.
Constructor Summary
| Constructor | Description |
|---|---|
| QuotaBucketRequest() |
Creates an instance of Quota |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
currentQuota()
Get the current |
| Integer |
currentUsage()
Get the current |
|
Quota |
dimensions()
Get the dimensions property: Dimensions for new quota request. |
|
static
Quota |
fromJson(JsonReader jsonReader)
Reads an instance of Quota |
| Integer |
newQuota()
Get the new |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Quota |
withCurrentQuota(Integer currentQuota)
Set the current |
|
Quota |
withCurrentUsage(Integer currentUsage)
Set the current |
|
Quota |
withDimensions(QuotaBucketRequestPropertiesDimensions dimensions)
Set the dimensions property: Dimensions for new quota request. |
|
Quota |
withNewQuota(Integer newQuota)
Set the new |
Methods inherited from java.lang.Object
Constructor Details
QuotaBucketRequest
public QuotaBucketRequest()
Creates an instance of QuotaBucketRequest class.
Method Details
currentQuota
public Integer currentQuota()
Get the currentQuota property: Current quota limit of the quota bucket.
Returns:
currentUsage
public Integer currentUsage()
Get the currentUsage property: Current quota usage of the quota bucket.
Returns:
dimensions
public QuotaBucketRequestPropertiesDimensions dimensions()
Get the dimensions property: Dimensions for new quota request.
Returns:
fromJson
public static QuotaBucketRequest fromJson(JsonReader jsonReader)
Reads an instance of QuotaBucketRequest from the JsonReader.
Parameters:
Returns:
Throws:
newQuota
public Integer newQuota()
Get the newQuota property: New quota limit of the quota bucket.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCurrentQuota
public QuotaBucketRequest withCurrentQuota(Integer currentQuota)
Set the currentQuota property: Current quota limit of the quota bucket.
Parameters:
Returns:
withCurrentUsage
public QuotaBucketRequest withCurrentUsage(Integer currentUsage)
Set the currentUsage property: Current quota usage of the quota bucket.
Parameters:
Returns:
withDimensions
public QuotaBucketRequest withDimensions(QuotaBucketRequestPropertiesDimensions dimensions)
Set the dimensions property: Dimensions for new quota request.
Parameters:
Returns:
withNewQuota
public QuotaBucketRequest withNewQuota(Integer newQuota)
Set the newQuota property: New quota limit of the quota bucket.
Parameters:
Returns: