Interface ModifySpotFleetRequestRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>, Ec2Request.Builder, SdkBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
ModifySpotFleetRequestRequest

public static interface ModifySpotFleetRequestRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>
  • Method Details

    • 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

      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:
    • 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<LaunchTemplateConfig>).

      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:
    • 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.
    • context

      Reserved.

      Parameters:
      context - Reserved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      ModifySpotFleetRequestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.