public static class ResourceAvailability.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResourceAvailability.Builder |
available(Long available)
The count of available resources.
|
ResourceAvailability |
build() |
ResourceAvailability.Builder |
copy(ResourceAvailability model) |
ResourceAvailability.Builder |
effectiveQuotaValue(BigDecimal effectiveQuotaValue)
The effective quota value for the given compartment.
|
ResourceAvailability.Builder |
fractionalAvailability(BigDecimal fractionalAvailability)
The most accurate count of available resources.
|
ResourceAvailability.Builder |
fractionalUsage(BigDecimal fractionalUsage)
The current most accurate usage in the given compartment.
|
ResourceAvailability.Builder |
used(Long used)
The current usage in the given compartment.
|
public ResourceAvailability.Builder used(Long used)
The current usage in the given compartment. To support resources with fractional counts, the field rounds up to the nearest integer.
used
- the value to setpublic ResourceAvailability.Builder available(Long available)
The count of available resources. To support resources with fractional counts, the field rounds down to the nearest integer.
available
- the value to setpublic ResourceAvailability.Builder fractionalUsage(BigDecimal fractionalUsage)
The current most accurate usage in the given compartment.
fractionalUsage
- the value to setpublic ResourceAvailability.Builder fractionalAvailability(BigDecimal fractionalAvailability)
The most accurate count of available resources.
fractionalAvailability
- the value to setpublic ResourceAvailability.Builder effectiveQuotaValue(BigDecimal effectiveQuotaValue)
The effective quota value for the given compartment. This field is only present if there is a current quota policy affecting the current resource in the target region or availability domain.
effectiveQuotaValue
- the value to setpublic ResourceAvailability build()
public ResourceAvailability.Builder copy(ResourceAvailability model)
Copyright © 2016–2024. All rights reserved.