public static final class ResourceAllocation.Builder
extends java.lang.Object
ResourceAllocation.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ResourceAllocation. |
| Modifier and Type | Method and Description |
|---|---|
ResourceAllocation |
build() |
ResourceAllocation.Builder |
setLimit(java.lang.Double limit)
The limit property specifies the maximum bandwidth allocation for a given
traffic type and is expressed in percentage.
|
ResourceAllocation.Builder |
setReservation(java.lang.Double reservation)
Minimum guaranteed bandwidth percentage
|
ResourceAllocation.Builder |
setShares(java.lang.Long shares)
Shares format: int32
|
ResourceAllocation.Builder |
setTrafficType(HostInfraTrafficType trafficType) |
public Builder()
ResourceAllocation.public ResourceAllocation.Builder setLimit(java.lang.Double limit)
limit - New value for the property.public ResourceAllocation.Builder setReservation(java.lang.Double reservation)
reservation - New value for the property.public ResourceAllocation.Builder setShares(java.lang.Long shares)
shares - New value for the property.public ResourceAllocation.Builder setTrafficType(HostInfraTrafficType trafficType)
trafficType - New value for the property.public ResourceAllocation build()