public static final class ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder
extends java.lang.Object
ResourcePoolTypes.ResourceAllocationUpdateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ResourcePoolTypes.ResourceAllocationUpdateSpec . |
Modifier and Type | Method and Description |
---|---|
ResourcePoolTypes.ResourceAllocationUpdateSpec |
build() |
ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder |
setExpandableReservation(java.lang.Boolean expandableReservation)
In a resource pool with an expandable reservation, the reservation can grow
beyond the specified value, if the parent resource pool has unreserved
resources.
|
ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder |
setLimit(java.lang.Long limit)
The utilization of a resource pool will not exceed this limit, even if there are
available resources.
|
ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder |
setReservation(java.lang.Long reservation)
Amount of resource that is guaranteed available to a resource pool.
|
ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder |
setShares(ResourcePoolTypes.SharesInfo shares)
Shares are used in case of resource contention.
|
public Builder()
ResourcePoolTypes.ResourceAllocationUpdateSpec
.public ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder setReservation(java.lang.Long reservation)
null
or empty, getReservation()
will be set to 0.reservation
- New value for the property.public ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder setExpandableReservation(java.lang.Boolean expandableReservation)
null
or empty, getExpandableReservation()
will be set to
true.expandableReservation
- New value for the property.public ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder setLimit(java.lang.Long limit)
null
or empty, getLimit()
will be set to -1.limit
- New value for the property.public ResourcePoolTypes.ResourceAllocationUpdateSpec.Builder setShares(ResourcePoolTypes.SharesInfo shares)
null
or empty, getShares()
will be set to 'ResourcePoolTypes.SharesInfo.Level.NORMAL
'.shares
- New value for the property.public ResourcePoolTypes.ResourceAllocationUpdateSpec build()