Class InstanceShapeConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ocpus

        public InstanceShapeConfig.Builder ocpus​(Float ocpus)
        The total number of OCPUs available to the instance.
        Parameters:
        ocpus - the value to set
        Returns:
        this builder
      • memoryInGBs

        public InstanceShapeConfig.Builder memoryInGBs​(Float memoryInGBs)
        The total amount of memory available to the instance, in gigabytes.
        Parameters:
        memoryInGBs - the value to set
        Returns:
        this builder
      • baselineOcpuUtilization

        public 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.

        Parameters:
        baselineOcpuUtilization - the value to set
        Returns:
        this builder
      • processorDescription

        public InstanceShapeConfig.Builder processorDescription​(String processorDescription)
        A short description of the instance’s processor (CPU).
        Parameters:
        processorDescription - the value to set
        Returns:
        this builder
      • networkingBandwidthInGbps

        public InstanceShapeConfig.Builder networkingBandwidthInGbps​(Float networkingBandwidthInGbps)
        The networking bandwidth available to the instance, in gigabits per second.
        Parameters:
        networkingBandwidthInGbps - the value to set
        Returns:
        this builder
      • maxVnicAttachments

        public InstanceShapeConfig.Builder maxVnicAttachments​(Integer maxVnicAttachments)
        The maximum number of VNIC attachments for the instance.
        Parameters:
        maxVnicAttachments - the value to set
        Returns:
        this builder
      • gpus

        public InstanceShapeConfig.Builder gpus​(Integer gpus)
        The number of GPUs available to the instance.
        Parameters:
        gpus - the value to set
        Returns:
        this builder
      • gpuDescription

        public 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.

        Parameters:
        gpuDescription - the value to set
        Returns:
        this builder
      • localDisks

        public InstanceShapeConfig.Builder localDisks​(Integer localDisks)
        The number of local disks available to the instance.
        Parameters:
        localDisks - the value to set
        Returns:
        this builder
      • localDisksTotalSizeInGBs

        public 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.

        Parameters:
        localDisksTotalSizeInGBs - the value to set
        Returns:
        this builder
      • localDiskDescription

        public 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.

        Parameters:
        localDiskDescription - the value to set
        Returns:
        this builder
      • vcpus

        public 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.

        Parameters:
        vcpus - the value to set
        Returns:
        this builder