Interface ModifySpotFleetRequestRequest.Builder

    • Method Detail

      • excessCapacityTerminationPolicy

        ModifySpotFleetRequestRequest.Builder excessCapacityTerminationPolicy​(String excessCapacityTerminationPolicy)

        Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

        Supported only for fleets of type maintain.

        Parameters:
        excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

        Supported only for fleets of type maintain.

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

        ModifySpotFleetRequestRequest.Builder excessCapacityTerminationPolicy​(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)

        Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

        Supported only for fleets of type maintain.

        Parameters:
        excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

        Supported only for fleets of type maintain.

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

        ModifySpotFleetRequestRequest.Builder launchTemplateConfigs​(Collection<LaunchTemplateConfig> launchTemplateConfigs)

        The launch template and overrides. You can only use this parameter if you specified a launch template ( LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.

        Parameters:
        launchTemplateConfigs - The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • launchTemplateConfigs

        ModifySpotFleetRequestRequest.Builder launchTemplateConfigs​(LaunchTemplateConfig... launchTemplateConfigs)

        The launch template and overrides. You can only use this parameter if you specified a launch template ( LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.

        Parameters:
        launchTemplateConfigs - The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • launchTemplateConfigs

        ModifySpotFleetRequestRequest.Builder launchTemplateConfigs​(Consumer<LaunchTemplateConfig.Builder>... launchTemplateConfigs)

        The launch template and overrides. You can only use this parameter if you specified a launch template ( LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.

        This is a convenience method that creates an instance of the LaunchTemplateConfig.Builder avoiding the need to create one manually via LaunchTemplateConfig.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #launchTemplateConfigs(List).

        Parameters:
        launchTemplateConfigs - a consumer that will call methods on LaunchTemplateConfig.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #launchTemplateConfigs(java.util.Collection)
      • spotFleetRequestId

        ModifySpotFleetRequestRequest.Builder spotFleetRequestId​(String spotFleetRequestId)

        The ID of the Spot Fleet request.

        Parameters:
        spotFleetRequestId - The ID of the Spot Fleet request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetCapacity

        ModifySpotFleetRequestRequest.Builder targetCapacity​(Integer targetCapacity)

        The size of the fleet.

        Parameters:
        targetCapacity - The size of the fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • onDemandTargetCapacity

        ModifySpotFleetRequestRequest.Builder onDemandTargetCapacity​(Integer onDemandTargetCapacity)

        The number of On-Demand Instances in the fleet.

        Parameters:
        onDemandTargetCapacity - The number of On-Demand Instances in the fleet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.