Class CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>
- Enclosing interface:
- CfnDeploymentGroup.TargetGroupPairInfoProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>
A builder for
CfnDeploymentGroup.TargetGroupPairInfoProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.prodTrafficRoute
(IResolvable prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()
prodTrafficRoute
(CfnDeploymentGroup.TrafficRouteProperty prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()
targetGroups
(List<? extends Object> targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()
targetGroups
(IResolvable targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()
testTrafficRoute
(IResolvable testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()
testTrafficRoute
(CfnDeploymentGroup.TrafficRouteProperty testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prodTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder prodTrafficRoute(IResolvable prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()
- Parameters:
prodTrafficRoute
-CfnDeploymentGroup.TargetGroupPairInfoProperty.ProdTrafficRoute
.- Returns:
this
-
prodTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder prodTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()
- Parameters:
prodTrafficRoute
-CfnDeploymentGroup.TargetGroupPairInfoProperty.ProdTrafficRoute
.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder targetGroups(IResolvable targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()
- Parameters:
targetGroups
-CfnDeploymentGroup.TargetGroupPairInfoProperty.TargetGroups
.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()
- Parameters:
targetGroups
-CfnDeploymentGroup.TargetGroupPairInfoProperty.TargetGroups
.- Returns:
this
-
testTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder testTrafficRoute(IResolvable testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()
- Parameters:
testTrafficRoute
-CfnDeploymentGroup.TargetGroupPairInfoProperty.TestTrafficRoute
.- Returns:
this
-
testTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder testTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()
- Parameters:
testTrafficRoute
-CfnDeploymentGroup.TargetGroupPairInfoProperty.TestTrafficRoute
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.TargetGroupPairInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-