Interface UpdateCapacityProviderRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateCapacityProviderRequest.Builder,UpdateCapacityProviderRequest>,EcsRequest.Builder,SdkBuilder<UpdateCapacityProviderRequest.Builder,UpdateCapacityProviderRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateCapacityProviderRequest
@Mutable @NotThreadSafe public static interface UpdateCapacityProviderRequest.Builder extends EcsRequest.Builder, SdkPojo, CopyableBuilder<UpdateCapacityProviderRequest.Builder,UpdateCapacityProviderRequest>
-
-
Method Summary
-
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 Detail
-
name
UpdateCapacityProviderRequest.Builder name(String 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
UpdateCapacityProviderRequest.Builder cluster(String 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.Builderavoiding the need to create one manually viaAutoScalingGroupProviderUpdate.builder().When the
Consumercompletes,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:
autoScalingGroupProvider(AutoScalingGroupProviderUpdate)
-
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.Builderavoiding the need to create one manually viaUpdateManagedInstancesProviderConfiguration.builder().When the
Consumercompletes,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:
managedInstancesProvider(UpdateManagedInstancesProviderConfiguration)
-
overrideConfiguration
UpdateCapacityProviderRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateCapacityProviderRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-