Class CfnPrimaryTaskSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnPrimaryTaskSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrimaryTaskSetProps>
- Enclosing interface:
CfnPrimaryTaskSetProps
@Stability(Stable)
public static final class CfnPrimaryTaskSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrimaryTaskSetProps>
A builder for
CfnPrimaryTaskSetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrimaryTaskSetProps.getCluster()Sets the value ofCfnPrimaryTaskSetProps.getService()Sets the value ofCfnPrimaryTaskSetProps.getTaskSetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofCfnPrimaryTaskSetProps.getCluster()- Parameters:
cluster- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in. This parameter is required.- Returns:
this
-
service
Sets the value ofCfnPrimaryTaskSetProps.getService()- Parameters:
service- The short name or full Amazon Resource Name (ARN) of the service that the task set exists in. This parameter is required.- Returns:
this
-
taskSetId
Sets the value ofCfnPrimaryTaskSetProps.getTaskSetId()- Parameters:
taskSetId- The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrimaryTaskSetProps>- Returns:
- a new instance of
CfnPrimaryTaskSetProps - Throws:
NullPointerException- if any required attribute was not provided
-