public CreateSessionRequest withWorkerType(String workerType) {
        setWorkerType(workerType);
        return this;
    }
<p>
The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for
Spark jobs. Accepts the value Z.2X for Ray notebooks.
</p>
<ul>
<li>
<p>
For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
(approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
</p>
</li>
<li>
<p>
For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
(approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
</p>
</li>
<li>
<p>
For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
(approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
</p>
</li>
<li>
<p>
For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
(approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
<code>G.4X</code> worker type.
</p>
</li>
<li>
<p>
For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
(approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
</p>
</li>
</ul>

@param workerType
       The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or
       G.8X for Spark jobs. Accepts the value Z.2X for Ray notebooks.</p>
       <ul>
       <li>
       <p>
       For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
       (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads
       such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
       </p>
       </li>
       <li>
       <p>
       For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB
       disk (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for
       workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
       most jobs.
       </p>
       </li>
       <li>
       <p>
       For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB
       disk (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for
       jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
       type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services
       Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific
       (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe
       (Stockholm).
       </p>
       </li>
       <li>
       <p>
       For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB
       disk (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for
       jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
       type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services
       Regions as supported for the <code>G.4X</code> worker type.
       </p>
       </li>
       <li>
       <p>
       For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB
       disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see WorkerType
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateSessionRequest.java