Class BaseDeploymentConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.BaseDeploymentConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseDeploymentConfigProps>
- Enclosing interface:
BaseDeploymentConfigProps
@Stability(Stable)
public static final class BaseDeploymentConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseDeploymentConfigProps>
A builder for
BaseDeploymentConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computePlatform(ComputePlatform computePlatform) Sets the value ofBaseDeploymentConfigProps.getComputePlatform()deploymentConfigName(String deploymentConfigName) Sets the value ofBaseDeploymentConfigOptions.getDeploymentConfigName()minimumHealthyHosts(MinimumHealthyHosts minimumHealthyHosts) Sets the value ofBaseDeploymentConfigProps.getMinimumHealthyHosts()trafficRouting(TrafficRouting trafficRouting) Sets the value ofBaseDeploymentConfigProps.getTrafficRouting()zonalConfig(ZonalConfig zonalConfig) Sets the value ofBaseDeploymentConfigProps.getZonalConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computePlatform
@Stability(Stable) public BaseDeploymentConfigProps.Builder computePlatform(ComputePlatform computePlatform) Sets the value ofBaseDeploymentConfigProps.getComputePlatform()- Parameters:
computePlatform- The destination compute platform for the deployment.- Returns:
this
-
minimumHealthyHosts
@Stability(Stable) public BaseDeploymentConfigProps.Builder minimumHealthyHosts(MinimumHealthyHosts minimumHealthyHosts) Sets the value ofBaseDeploymentConfigProps.getMinimumHealthyHosts()- Parameters:
minimumHealthyHosts- Minimum number of healthy hosts.- Returns:
this
-
trafficRouting
@Stability(Stable) public BaseDeploymentConfigProps.Builder trafficRouting(TrafficRouting trafficRouting) Sets the value ofBaseDeploymentConfigProps.getTrafficRouting()- Parameters:
trafficRouting- The configuration that specifies how traffic is shifted during a deployment. Only applicable to ECS and Lambda deployments, and must not be specified for Server deployments.- Returns:
this
-
zonalConfig
Sets the value ofBaseDeploymentConfigProps.getZonalConfig()- Parameters:
zonalConfig- Configure CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.- Returns:
this
-
deploymentConfigName
@Stability(Stable) public BaseDeploymentConfigProps.Builder deploymentConfigName(String deploymentConfigName) Sets the value ofBaseDeploymentConfigOptions.getDeploymentConfigName()- Parameters:
deploymentConfigName- The physical, human-readable name of the Deployment Configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BaseDeploymentConfigProps>- Returns:
- a new instance of
BaseDeploymentConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-