Class LimitObject
- java.lang.Object
-
- com.azure.resourcemanager.quota.models.LimitJsonObject
-
- com.azure.resourcemanager.quota.models.LimitObject
-
public final class LimitObject extends LimitJsonObject
The resource quota limit value.
-
-
Constructor Summary
Constructors Constructor Description LimitObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuotaLimitTypes
limitType()
Get the limitType property: The quota or usages limit types.void
validate()
Validates the instance.int
value()
Get the value property: The quota/limit value.LimitObject
withLimitType(QuotaLimitTypes limitType)
Set the limitType property: The quota or usages limit types.LimitObject
withValue(int value)
Set the value property: The quota/limit value.
-
-
-
Method Detail
-
value
public int value()
Get the value property: The quota/limit value.- Returns:
- the value value.
-
withValue
public LimitObject withValue(int value)
Set the value property: The quota/limit value.- Parameters:
value
- the value value to set.- Returns:
- the LimitObject object itself.
-
limitType
public QuotaLimitTypes limitType()
Get the limitType property: The quota or usages limit types.- Returns:
- the limitType value.
-
withLimitType
public LimitObject withLimitType(QuotaLimitTypes limitType)
Set the limitType property: The quota or usages limit types.- Parameters:
limitType
- the limitType value to set.- Returns:
- the LimitObject object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classLimitJsonObject
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-