Class CfnDeploymentGroupPropsMixin.ECSServiceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentGroupPropsMixin.ECSServiceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.ECSServiceProperty>
- Enclosing interface:
CfnDeploymentGroupPropsMixin.ECSServiceProperty
@Stability(Stable)
public static final class CfnDeploymentGroupPropsMixin.ECSServiceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.ECSServiceProperty>
A builder for
CfnDeploymentGroupPropsMixin.ECSServiceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofCfnDeploymentGroupPropsMixin.ECSServiceProperty.getClusterName()serviceName(String serviceName) Sets the value ofCfnDeploymentGroupPropsMixin.ECSServiceProperty.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterName
@Stability(Stable) public CfnDeploymentGroupPropsMixin.ECSServiceProperty.Builder clusterName(String clusterName) Sets the value ofCfnDeploymentGroupPropsMixin.ECSServiceProperty.getClusterName()- Parameters:
clusterName- The name of the cluster that the Amazon ECS service is associated with.- Returns:
this
-
serviceName
@Stability(Stable) public CfnDeploymentGroupPropsMixin.ECSServiceProperty.Builder serviceName(String serviceName) Sets the value ofCfnDeploymentGroupPropsMixin.ECSServiceProperty.getServiceName()- Parameters:
serviceName- The name of the target Amazon ECS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.ECSServiceProperty>- Returns:
- a new instance of
CfnDeploymentGroupPropsMixin.ECSServiceProperty - Throws:
NullPointerException- if any required attribute was not provided
-