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