Class LambdaDeploymentGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDeploymentGroupAttributes>
- Enclosing interface:
LambdaDeploymentGroupAttributes
@Stability(Stable)
public static final class LambdaDeploymentGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaDeploymentGroupAttributes>
A builder for
LambdaDeploymentGroupAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(ILambdaApplication application) Sets the value ofLambdaDeploymentGroupAttributes.getApplication()
build()
Builds the configured instance.deploymentConfig
(ILambdaDeploymentConfig deploymentConfig) Sets the value ofLambdaDeploymentGroupAttributes.getDeploymentConfig()
deploymentGroupName
(String deploymentGroupName) Sets the value ofLambdaDeploymentGroupAttributes.getDeploymentGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
@Stability(Stable) public LambdaDeploymentGroupAttributes.Builder application(ILambdaApplication application) Sets the value ofLambdaDeploymentGroupAttributes.getApplication()
- Parameters:
application
- The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. This parameter is required.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public LambdaDeploymentGroupAttributes.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofLambdaDeploymentGroupAttributes.getDeploymentGroupName()
- Parameters:
deploymentGroupName
- The physical, human-readable name of the CodeDeploy Lambda Deployment Group that we are referencing. This parameter is required.- Returns:
this
-
deploymentConfig
@Stability(Stable) public LambdaDeploymentGroupAttributes.Builder deploymentConfig(ILambdaDeploymentConfig deploymentConfig) Sets the value ofLambdaDeploymentGroupAttributes.getDeploymentConfig()
- Parameters:
deploymentConfig
- The Deployment Configuration this Deployment Group uses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaDeploymentGroupAttributes>
- Returns:
- a new instance of
LambdaDeploymentGroupAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-