public static class InstanceShapeConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InstanceShapeConfig.Builder |
baselineOcpuUtilization(InstanceShapeConfig.BaselineOcpuUtilization baselineOcpuUtilization)
The baseline OCPU utilization for a subcore burstable VM instance.
|
InstanceShapeConfig |
build() |
InstanceShapeConfig.Builder |
copy(InstanceShapeConfig model) |
InstanceShapeConfig.Builder |
gpuDescription(String gpuDescription)
A short description of the instance’s graphics processing unit (GPU).
|
InstanceShapeConfig.Builder |
gpus(Integer gpus)
The number of GPUs available to the instance.
|
InstanceShapeConfig.Builder |
localDiskDescription(String localDiskDescription)
A short description of the local disks available to this instance.
|
InstanceShapeConfig.Builder |
localDisks(Integer localDisks)
The number of local disks available to the instance.
|
InstanceShapeConfig.Builder |
localDisksTotalSizeInGBs(Float localDisksTotalSizeInGBs)
The aggregate size of all local disks, in gigabytes.
|
InstanceShapeConfig.Builder |
maxVnicAttachments(Integer maxVnicAttachments)
The maximum number of VNIC attachments for the instance.
|
InstanceShapeConfig.Builder |
memoryInGBs(Float memoryInGBs)
The total amount of memory available to the instance, in gigabytes.
|
InstanceShapeConfig.Builder |
networkingBandwidthInGbps(Float networkingBandwidthInGbps)
The networking bandwidth available to the instance, in gigabits per second.
|
InstanceShapeConfig.Builder |
ocpus(Float ocpus)
The total number of OCPUs available to the instance.
|
InstanceShapeConfig.Builder |
processorDescription(String processorDescription)
A short description of the instance’s processor (CPU).
|
InstanceShapeConfig.Builder |
vcpus(Integer vcpus)
The total number of VCPUs available to the instance.
|
public InstanceShapeConfig.Builder ocpus(Float ocpus)
The total number of OCPUs available to the instance.
ocpus
- the value to setpublic InstanceShapeConfig.Builder memoryInGBs(Float memoryInGBs)
The total amount of memory available to the instance, in gigabytes.
memoryInGBs
- the value to setpublic InstanceShapeConfig.Builder baselineOcpuUtilization(InstanceShapeConfig.BaselineOcpuUtilization baselineOcpuUtilization)
The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute
blank for a non-burstable instance, or explicitly specify non-burstable with BASELINE_1_1
.
The following values are supported: - BASELINE_1_8
- baseline usage is 1/8 of
an OCPU. - BASELINE_1_2
- baseline usage is 1/2 of an OCPU. - BASELINE_1_1
- baseline usage is the entire OCPU. This represents a non-burstable
instance.
baselineOcpuUtilization
- the value to setpublic InstanceShapeConfig.Builder processorDescription(String processorDescription)
A short description of the instance’s processor (CPU).
processorDescription
- the value to setpublic InstanceShapeConfig.Builder networkingBandwidthInGbps(Float networkingBandwidthInGbps)
The networking bandwidth available to the instance, in gigabits per second.
networkingBandwidthInGbps
- the value to setpublic InstanceShapeConfig.Builder maxVnicAttachments(Integer maxVnicAttachments)
The maximum number of VNIC attachments for the instance.
maxVnicAttachments
- the value to setpublic InstanceShapeConfig.Builder gpus(Integer gpus)
The number of GPUs available to the instance.
gpus
- the value to setpublic InstanceShapeConfig.Builder gpuDescription(String gpuDescription)
A short description of the instance’s graphics processing unit (GPU).
If the instance does not have any GPUs, this field is null
.
gpuDescription
- the value to setpublic InstanceShapeConfig.Builder localDisks(Integer localDisks)
The number of local disks available to the instance.
localDisks
- the value to setpublic InstanceShapeConfig.Builder localDisksTotalSizeInGBs(Float localDisksTotalSizeInGBs)
The aggregate size of all local disks, in gigabytes.
If the instance does not have any local disks, this field is null
.
localDisksTotalSizeInGBs
- the value to setpublic InstanceShapeConfig.Builder localDiskDescription(String localDiskDescription)
A short description of the local disks available to this instance.
If the instance does not have any local disks, this field is null
.
localDiskDescription
- the value to setpublic InstanceShapeConfig.Builder vcpus(Integer vcpus)
The total number of VCPUs available to the instance. This can be used instead of OCPUs, in which case the actual number of OCPUs will be calculated based on this value and the actual hardware. This must be a multiple of 2.
vcpus
- the value to setpublic InstanceShapeConfig build()
public InstanceShapeConfig.Builder copy(InstanceShapeConfig model)
Copyright © 2016–2023. All rights reserved.