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 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

      public Integer currentUsage()
      Get the currentUsage property: Current quota usage of the quota bucket.
      Returns:
      the currentUsage value.
    • 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.
    • currentQuota

      public Integer currentQuota()
      Get the currentQuota property: Current quota limit of the quota bucket.
      Returns:
      the currentQuota value.
    • 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.
    • newQuota

      public Integer newQuota()
      Get the newQuota property: New quota limit of the quota bucket.
      Returns:
      the newQuota value.
    • 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.
    • dimensions

      Get the dimensions property: Dimensions for new quota request.
      Returns:
      the dimensions value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.