Package software.amazon.awscdk
Class CfnCodeDeployBlueGreenEcsAttributes.Builder
java.lang.Object
software.amazon.awscdk.CfnCodeDeployBlueGreenEcsAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeDeployBlueGreenEcsAttributes>
- Enclosing interface:
CfnCodeDeployBlueGreenEcsAttributes
@Stability(Stable)
public static final class CfnCodeDeployBlueGreenEcsAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeDeployBlueGreenEcsAttributes>
A builder for
CfnCodeDeployBlueGreenEcsAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.taskDefinitions(List<String> taskDefinitions) Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTaskDefinitions()Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTaskSets()trafficRouting(CfnTrafficRouting trafficRouting) Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTrafficRouting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
taskDefinitions
@Stability(Stable) public CfnCodeDeployBlueGreenEcsAttributes.Builder taskDefinitions(List<String> taskDefinitions) Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTaskDefinitions()- Parameters:
taskDefinitions- The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task definitions. This parameter is required.- Returns:
this
-
taskSets
@Stability(Stable) public CfnCodeDeployBlueGreenEcsAttributes.Builder taskSets(List<String> taskSets) Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTaskSets()- Parameters:
taskSets- The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets. This parameter is required.- Returns:
this
-
trafficRouting
@Stability(Stable) public CfnCodeDeployBlueGreenEcsAttributes.Builder trafficRouting(CfnTrafficRouting trafficRouting) Sets the value ofCfnCodeDeployBlueGreenEcsAttributes.getTrafficRouting()- Parameters:
trafficRouting- The traffic routing configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCodeDeployBlueGreenEcsAttributes>- Returns:
- a new instance of
CfnCodeDeployBlueGreenEcsAttributes - Throws:
NullPointerException- if any required attribute was not provided
-