Class RegistryUsage
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.RegistryUsage
-
public final class RegistryUsage extends Object
The quota usage for a container registry.
-
-
Constructor Summary
Constructors Constructor Description RegistryUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcurrentValue()Get the currentValue property: The current value of the usage.Longlimit()Get the limit property: The limit of the usage.Stringname()Get the name property: The name of the usage.RegistryUsageUnitunit()Get the unit property: The unit of measurement.voidvalidate()Validates the instance.RegistryUsagewithCurrentValue(Long currentValue)Set the currentValue property: The current value of the usage.RegistryUsagewithLimit(Long limit)Set the limit property: The limit of the usage.RegistryUsagewithName(String name)Set the name property: The name of the usage.RegistryUsagewithUnit(RegistryUsageUnit unit)Set the unit property: The unit of measurement.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the usage.- Returns:
- the name value.
-
withName
public RegistryUsage withName(String name)
Set the name property: The name of the usage.- Parameters:
name- the name value to set.- Returns:
- the RegistryUsage object itself.
-
limit
public Long limit()
Get the limit property: The limit of the usage.- Returns:
- the limit value.
-
withLimit
public RegistryUsage withLimit(Long limit)
Set the limit property: The limit of the usage.- Parameters:
limit- the limit value to set.- Returns:
- the RegistryUsage object itself.
-
currentValue
public Long currentValue()
Get the currentValue property: The current value of the usage.- Returns:
- the currentValue value.
-
withCurrentValue
public RegistryUsage withCurrentValue(Long currentValue)
Set the currentValue property: The current value of the usage.- Parameters:
currentValue- the currentValue value to set.- Returns:
- the RegistryUsage object itself.
-
unit
public RegistryUsageUnit unit()
Get the unit property: The unit of measurement.- Returns:
- the unit value.
-
withUnit
public RegistryUsage withUnit(RegistryUsageUnit unit)
Set the unit property: The unit of measurement.- Parameters:
unit- the unit value to set.- Returns:
- the RegistryUsage object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-