Interface AwsEcsClusterDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcsClusterDetails.Builder,
,AwsEcsClusterDetails> SdkBuilder<AwsEcsClusterDetails.Builder,
,AwsEcsClusterDetails> SdkPojo
- Enclosing class:
AwsEcsClusterDetails
-
Method Summary
Modifier and TypeMethodDescriptionactiveServicesCount
(Integer activeServicesCount) The number of services that are running on the cluster in anACTIVE
state.capacityProviders
(String... capacityProviders) The short name of one or more capacity providers to associate with the cluster.capacityProviders
(Collection<String> capacityProviders) The short name of one or more capacity providers to associate with the cluster.clusterArn
(String clusterArn) The Amazon Resource Name (ARN) that identifies the cluster.clusterName
(String clusterName) A name that you use to identify your cluster.clusterSettings
(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings) The setting to use to create the cluster.clusterSettings
(Consumer<AwsEcsClusterClusterSettingsDetails.Builder>... clusterSettings) The setting to use to create the cluster.clusterSettings
(AwsEcsClusterClusterSettingsDetails... clusterSettings) The setting to use to create the cluster.default AwsEcsClusterDetails.Builder
configuration
(Consumer<AwsEcsClusterConfigurationDetails.Builder> configuration) The run command configuration for the cluster.configuration
(AwsEcsClusterConfigurationDetails configuration) The run command configuration for the cluster.defaultCapacityProviderStrategy
(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster.defaultCapacityProviderStrategy
(Consumer<AwsEcsClusterDefaultCapacityProviderStrategyDetails.Builder>... defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster.defaultCapacityProviderStrategy
(AwsEcsClusterDefaultCapacityProviderStrategyDetails... defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster.registeredContainerInstancesCount
(Integer registeredContainerInstancesCount) The number of container instances registered into the cluster.runningTasksCount
(Integer runningTasksCount) The number of tasks in the cluster that are in theRUNNING
state.The status of the cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
clusterArn
The Amazon Resource Name (ARN) that identifies the cluster.
- Parameters:
clusterArn
- The Amazon Resource Name (ARN) that identifies the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeServicesCount
The number of services that are running on the cluster in an
ACTIVE
state. You can view these services with the Amazon ECSListServices
API operation.- Parameters:
activeServicesCount
- The number of services that are running on the cluster in anACTIVE
state. You can view these services with the Amazon ECSListServices
API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviders
The short name of one or more capacity providers to associate with the cluster.
- Parameters:
capacityProviders
- The short name of one or more capacity providers to associate with the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviders
The short name of one or more capacity providers to associate with the cluster.
- Parameters:
capacityProviders
- The short name of one or more capacity providers to associate with the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterSettings
AwsEcsClusterDetails.Builder clusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings) The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
- Parameters:
clusterSettings
- The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterSettings
AwsEcsClusterDetails.Builder clusterSettings(AwsEcsClusterClusterSettingsDetails... clusterSettings) The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
- Parameters:
clusterSettings
- The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterSettings
AwsEcsClusterDetails.Builder clusterSettings(Consumer<AwsEcsClusterClusterSettingsDetails.Builder>... clusterSettings) The setting to use to create the cluster. Specifically used to configure whether to enable CloudWatch Container Insights for the cluster.
This is a convenience method that creates an instance of theAwsEcsClusterClusterSettingsDetails.Builder
avoiding the need to create one manually viaAwsEcsClusterClusterSettingsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclusterSettings(List<AwsEcsClusterClusterSettingsDetails>)
.- Parameters:
clusterSettings
- a consumer that will call methods onAwsEcsClusterClusterSettingsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configuration
The run command configuration for the cluster.
- Parameters:
configuration
- The run command configuration for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default AwsEcsClusterDetails.Builder configuration(Consumer<AwsEcsClusterConfigurationDetails.Builder> configuration) The run command configuration for the cluster.
This is a convenience method that creates an instance of theAwsEcsClusterConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcsClusterConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(AwsEcsClusterConfigurationDetails)
.- Parameters:
configuration
- a consumer that will call methods onAwsEcsClusterConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultCapacityProviderStrategy
AwsEcsClusterDetails.Builder defaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
- Parameters:
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCapacityProviderStrategy
AwsEcsClusterDetails.Builder defaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails... defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
- Parameters:
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCapacityProviderStrategy
AwsEcsClusterDetails.Builder defaultCapacityProviderStrategy(Consumer<AwsEcsClusterDefaultCapacityProviderStrategyDetails.Builder>... defaultCapacityProviderStrategy) The default capacity provider strategy for the cluster. The default capacity provider strategy is used when services or tasks are run without a specified launch type or capacity provider strategy.
This is a convenience method that creates an instance of theAwsEcsClusterDefaultCapacityProviderStrategyDetails.Builder
avoiding the need to create one manually viaAwsEcsClusterDefaultCapacityProviderStrategyDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultCapacityProviderStrategy(List<AwsEcsClusterDefaultCapacityProviderStrategyDetails>)
.- Parameters:
defaultCapacityProviderStrategy
- a consumer that will call methods onAwsEcsClusterDefaultCapacityProviderStrategyDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clusterName
A name that you use to identify your cluster.
- Parameters:
clusterName
- A name that you use to identify your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registeredContainerInstancesCount
AwsEcsClusterDetails.Builder registeredContainerInstancesCount(Integer registeredContainerInstancesCount) The number of container instances registered into the cluster. This includes container instances in both
ACTIVE
andDRAINING
status.- Parameters:
registeredContainerInstancesCount
- The number of container instances registered into the cluster. This includes container instances in bothACTIVE
andDRAINING
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runningTasksCount
The number of tasks in the cluster that are in the
RUNNING
state.- Parameters:
runningTasksCount
- The number of tasks in the cluster that are in theRUNNING
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the cluster.
- Parameters:
status
- The status of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-