Class CfnPrimaryTaskSet.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.CfnPrimaryTaskSet.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrimaryTaskSet>
Enclosing class:
CfnPrimaryTaskSet

@Stability(Stable) public static final class CfnPrimaryTaskSet.Builder extends Object implements software.amazon.jsii.Builder<CfnPrimaryTaskSet>
A fluent builder for CfnPrimaryTaskSet.
  • Method Details

    • create

      @Stability(Stable) public static CfnPrimaryTaskSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPrimaryTaskSet.Builder.
    • cluster

      @Stability(Stable) public CfnPrimaryTaskSet.Builder cluster(String cluster)
      The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.

      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

      @Stability(Stable) public CfnPrimaryTaskSet.Builder service(String service)
      The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.

      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

      @Stability(Stable) public CfnPrimaryTaskSet.Builder taskSetId(String taskSetId)
      The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.

      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

      @Stability(Stable) public CfnPrimaryTaskSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPrimaryTaskSet>
      Returns:
      a newly built instance of CfnPrimaryTaskSet.