Class CapacityBin.Builder

  • Enclosing class:
    CapacityBin

    public static class CapacityBin.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • capacityIndex

        public CapacityBin.Builder capacityIndex​(Integer capacityIndex)
        Zero-based index for the corresponding capacity bucket.
        Parameters:
        capacityIndex - the value to set
        Returns:
        this builder
      • totalOcpus

        public CapacityBin.Builder totalOcpus​(Float totalOcpus)
        The total OCPUs of the capacity bucket.
        Parameters:
        totalOcpus - the value to set
        Returns:
        this builder
      • remainingOcpus

        public CapacityBin.Builder remainingOcpus​(Float remainingOcpus)
        The available OCPUs of the capacity bucket.
        Parameters:
        remainingOcpus - the value to set
        Returns:
        this builder
      • totalMemoryInGBs

        public CapacityBin.Builder totalMemoryInGBs​(Float totalMemoryInGBs)
        The total memory of the capacity bucket, in GBs.
        Parameters:
        totalMemoryInGBs - the value to set
        Returns:
        this builder
      • remainingMemoryInGBs

        public CapacityBin.Builder remainingMemoryInGBs​(Float remainingMemoryInGBs)
        The remaining memory of the capacity bucket, in GBs.
        Parameters:
        remainingMemoryInGBs - the value to set
        Returns:
        this builder
      • supportedShapes

        public CapacityBin.Builder supportedShapes​(List<String> supportedShapes)
        List of VMI shapes supported on each capacity bucket.
        Parameters:
        supportedShapes - the value to set
        Returns:
        this builder