Class CfnDeploymentGroupPropsMixin.DeploymentStyleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentGroupPropsMixin.DeploymentStyleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.DeploymentStyleProperty>
- Enclosing interface:
CfnDeploymentGroupPropsMixin.DeploymentStyleProperty
@Stability(Stable)
public static final class CfnDeploymentGroupPropsMixin.DeploymentStyleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.DeploymentStyleProperty>
A builder for
CfnDeploymentGroupPropsMixin.DeploymentStyleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentOption(String deploymentOption) deploymentType(String deploymentType) Sets the value ofCfnDeploymentGroupPropsMixin.DeploymentStyleProperty.getDeploymentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentOption
@Stability(Stable) public CfnDeploymentGroupPropsMixin.DeploymentStyleProperty.Builder deploymentOption(String deploymentOption) - Parameters:
deploymentOption- Indicates whether to route deployment traffic behind a load balancer.An Amazon EC2 Application Load Balancer or Network Load Balancer is required for an Amazon ECS deployment.
- Returns:
this
-
deploymentType
@Stability(Stable) public CfnDeploymentGroupPropsMixin.DeploymentStyleProperty.Builder deploymentType(String deploymentType) Sets the value ofCfnDeploymentGroupPropsMixin.DeploymentStyleProperty.getDeploymentType()- Parameters:
deploymentType- Indicates whether to run an in-place or blue/green deployment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.DeploymentStyleProperty>- Returns:
- a new instance of
CfnDeploymentGroupPropsMixin.DeploymentStyleProperty - Throws:
NullPointerException- if any required attribute was not provided
-