java.lang.Object
com.azure.resourcemanager.automation.fluent.models.UsageInner

public final class UsageInner extends Object
Definition of Usage.
  • Constructor Details

    • UsageInner

      public UsageInner()
  • Method Details

    • id

      public String id()
      Get the id property: Gets or sets the id of the resource.
      Returns:
      the id value.
    • withId

      public UsageInner withId(String id)
      Set the id property: Gets or sets the id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the UsageInner object itself.
    • name

      public UsageCounterName name()
      Get the name property: Gets or sets the usage counter name.
      Returns:
      the name value.
    • withName

      public UsageInner withName(UsageCounterName name)
      Set the name property: Gets or sets the usage counter name.
      Parameters:
      name - the name value to set.
      Returns:
      the UsageInner object itself.
    • unit

      public String unit()
      Get the unit property: Gets or sets the usage unit name.
      Returns:
      the unit value.
    • withUnit

      public UsageInner withUnit(String unit)
      Set the unit property: Gets or sets the usage unit name.
      Parameters:
      unit - the unit value to set.
      Returns:
      the UsageInner object itself.
    • currentValue

      public Double currentValue()
      Get the currentValue property: Gets or sets the current usage value.
      Returns:
      the currentValue value.
    • withCurrentValue

      public UsageInner withCurrentValue(Double currentValue)
      Set the currentValue property: Gets or sets the current usage value.
      Parameters:
      currentValue - the currentValue value to set.
      Returns:
      the UsageInner object itself.
    • limit

      public Long limit()
      Get the limit property: Gets or sets max limit. -1 for unlimited.
      Returns:
      the limit value.
    • withLimit

      public UsageInner withLimit(Long limit)
      Set the limit property: Gets or sets max limit. -1 for unlimited.
      Parameters:
      limit - the limit value to set.
      Returns:
      the UsageInner object itself.
    • throttleStatus

      public String throttleStatus()
      Get the throttleStatus property: Gets or sets the throttle status.
      Returns:
      the throttleStatus value.
    • withThrottleStatus

      public UsageInner withThrottleStatus(String throttleStatus)
      Set the throttleStatus property: Gets or sets the throttle status.
      Parameters:
      throttleStatus - the throttleStatus value to set.
      Returns:
      the UsageInner object itself.
    • validate

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