Class EcsDeploymentGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.EcsDeploymentGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsDeploymentGroupAttributes>
- Enclosing interface:
EcsDeploymentGroupAttributes
@Stability(Stable)
public static final class EcsDeploymentGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<EcsDeploymentGroupAttributes>
A builder for
EcsDeploymentGroupAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(IEcsApplication application) Sets the value ofEcsDeploymentGroupAttributes.getApplication()build()Builds the configured instance.deploymentConfig(IEcsDeploymentConfig deploymentConfig) Sets the value ofEcsDeploymentGroupAttributes.getDeploymentConfig()deploymentGroupName(String deploymentGroupName) Sets the value ofEcsDeploymentGroupAttributes.getDeploymentGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
@Stability(Stable) public EcsDeploymentGroupAttributes.Builder application(IEcsApplication application) Sets the value ofEcsDeploymentGroupAttributes.getApplication()- Parameters:
application- The reference to the CodeDeploy ECS Application that this Deployment Group belongs to. This parameter is required.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public EcsDeploymentGroupAttributes.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofEcsDeploymentGroupAttributes.getDeploymentGroupName()- Parameters:
deploymentGroupName- The physical, human-readable name of the CodeDeploy ECS Deployment Group that we are referencing. This parameter is required.- Returns:
this
-
deploymentConfig
@Stability(Stable) public EcsDeploymentGroupAttributes.Builder deploymentConfig(IEcsDeploymentConfig deploymentConfig) Sets the value ofEcsDeploymentGroupAttributes.getDeploymentConfig()- Parameters:
deploymentConfig- The Deployment Configuration this Deployment Group uses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsDeploymentGroupAttributes>- Returns:
- a new instance of
EcsDeploymentGroupAttributes - Throws:
NullPointerException- if any required attribute was not provided
-