Interface ModifyFleetRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyFleetRequest.Builder,ModifyFleetRequest>,Ec2Request.Builder,SdkBuilder<ModifyFleetRequest.Builder,ModifyFleetRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ModifyFleetRequest
@Mutable @NotThreadSafe public static interface ModifyFleetRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyFleetRequest.Builder,ModifyFleetRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ModifyFleetRequest.Buildercontext(String context)Reserved.ModifyFleetRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.ModifyFleetRequest.BuilderexcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.ModifyFleetRequest.BuilderexcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.ModifyFleetRequest.BuilderfleetId(String fleetId)The ID of the EC2 Fleet.ModifyFleetRequest.BuilderlaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)The launch template and overrides.ModifyFleetRequest.BuilderlaunchTemplateConfigs(Consumer<FleetLaunchTemplateConfigRequest.Builder>... launchTemplateConfigs)The launch template and overrides.ModifyFleetRequest.BuilderlaunchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)The launch template and overrides.ModifyFleetRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ModifyFleetRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default ModifyFleetRequest.BuildertargetCapacitySpecification(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification)The size of the EC2 Fleet.ModifyFleetRequest.BuildertargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)The size of the EC2 Fleet.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
dryRun
ModifyFleetRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excessCapacityTerminationPolicy
ModifyFleetRequest.Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type
maintain.- Parameters:
excessCapacityTerminationPolicy- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 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:
FleetExcessCapacityTerminationPolicy,FleetExcessCapacityTerminationPolicy
-
excessCapacityTerminationPolicy
ModifyFleetRequest.Builder excessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type
maintain.- Parameters:
excessCapacityTerminationPolicy- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 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:
FleetExcessCapacityTerminationPolicy,FleetExcessCapacityTerminationPolicy
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The launch template and overrides.
- Parameters:
launchTemplateConfigs- The launch template and overrides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)
The launch template and overrides.
- Parameters:
launchTemplateConfigs- The launch template and overrides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(Consumer<FleetLaunchTemplateConfigRequest.Builder>... launchTemplateConfigs)
The launch template and overrides.
This is a convenience method that creates an instance of theFleetLaunchTemplateConfigRequest.Builderavoiding the need to create one manually viaFleetLaunchTemplateConfigRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#launchTemplateConfigs(List.) - Parameters:
launchTemplateConfigs- a consumer that will call methods onFleetLaunchTemplateConfigRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#launchTemplateConfigs(java.util.Collection)
-
fleetId
ModifyFleetRequest.Builder fleetId(String fleetId)
The ID of the EC2 Fleet.
- Parameters:
fleetId- The ID of the EC2 Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCapacitySpecification
ModifyFleetRequest.Builder targetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
- Parameters:
targetCapacitySpecification- The size of the EC2 Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCapacitySpecification
default ModifyFleetRequest.Builder targetCapacitySpecification(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification)
The size of the EC2 Fleet.
This is a convenience method that creates an instance of theTargetCapacitySpecificationRequest.Builderavoiding the need to create one manually viaTargetCapacitySpecificationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetCapacitySpecification(TargetCapacitySpecificationRequest).- Parameters:
targetCapacitySpecification- a consumer that will call methods onTargetCapacitySpecificationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetCapacitySpecification(TargetCapacitySpecificationRequest)
-
context
ModifyFleetRequest.Builder context(String context)
Reserved.
- Parameters:
context- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyFleetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyFleetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-