Class SubscriptionQuota


  • public final class SubscriptionQuota
    extends com.azure.core.management.SubResource
    Describes the current quota for the subscription.
    • Constructor Detail

      • SubscriptionQuota

        public SubscriptionQuota()
    • Method Detail

      • name

        public String name()
        Get the name property: Resource name.
        Returns:
        the name value.
      • withName

        public SubscriptionQuota withName​(String name)
        Set the name property: Resource name.
        Parameters:
        name - the name value to set.
        Returns:
        the SubscriptionQuota object itself.
      • type

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

        public SubscriptionQuota withId​(String id)
        Overrides:
        withId in class com.azure.core.management.SubResource
      • maxCount

        public Integer maxCount()
        Get the maxCount property: The max permitted usage of this resource.
        Returns:
        the maxCount value.
      • currentCount

        public Integer currentCount()
        Get the currentCount property: The current usage of this resource.
        Returns:
        the currentCount value.
      • validate

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