Class QuotaInner
java.lang.Object
com.azure.resourcemanager.datamigration.fluent.models.QuotaInner
Describes a quota for or usage details about a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: The current value of the quota.id()
Get the id property: The resource ID of the quota object.limit()
Get the limit property: The maximum value of the quota.name()
Get the name property: The name of the quota.unit()
Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.void
validate()
Validates the instance.withCurrentValue
(Double currentValue) Set the currentValue property: The current value of the quota.Set the id property: The resource ID of the quota object.Set the limit property: The maximum value of the quota.Set the name property: The name of the quota.Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
-
Constructor Details
-
QuotaInner
public QuotaInner()Creates an instance of QuotaInner class.
-
-
Method Details
-
currentValue
Get the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the QuotaInner object itself.
-
id
Get the id property: The resource ID of the quota object.- Returns:
- the id value.
-
withId
Set the id property: The resource ID of the quota object.- Parameters:
id
- the id value to set.- Returns:
- the QuotaInner object itself.
-
limit
Get the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.- Returns:
- the limit value.
-
withLimit
Set the limit property: The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.- Parameters:
limit
- the limit value to set.- Returns:
- the QuotaInner object itself.
-
name
Get the name property: The name of the quota.- Returns:
- the name value.
-
withName
Set the name property: The name of the quota.- Parameters:
name
- the name value to set.- Returns:
- the QuotaInner object itself.
-
unit
Get the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.- Parameters:
unit
- the unit value to set.- Returns:
- the QuotaInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-