Interface TargetCapacitySpecificationRequest.Builder

    • Method Detail

      • totalTargetCapacity

        TargetCapacitySpecificationRequest.Builder totalTargetCapacity​(Integer totalTargetCapacity)

        The number of units to request, filled using DefaultTargetCapacityType.

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

        TargetCapacitySpecificationRequest.Builder onDemandTargetCapacity​(Integer onDemandTargetCapacity)

        The number of On-Demand units to request.

        Parameters:
        onDemandTargetCapacity - The number of On-Demand units to request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spotTargetCapacity

        TargetCapacitySpecificationRequest.Builder spotTargetCapacity​(Integer spotTargetCapacity)

        The number of Spot units to request.

        Parameters:
        spotTargetCapacity - The number of Spot units to request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetCapacityUnitType

        TargetCapacitySpecificationRequest.Builder targetCapacityUnitType​(String targetCapacityUnitType)

        The unit for the target capacity. TargetCapacityUnitType can only be specified when InstanceRequirements is specified.

        Default: units (translates to number of instances)

        Parameters:
        targetCapacityUnitType - The unit for the target capacity. TargetCapacityUnitType can only be specified when InstanceRequirements is specified.

        Default: units (translates to number of instances)

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TargetCapacityUnitType, TargetCapacityUnitType
      • targetCapacityUnitType

        TargetCapacitySpecificationRequest.Builder targetCapacityUnitType​(TargetCapacityUnitType targetCapacityUnitType)

        The unit for the target capacity. TargetCapacityUnitType can only be specified when InstanceRequirements is specified.

        Default: units (translates to number of instances)

        Parameters:
        targetCapacityUnitType - The unit for the target capacity. TargetCapacityUnitType can only be specified when InstanceRequirements is specified.

        Default: units (translates to number of instances)

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TargetCapacityUnitType, TargetCapacityUnitType