Class CfnDeploymentGroup.GreenFleetProvisioningOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.GreenFleetProvisioningOptionProperty>
- Enclosing interface:
- CfnDeploymentGroup.GreenFleetProvisioningOptionProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.GreenFleetProvisioningOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.GreenFleetProvisioningOptionProperty>
A builder for
CfnDeploymentGroup.GreenFleetProvisioningOptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDeploymentGroup.GreenFleetProvisioningOptionProperty.getAction()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeploymentGroup.GreenFleetProvisioningOptionProperty.Builder action(String action) Sets the value ofCfnDeploymentGroup.GreenFleetProvisioningOptionProperty.getAction()- Parameters:
action- The method used to add instances to a replacement environment.DISCOVER_EXISTING: Use instances that already exist or will be created manually.COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.GreenFleetProvisioningOptionProperty>- Returns:
- a new instance of
CfnDeploymentGroup.GreenFleetProvisioningOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-