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 anACTIVEstate.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.Builderconfiguration(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 theRUNNINGstate.The status of the cluster.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
ACTIVEstate. You can view these services with the Amazon ECSListServicesAPI operation.- Parameters:
activeServicesCount- The number of services that are running on the cluster in anACTIVEstate. You can view these services with the Amazon ECSListServicesAPI 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.Builderavoiding the need to create one manually viaAwsEcsClusterClusterSettingsDetails.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaAwsEcsClusterConfigurationDetails.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaAwsEcsClusterDefaultCapacityProviderStrategyDetails.builder().When the
Consumercompletes,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
ACTIVEandDRAININGstatus.- Parameters:
registeredContainerInstancesCount- The number of container instances registered into the cluster. This includes container instances in bothACTIVEandDRAININGstatus.- 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
RUNNINGstate.- Parameters:
runningTasksCount- The number of tasks in the cluster that are in theRUNNINGstate.- 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.
-