Interface AwsEcsClusterDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEcsClusterDetails.Builder,AwsEcsClusterDetails>,SdkBuilder<AwsEcsClusterDetails.Builder,AwsEcsClusterDetails>,SdkPojo
- Enclosing class:
- AwsEcsClusterDetails
public static interface AwsEcsClusterDetails.Builder extends SdkPojo, CopyableBuilder<AwsEcsClusterDetails.Builder,AwsEcsClusterDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsEcsClusterDetails.BuilderactiveServicesCount(Integer activeServicesCount)The number of services that are running on the cluster in anACTIVEstate.AwsEcsClusterDetails.BuildercapacityProviders(String... capacityProviders)The short name of one or more capacity providers to associate with the cluster.AwsEcsClusterDetails.BuildercapacityProviders(Collection<String> capacityProviders)The short name of one or more capacity providers to associate with the cluster.AwsEcsClusterDetails.BuilderclusterArn(String clusterArn)The Amazon Resource Name (ARN) that identifies the cluster.AwsEcsClusterDetails.BuilderclusterName(String clusterName)A name that you use to identify your cluster.AwsEcsClusterDetails.BuilderclusterSettings(Collection<AwsEcsClusterClusterSettingsDetails> clusterSettings)The setting to use to create the cluster.AwsEcsClusterDetails.BuilderclusterSettings(Consumer<AwsEcsClusterClusterSettingsDetails.Builder>... clusterSettings)The setting to use to create the cluster.AwsEcsClusterDetails.BuilderclusterSettings(AwsEcsClusterClusterSettingsDetails... clusterSettings)The setting to use to create the cluster.default AwsEcsClusterDetails.Builderconfiguration(Consumer<AwsEcsClusterConfigurationDetails.Builder> configuration)The run command configuration for the cluster.AwsEcsClusterDetails.Builderconfiguration(AwsEcsClusterConfigurationDetails configuration)The run command configuration for the cluster.AwsEcsClusterDetails.BuilderdefaultCapacityProviderStrategy(Collection<AwsEcsClusterDefaultCapacityProviderStrategyDetails> defaultCapacityProviderStrategy)The default capacity provider strategy for the cluster.AwsEcsClusterDetails.BuilderdefaultCapacityProviderStrategy(Consumer<AwsEcsClusterDefaultCapacityProviderStrategyDetails.Builder>... defaultCapacityProviderStrategy)The default capacity provider strategy for the cluster.AwsEcsClusterDetails.BuilderdefaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails... defaultCapacityProviderStrategy)The default capacity provider strategy for the cluster.AwsEcsClusterDetails.BuilderregisteredContainerInstancesCount(Integer registeredContainerInstancesCount)The number of container instances registered into the cluster.AwsEcsClusterDetails.BuilderrunningTasksCount(Integer runningTasksCount)The number of tasks in the cluster that are in theRUNNINGstate.AwsEcsClusterDetails.Builderstatus(String status)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, sdkFields
-
-
-
-
Method Detail
-
clusterArn
AwsEcsClusterDetails.Builder clusterArn(String 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
AwsEcsClusterDetails.Builder activeServicesCount(Integer 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
AwsEcsClusterDetails.Builder capacityProviders(Collection<String> 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
AwsEcsClusterDetails.Builder capacityProviders(String... 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 to#clusterSettings(List.) - 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:
#clusterSettings(java.util.Collection)
-
configuration
AwsEcsClusterDetails.Builder configuration(AwsEcsClusterConfigurationDetails 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:
configuration(AwsEcsClusterConfigurationDetails)
-
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 to#defaultCapacityProviderStrategy(List.) - 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:
#defaultCapacityProviderStrategy(java.util.Collection)
-
clusterName
AwsEcsClusterDetails.Builder clusterName(String 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
AwsEcsClusterDetails.Builder runningTasksCount(Integer 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
AwsEcsClusterDetails.Builder status(String 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.
-
-