Class Shape.Builder

  • Enclosing class:
    Shape

    public static class Shape.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • baselineOcpuUtilizations

        public Shape.Builder baselineOcpuUtilizations​(List<Shape.BaselineOcpuUtilizations> baselineOcpuUtilizations)
        For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.
        Parameters:
        baselineOcpuUtilizations - the value to set
        Returns:
        this builder
      • minTotalBaselineOcpusRequired

        public Shape.Builder minTotalBaselineOcpusRequired​(BigDecimal minTotalBaselineOcpusRequired)
        For a subcore burstable VM, the minimum total baseline OCPUs required.

        The total baseline OCPUs is equal to baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.

        Parameters:
        minTotalBaselineOcpusRequired - the value to set
        Returns:
        this builder
      • shape

        public Shape.Builder shape​(String shape)
        The name of the shape.

        You can enumerate all available shapes by calling listShapes.

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

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

        public Shape.Builder ocpus​(Float ocpus)
        The default number of OCPUs available for this shape.
        Parameters:
        ocpus - the value to set
        Returns:
        this builder
      • memoryInGBs

        public Shape.Builder memoryInGBs​(Float memoryInGBs)
        The default amount of memory available for this shape, in gigabytes.
        Parameters:
        memoryInGBs - the value to set
        Returns:
        this builder
      • networkPorts

        public Shape.Builder networkPorts​(Integer networkPorts)
        The number of physical network interface card (NIC) ports available for this shape.
        Parameters:
        networkPorts - the value to set
        Returns:
        this builder
      • networkingBandwidthInGbps

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

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

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

        public Shape.Builder gpuDescription​(String gpuDescription)
        A short description of the graphics processing unit (GPU) available for this shape.

        If the shape does not have any GPUs, this field is null.

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

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

        public Shape.Builder localDisksTotalSizeInGBs​(Float localDisksTotalSizeInGBs)
        The aggregate size of the local disks available for this shape, in gigabytes.

        If the shape does not have any local disks, this field is null.

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

        public Shape.Builder localDiskDescription​(String localDiskDescription)
        A short description of the local disks available for this shape.

        If the shape does not have any local disks, this field is null.

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

        public Shape.Builder rdmaPorts​(Integer rdmaPorts)
        The number of networking ports available for the remote direct memory access (RDMA) network between nodes in a high performance computing (HPC) cluster network.

        If the shape does not support cluster networks, this value is 0.

        Parameters:
        rdmaPorts - the value to set
        Returns:
        this builder
      • rdmaBandwidthInGbps

        public Shape.Builder rdmaBandwidthInGbps​(Integer rdmaBandwidthInGbps)
        The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in gigabits per second.
        Parameters:
        rdmaBandwidthInGbps - the value to set
        Returns:
        this builder
      • isLiveMigrationSupported

        public Shape.Builder isLiveMigrationSupported​(Boolean isLiveMigrationSupported)
        Whether live migration is supported for this shape.
        Parameters:
        isLiveMigrationSupported - the value to set
        Returns:
        this builder
      • isBilledForStoppedInstance

        public Shape.Builder isBilledForStoppedInstance​(Boolean isBilledForStoppedInstance)
        Whether billing continues when the instances that use this shape are in the stopped state.
        Parameters:
        isBilledForStoppedInstance - the value to set
        Returns:
        this builder
      • billingType

        public Shape.Builder billingType​(Shape.BillingType billingType)
        How instances that use this shape are charged.
        Parameters:
        billingType - the value to set
        Returns:
        this builder
      • quotaNames

        public Shape.Builder quotaNames​(List<String> quotaNames)
        The list of of compartment quotas for the shape.
        Parameters:
        quotaNames - the value to set
        Returns:
        this builder
      • isSubcore

        public Shape.Builder isSubcore​(Boolean isSubcore)
        Whether the shape supports creating subcore or burstable instances.

        A burstable instance is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional spikes in usage.

        Parameters:
        isSubcore - the value to set
        Returns:
        this builder
      • isFlexible

        public Shape.Builder isFlexible​(Boolean isFlexible)
        Whether the shape supports creating flexible instances.

        A flexible shape is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.

        Parameters:
        isFlexible - the value to set
        Returns:
        this builder
      • resizeCompatibleShapes

        public Shape.Builder resizeCompatibleShapes​(List<String> resizeCompatibleShapes)
        The list of compatible shapes that this shape can be changed to.

        For more information, see Changing the Shape of an Instance.

        Parameters:
        resizeCompatibleShapes - the value to set
        Returns:
        this builder
      • recommendedAlternatives

        public Shape.Builder recommendedAlternatives​(List<ShapeAlternativeObject> recommendedAlternatives)
        The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.
        Parameters:
        recommendedAlternatives - the value to set
        Returns:
        this builder
      • build

        public Shape build()