java.lang.Object
com.azure.resourcemanager.datamigration.fluent.models.QuotaInner

public final class QuotaInner extends Object
Describes a quota for or usage details about a resource.
  • Constructor Details

    • QuotaInner

      public QuotaInner()
      Creates an instance of QuotaInner class.
  • Method Details

    • currentValue

      public Double currentValue()
      Get the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
      Returns:
      the currentValue value.
    • withCurrentValue

      public QuotaInner withCurrentValue(Double currentValue)
      Set the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
      Parameters:
      currentValue - the currentValue value to set.
      Returns:
      the QuotaInner object itself.
    • id

      public String id()
      Get the id property: The resource ID of the quota object.
      Returns:
      the id value.
    • withId

      public QuotaInner withId(String id)
      Set the id property: The resource ID of the quota object.
      Parameters:
      id - the id value to set.
      Returns:
      the QuotaInner object itself.
    • limit

      public Double limit()
      Get the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.
      Returns:
      the limit value.
    • withLimit

      public QuotaInner withLimit(Double limit)
      Set the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.
      Parameters:
      limit - the limit value to set.
      Returns:
      the QuotaInner object itself.
    • name

      public QuotaName name()
      Get the name property: The name of the quota.
      Returns:
      the name value.
    • withName

      public QuotaInner withName(QuotaName name)
      Set the name property: The name of the quota.
      Parameters:
      name - the name value to set.
      Returns:
      the QuotaInner object itself.
    • unit

      public String unit()
      Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
      Returns:
      the unit value.
    • withUnit

      public QuotaInner withUnit(String unit)
      Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
      Parameters:
      unit - the unit value to set.
      Returns:
      the QuotaInner object itself.
    • validate

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