Class PrimaryTaskSetReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ecs.PrimaryTaskSetReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrimaryTaskSetReference>
- Enclosing interface:
PrimaryTaskSetReference
@Stability(Stable)
public static final class PrimaryTaskSetReference.Builder
extends Object
implements software.amazon.jsii.Builder<PrimaryTaskSetReference>
A builder for
PrimaryTaskSetReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofPrimaryTaskSetReference.getCluster()Sets the value ofPrimaryTaskSetReference.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofPrimaryTaskSetReference.getCluster()- Parameters:
cluster- The Cluster of the PrimaryTaskSet resource. This parameter is required.- Returns:
this
-
service
Sets the value ofPrimaryTaskSetReference.getService()- Parameters:
service- The Service of the PrimaryTaskSet resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrimaryTaskSetReference>- Returns:
- a new instance of
PrimaryTaskSetReference - Throws:
NullPointerException- if any required attribute was not provided
-