Interface TargetCapacitySpecification.Builder

    • Method Detail

      • totalTargetCapacity

        TargetCapacitySpecification.Builder totalTargetCapacity​(Integer totalTargetCapacity)

        The number of units to request, filled the default target capacity type.

        Parameters:
        totalTargetCapacity - The number of units to request, filled the default target capacity type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • onDemandTargetCapacity

        TargetCapacitySpecification.Builder onDemandTargetCapacity​(Integer onDemandTargetCapacity)

        The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

        Parameters:
        onDemandTargetCapacity - The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spotTargetCapacity

        TargetCapacitySpecification.Builder spotTargetCapacity​(Integer spotTargetCapacity)

        The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

        Parameters:
        spotTargetCapacity - The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.
        Returns:
        Returns a reference to this object so that method calls can be chained together.