Class UserSubscriptionQuota

java.lang.Object
com.azure.resourcemanager.iothub.models.UserSubscriptionQuota

public final class UserSubscriptionQuota extends Object
User subscription quota response.
  • Constructor Details

    • UserSubscriptionQuota

      public UserSubscriptionQuota()
  • Method Details

    • id

      public String id()
      Get the id property: IotHub type id.
      Returns:
      the id value.
    • withId

      public UserSubscriptionQuota withId(String id)
      Set the id property: IotHub type id.
      Parameters:
      id - the id value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • type

      public String type()
      Get the type property: Response type.
      Returns:
      the type value.
    • withType

      public UserSubscriptionQuota withType(String type)
      Set the type property: Response type.
      Parameters:
      type - the type value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • unit

      public String unit()
      Get the unit property: Unit of IotHub type.
      Returns:
      the unit value.
    • withUnit

      public UserSubscriptionQuota withUnit(String unit)
      Set the unit property: Unit of IotHub type.
      Parameters:
      unit - the unit value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • currentValue

      public Integer currentValue()
      Get the currentValue property: Current number of IotHub type.
      Returns:
      the currentValue value.
    • withCurrentValue

      public UserSubscriptionQuota withCurrentValue(Integer currentValue)
      Set the currentValue property: Current number of IotHub type.
      Parameters:
      currentValue - the currentValue value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • limit

      public Integer limit()
      Get the limit property: Numerical limit on IotHub type.
      Returns:
      the limit value.
    • withLimit

      public UserSubscriptionQuota withLimit(Integer limit)
      Set the limit property: Numerical limit on IotHub type.
      Parameters:
      limit - the limit value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • name

      public Name name()
      Get the name property: IotHub type.
      Returns:
      the name value.
    • withName

      public UserSubscriptionQuota withName(Name name)
      Set the name property: IotHub type.
      Parameters:
      name - the name value to set.
      Returns:
      the UserSubscriptionQuota object itself.
    • validate

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