Interface UpdateCapacityProviderRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateCapacityProviderRequest.Builder,
,UpdateCapacityProviderRequest> EcsRequest.Builder
,SdkBuilder<UpdateCapacityProviderRequest.Builder,
,UpdateCapacityProviderRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateCapacityProviderRequest
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupProvider
(Consumer<AutoScalingGroupProviderUpdate.Builder> autoScalingGroupProvider) An object that represent the parameters to update for the Auto Scaling group capacity provider.autoScalingGroupProvider
(AutoScalingGroupProviderUpdate autoScalingGroupProvider) An object that represent the parameters to update for the Auto Scaling group capacity provider.The name of the cluster that contains the capacity provider to update.managedInstancesProvider
(Consumer<UpdateManagedInstancesProviderConfiguration.Builder> managedInstancesProvider) The updated configuration for the Amazon ECS Managed Instances provider.managedInstancesProvider
(UpdateManagedInstancesProviderConfiguration managedInstancesProvider) The updated configuration for the Amazon ECS Managed Instances provider.The name of the capacity provider to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.ecs.model.EcsRequest.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 Details
-
name
The name of the capacity provider to update.
- Parameters:
name
- The name of the capacity provider to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cluster
The name of the cluster that contains the capacity provider to update. Managed instances capacity providers are cluster-scoped and can only be updated within their associated cluster.
- Parameters:
cluster
- The name of the cluster that contains the capacity provider to update. Managed instances capacity providers are cluster-scoped and can only be updated within their associated cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupProvider
UpdateCapacityProviderRequest.Builder autoScalingGroupProvider(AutoScalingGroupProviderUpdate autoScalingGroupProvider) An object that represent the parameters to update for the Auto Scaling group capacity provider.
- Parameters:
autoScalingGroupProvider
- An object that represent the parameters to update for the Auto Scaling group capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupProvider
default UpdateCapacityProviderRequest.Builder autoScalingGroupProvider(Consumer<AutoScalingGroupProviderUpdate.Builder> autoScalingGroupProvider) An object that represent the parameters to update for the Auto Scaling group capacity provider.
This is a convenience method that creates an instance of theAutoScalingGroupProviderUpdate.Builder
avoiding the need to create one manually viaAutoScalingGroupProviderUpdate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingGroupProvider(AutoScalingGroupProviderUpdate)
.- Parameters:
autoScalingGroupProvider
- a consumer that will call methods onAutoScalingGroupProviderUpdate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedInstancesProvider
UpdateCapacityProviderRequest.Builder managedInstancesProvider(UpdateManagedInstancesProviderConfiguration managedInstancesProvider) The updated configuration for the Amazon ECS Managed Instances provider. You can modify the infrastructure role, instance launch template, and tag propagation settings. Changes take effect for new instances launched after the update.
- Parameters:
managedInstancesProvider
- The updated configuration for the Amazon ECS Managed Instances provider. You can modify the infrastructure role, instance launch template, and tag propagation settings. Changes take effect for new instances launched after the update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedInstancesProvider
default UpdateCapacityProviderRequest.Builder managedInstancesProvider(Consumer<UpdateManagedInstancesProviderConfiguration.Builder> managedInstancesProvider) The updated configuration for the Amazon ECS Managed Instances provider. You can modify the infrastructure role, instance launch template, and tag propagation settings. Changes take effect for new instances launched after the update.
This is a convenience method that creates an instance of theUpdateManagedInstancesProviderConfiguration.Builder
avoiding the need to create one manually viaUpdateManagedInstancesProviderConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanagedInstancesProvider(UpdateManagedInstancesProviderConfiguration)
.- Parameters:
managedInstancesProvider
- a consumer that will call methods onUpdateManagedInstancesProviderConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateCapacityProviderRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateCapacityProviderRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-