Class ServerDeploymentGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.ServerDeploymentGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServerDeploymentGroupAttributes>
- Enclosing interface:
ServerDeploymentGroupAttributes
@Stability(Stable)
public static final class ServerDeploymentGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ServerDeploymentGroupAttributes>
A builder for
ServerDeploymentGroupAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(IServerApplication application) Sets the value ofServerDeploymentGroupAttributes.getApplication()
build()
Builds the configured instance.deploymentConfig
(IServerDeploymentConfig deploymentConfig) Sets the value ofServerDeploymentGroupAttributes.getDeploymentConfig()
deploymentGroupName
(String deploymentGroupName) Sets the value ofServerDeploymentGroupAttributes.getDeploymentGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
@Stability(Stable) public ServerDeploymentGroupAttributes.Builder application(IServerApplication application) Sets the value ofServerDeploymentGroupAttributes.getApplication()
- Parameters:
application
- The reference to the CodeDeploy EC2/on-premise Application that this Deployment Group belongs to. This parameter is required.- Returns:
this
-
deploymentGroupName
@Stability(Stable) public ServerDeploymentGroupAttributes.Builder deploymentGroupName(String deploymentGroupName) Sets the value ofServerDeploymentGroupAttributes.getDeploymentGroupName()
- Parameters:
deploymentGroupName
- The physical, human-readable name of the CodeDeploy EC2/on-premise Deployment Group that we are referencing. This parameter is required.- Returns:
this
-
deploymentConfig
@Stability(Stable) public ServerDeploymentGroupAttributes.Builder deploymentConfig(IServerDeploymentConfig deploymentConfig) Sets the value ofServerDeploymentGroupAttributes.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<ServerDeploymentGroupAttributes>
- Returns:
- a new instance of
ServerDeploymentGroupAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-