Class WorkerConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.WorkerConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkerConfiguration>
- Enclosing interface:
WorkerConfiguration
@Stability(Experimental)
public static final class WorkerConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<WorkerConfiguration>
A builder for
WorkerConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.numberOfWorkers(Number numberOfWorkers) Sets the value ofWorkerConfiguration.getNumberOfWorkers()workerType(WorkerType workerType) Sets the value ofWorkerConfiguration.getWorkerType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfWorkers
Sets the value ofWorkerConfiguration.getNumberOfWorkers()- Parameters:
numberOfWorkers- The number of workers of the givenworkerTypethat are allocated when a job runs. This parameter is required.- Returns:
this
-
workerType
Sets the value ofWorkerConfiguration.getWorkerType()- Parameters:
workerType- The type of predefined worker that is allocated when a job runs. This parameter is required. Enum options: Standard, G_1X, G_2X, G_025X, G_4X, G_8X, Z_2X- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkerConfiguration>- Returns:
- a new instance of
WorkerConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-