RegistryUsage Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. RegistryUsage
- com.
Implements
public final class RegistryUsage
implements JsonSerializable<RegistryUsage>
The quota usage for a container registry.
Constructor Summary
Constructor | Description |
---|---|
RegistryUsage() |
Creates an instance of Registry |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
currentValue()
Get the current |
static
Registry |
fromJson(JsonReader jsonReader)
Reads an instance of Registry |
Long |
limit()
Get the limit property: The limit of the usage. |
String |
name()
Get the name property: The name of the usage. |
Json |
toJson(JsonWriter jsonWriter) |
Registry |
unit()
Get the unit property: The unit of measurement. |
void |
validate()
Validates the instance. |
Registry |
withCurrentValue(Long currentValue)
Set the current |
Registry |
withLimit(Long limit)
Set the limit property: The limit of the usage. |
Registry |
withName(String name)
Set the name property: The name of the usage. |
Registry |
withUnit(RegistryUsageUnit unit)
Set the unit property: The unit of measurement. |
Methods inherited from java.lang.Object
Constructor Details
RegistryUsage
public RegistryUsage()
Creates an instance of RegistryUsage class.
Method Details
currentValue
public Long currentValue()
Get the currentValue property: The current value of the usage.
Returns:
fromJson
public static RegistryUsage fromJson(JsonReader jsonReader)
Reads an instance of RegistryUsage from the JsonReader.
Parameters:
Returns:
Throws:
limit
public Long limit()
Get the limit property: The limit of the usage.
Returns:
name
public String name()
Get the name property: The name of the usage.
Returns:
toJson
unit
public RegistryUsageUnit unit()
Get the unit property: The unit of measurement.
Returns:
validate
public void validate()
Validates the instance.
withCurrentValue
public RegistryUsage withCurrentValue(Long currentValue)
Set the currentValue property: The current value of the usage.
Parameters:
Returns:
withLimit
public RegistryUsage withLimit(Long limit)
Set the limit property: The limit of the usage.
Parameters:
Returns:
withName
public RegistryUsage withName(String name)
Set the name property: The name of the usage.
Parameters:
Returns:
withUnit
public RegistryUsage withUnit(RegistryUsageUnit unit)
Set the unit property: The unit of measurement.
Parameters:
Returns:
Applies to
Azure SDK for Java