public static final class ResourcePoolTypes.CreateSpec.Builder
extends java.lang.Object
ResourcePoolTypes.CreateSpec
.Constructor and Description |
---|
Builder(java.lang.String name,
java.lang.String parent)
Constructor with parameters for the required properties of
ResourcePoolTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
ResourcePoolTypes.CreateSpec |
build() |
ResourcePoolTypes.CreateSpec.Builder |
setCpuAllocation(ResourcePoolTypes.ResourceAllocationCreateSpec cpuAllocation)
Resource allocation for CPU.
|
ResourcePoolTypes.CreateSpec.Builder |
setMemoryAllocation(ResourcePoolTypes.ResourceAllocationCreateSpec memoryAllocation)
Resource allocation for memory.
|
public Builder(java.lang.String name, java.lang.String parent)
ResourcePoolTypes.CreateSpec
.public ResourcePoolTypes.CreateSpec.Builder setCpuAllocation(ResourcePoolTypes.ResourceAllocationCreateSpec cpuAllocation)
null
or empty, use the default CPU allocation specification.cpuAllocation
- New value for the property.public ResourcePoolTypes.CreateSpec.Builder setMemoryAllocation(ResourcePoolTypes.ResourceAllocationCreateSpec memoryAllocation)
null
or empty, use the default memory allocation specification.memoryAllocation
- New value for the property.public ResourcePoolTypes.CreateSpec build()