public Session withWorkerType(String workerType) {
        setWorkerType(workerType);
        return this;
    }
<p>
The type of predefined worker that is allocated when a session runs. Accepts a value of <code>G.1X</code>,
<code>G.2X</code>, <code>G.4X</code>, or <code>G.8X</code> for Spark sessions. Accepts the value
<code>Z.2X</code> for Ray sessions.
</p>

@param workerType
       The type of predefined worker that is allocated when a session runs. Accepts a value of <code>G.1X</code>,
       <code>G.2X</code>, <code>G.4X</code>, or <code>G.8X</code> for Spark sessions. Accepts the value
       <code>Z.2X</code> for Ray sessions.
@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/Session.java