Class WorkerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkerConfigurationProperty>
- Enclosing interface:
WorkerConfigurationProperty
@Stability(Stable)
public static final class WorkerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<WorkerConfigurationProperty>
A builder for
WorkerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.numberOfWorkers(Number numberOfWorkers) Sets the value ofWorkerConfigurationProperty.getNumberOfWorkers()workerType(WorkerType workerType) Deprecated.Use `workerTypeV2` for more flexibility in defining worker types.workerTypeV2(WorkerTypeV2 workerTypeV2) Sets the value ofWorkerConfigurationProperty.getWorkerTypeV2()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfWorkers
@Stability(Stable) public WorkerConfigurationProperty.Builder numberOfWorkers(Number numberOfWorkers) Sets the value ofWorkerConfigurationProperty.getNumberOfWorkers()- Parameters:
numberOfWorkers- The number of workers of a definedWorkerTypethat are allocated when a job runs. This parameter is required.- Returns:
this
-
workerType
@Stability(Deprecated) @Deprecated public WorkerConfigurationProperty.Builder workerType(WorkerType workerType) Deprecated.Use `workerTypeV2` for more flexibility in defining worker types.Sets the value ofWorkerConfigurationProperty.getWorkerType()- Parameters:
workerType- The type of predefined worker that is allocated when a job runs.- Returns:
this
-
workerTypeV2
@Stability(Stable) public WorkerConfigurationProperty.Builder workerTypeV2(WorkerTypeV2 workerTypeV2) Sets the value ofWorkerConfigurationProperty.getWorkerTypeV2()- Parameters:
workerTypeV2- The type of predefined worker that is allocated when a job runs. Can be one of the predefined values or dynamic values usingWorkerTypeV2.of(...).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkerConfigurationProperty>- Returns:
- a new instance of
WorkerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-