RegistryUsage Class

  • java.lang.Object
    • com.microsoft.azure.management.containerregistry.RegistryUsage

public class RegistryUsage

The quota usage for a container registry.

Constructor Summary

Constructor Description
RegistryUsage()

Method Summary

Modifier and Type Method and Description
java.lang.Long currentValue()

Get the current value of the usage.

java.lang.Long limit()

Get the limit of the usage.

java.lang.String name()

Get the name of the usage.

RegistryUsageUnit unit()

Get the unit of measurement.

RegistryUsage withCurrentValue(Long currentValue)

Set the current value of the usage.

RegistryUsage withLimit(Long limit)

Set the limit of the usage.

RegistryUsage withName(String name)

Set the name of the usage.

RegistryUsage withUnit(RegistryUsageUnit unit)

Set the unit of measurement.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

RegistryUsage

public RegistryUsage()

Method Details

currentValue

public Long currentValue()

Get the current value of the usage.

Returns:

the currentValue value

limit

public Long limit()

Get the limit of the usage.

Returns:

the limit value

name

public String name()

Get the name of the usage.

Returns:

the name value

unit

public RegistryUsageUnit unit()

Get the unit of measurement. Possible values include: 'Count', 'Bytes'.

Returns:

the unit value

withCurrentValue

public RegistryUsage withCurrentValue(Long currentValue)

Set the current value of the usage.

Parameters:

currentValue - the currentValue value to set

Returns:

the RegistryUsage object itself.

withLimit

public RegistryUsage withLimit(Long limit)

Set the limit of the usage.

Parameters:

limit - the limit value to set

Returns:

the RegistryUsage object itself.

withName

public RegistryUsage withName(String name)

Set the name of the usage.

Parameters:

name - the name value to set

Returns:

the RegistryUsage object itself.

withUnit

public RegistryUsage withUnit(RegistryUsageUnit unit)

Set the unit of measurement. Possible values include: 'Count', 'Bytes'.

Parameters:

unit - the unit value to set

Returns:

the RegistryUsage object itself.

Applies to