public static final class ResourcePoolTypes.SharesInfo.Builder
extends java.lang.Object
ResourcePoolTypes.SharesInfo
.Constructor and Description |
---|
Builder(ResourcePoolTypes.SharesInfo.Level level)
Constructor with parameters for the required properties of
ResourcePoolTypes.SharesInfo . |
Modifier and Type | Method and Description |
---|---|
ResourcePoolTypes.SharesInfo |
build() |
ResourcePoolTypes.SharesInfo.Builder |
setShares(java.lang.Long shares)
When
ResourcePoolTypes.SharesInfo.getLevel() is set to
CUSTOM, it is the number of shares allocated. |
public Builder(ResourcePoolTypes.SharesInfo.Level level)
ResourcePoolTypes.SharesInfo
.public ResourcePoolTypes.SharesInfo.Builder setShares(java.lang.Long shares)
ResourcePoolTypes.SharesInfo.getLevel()
is set to
CUSTOM, it is the number of shares allocated. Otherwise, this value is ignored.
There is no unit for this value. It is a relative measure based on the settings for other resource pools.
. This property was added in vSphere API 7.0.0.0. This property is optional and it is only relevant when the value ofgetLevel()
is ResourcePoolTypes.SharesInfo.Level.CUSTOM
.shares
- New value for the property.public ResourcePoolTypes.SharesInfo build()