Class SubscriptionQuota
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.streamanalytics.models.SubscriptionQuota
-
public final class SubscriptionQuota extends com.azure.core.management.SubResource
Describes the current quota for the subscription.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionQuota()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
currentCount()
Get the currentCount property: The current usage of this resource.Integer
maxCount()
Get the maxCount property: The max permitted usage of this resource.String
name()
Get the name property: Resource name.String
type()
Get the type property: Resource type.void
validate()
Validates the instance.SubscriptionQuota
withId(String id)
SubscriptionQuota
withName(String name)
Set the name property: Resource name.
-
-
-
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 classcom.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.
-
-