QuotaBucketRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.loadtesting.models.QuotaBucketRequest

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 QuotaBucketRequest class.

Method Summary

Modifier and Type Method and Description
Integer currentQuota()

Get the currentQuota property: Current quota limit of the quota bucket.

Integer currentUsage()

Get the currentUsage property: Current quota usage of the quota bucket.

QuotaBucketRequestPropertiesDimensions dimensions()

Get the dimensions property: Dimensions for new quota request.

static QuotaBucketRequest fromJson(JsonReader jsonReader)

Reads an instance of QuotaBucketRequest from the JsonReader.

Integer newQuota()

Get the newQuota property: New quota limit of the quota bucket.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QuotaBucketRequest withCurrentQuota(Integer currentQuota)

Set the currentQuota property: Current quota limit of the quota bucket.

QuotaBucketRequest withCurrentUsage(Integer currentUsage)

Set the currentUsage property: Current quota usage of the quota bucket.

QuotaBucketRequest withDimensions(QuotaBucketRequestPropertiesDimensions dimensions)

Set the dimensions property: Dimensions for new quota request.

QuotaBucketRequest withNewQuota(Integer newQuota)

Set the newQuota property: New quota limit of the quota bucket.

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:

the currentQuota value.

currentUsage

public Integer currentUsage()

Get the currentUsage property: Current quota usage of the quota bucket.

Returns:

the currentUsage value.

dimensions

public QuotaBucketRequestPropertiesDimensions dimensions()

Get the dimensions property: Dimensions for new quota request.

Returns:

the dimensions value.

fromJson

public static QuotaBucketRequest fromJson(JsonReader jsonReader)

Reads an instance of QuotaBucketRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QuotaBucketRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the QuotaBucketRequest.

newQuota

public Integer newQuota()

Get the newQuota property: New quota limit of the quota bucket.

Returns:

the newQuota value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

currentQuota - the currentQuota value to set.

Returns:

the QuotaBucketRequest object itself.

withCurrentUsage

public QuotaBucketRequest withCurrentUsage(Integer currentUsage)

Set the currentUsage property: Current quota usage of the quota bucket.

Parameters:

currentUsage - the currentUsage value to set.

Returns:

the QuotaBucketRequest object itself.

withDimensions

public QuotaBucketRequest withDimensions(QuotaBucketRequestPropertiesDimensions dimensions)

Set the dimensions property: Dimensions for new quota request.

Parameters:

dimensions - the dimensions value to set.

Returns:

the QuotaBucketRequest object itself.

withNewQuota

public QuotaBucketRequest withNewQuota(Integer newQuota)

Set the newQuota property: New quota limit of the quota bucket.

Parameters:

newQuota - the newQuota value to set.

Returns:

the QuotaBucketRequest object itself.

Applies to