@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to create a new session.
NOOP
Constructor and Description |
---|
CreateSessionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSessionRequest |
addDefaultArgumentsEntry(String key,
String value)
Add a single DefaultArguments entry
|
CreateSessionRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateSessionRequest |
clearDefaultArgumentsEntries()
Removes all the entries added into DefaultArguments.
|
CreateSessionRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateSessionRequest |
clone() |
boolean |
equals(Object obj) |
SessionCommand |
getCommand()
The
SessionCommand that runs the job. |
ConnectionsList |
getConnections()
The number of connections to use for the session.
|
Map<String,String> |
getDefaultArguments()
A map array of key-value pairs.
|
String |
getDescription()
The description of the session.
|
String |
getGlueVersion()
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
String |
getId()
The ID of the session request.
|
Integer |
getIdleTimeout()
The number of seconds when idle before request times out.
|
Double |
getMaxCapacity()
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
Integer |
getNumberOfWorkers()
The number of workers of a defined
WorkerType to use for the session. |
String |
getRequestOrigin()
The origin of the request.
|
String |
getRole()
The IAM Role ARN
|
String |
getSecurityConfiguration()
The name of the SecurityConfiguration structure to be used with the session
|
Map<String,String> |
getTags()
The map of key value pairs (tags) belonging to the session.
|
Integer |
getTimeout()
The number of seconds before request times out.
|
String |
getWorkerType()
The type of predefined worker that is allocated to use for the session.
|
int |
hashCode() |
void |
setCommand(SessionCommand command)
The
SessionCommand that runs the job. |
void |
setConnections(ConnectionsList connections)
The number of connections to use for the session.
|
void |
setDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs.
|
void |
setDescription(String description)
The description of the session.
|
void |
setGlueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
void |
setId(String id)
The ID of the session request.
|
void |
setIdleTimeout(Integer idleTimeout)
The number of seconds when idle before request times out.
|
void |
setMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
void |
setNumberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined
WorkerType to use for the session. |
void |
setRequestOrigin(String requestOrigin)
The origin of the request.
|
void |
setRole(String role)
The IAM Role ARN
|
void |
setSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session
|
void |
setTags(Map<String,String> tags)
The map of key value pairs (tags) belonging to the session.
|
void |
setTimeout(Integer timeout)
The number of seconds before request times out.
|
void |
setWorkerType(String workerType)
The type of predefined worker that is allocated to use for the session.
|
String |
toString()
Returns a string representation of this object.
|
CreateSessionRequest |
withCommand(SessionCommand command)
The
SessionCommand that runs the job. |
CreateSessionRequest |
withConnections(ConnectionsList connections)
The number of connections to use for the session.
|
CreateSessionRequest |
withDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs.
|
CreateSessionRequest |
withDescription(String description)
The description of the session.
|
CreateSessionRequest |
withGlueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
CreateSessionRequest |
withId(String id)
The ID of the session request.
|
CreateSessionRequest |
withIdleTimeout(Integer idleTimeout)
The number of seconds when idle before request times out.
|
CreateSessionRequest |
withMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
CreateSessionRequest |
withNumberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined
WorkerType to use for the session. |
CreateSessionRequest |
withRequestOrigin(String requestOrigin)
The origin of the request.
|
CreateSessionRequest |
withRole(String role)
The IAM Role ARN
|
CreateSessionRequest |
withSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session
|
CreateSessionRequest |
withTags(Map<String,String> tags)
The map of key value pairs (tags) belonging to the session.
|
CreateSessionRequest |
withTimeout(Integer timeout)
The number of seconds before request times out.
|
CreateSessionRequest |
withWorkerType(String workerType)
The type of predefined worker that is allocated to use for the session.
|
CreateSessionRequest |
withWorkerType(WorkerType workerType)
The type of predefined worker that is allocated to use for the session.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setId(String id)
The ID of the session request.
id
- The ID of the session request.public String getId()
The ID of the session request.
public CreateSessionRequest withId(String id)
The ID of the session request.
id
- The ID of the session request.public void setDescription(String description)
The description of the session.
description
- The description of the session.public String getDescription()
The description of the session.
public CreateSessionRequest withDescription(String description)
The description of the session.
description
- The description of the session.public void setRole(String role)
The IAM Role ARN
role
- The IAM Role ARNpublic String getRole()
The IAM Role ARN
public CreateSessionRequest withRole(String role)
The IAM Role ARN
role
- The IAM Role ARNpublic void setCommand(SessionCommand command)
The SessionCommand
that runs the job.
command
- The SessionCommand
that runs the job.public SessionCommand getCommand()
The SessionCommand
that runs the job.
SessionCommand
that runs the job.public CreateSessionRequest withCommand(SessionCommand command)
The SessionCommand
that runs the job.
command
- The SessionCommand
that runs the job.public void setTimeout(Integer timeout)
The number of seconds before request times out.
timeout
- The number of seconds before request times out.public Integer getTimeout()
The number of seconds before request times out.
public CreateSessionRequest withTimeout(Integer timeout)
The number of seconds before request times out.
timeout
- The number of seconds before request times out.public void setIdleTimeout(Integer idleTimeout)
The number of seconds when idle before request times out.
idleTimeout
- The number of seconds when idle before request times out.public Integer getIdleTimeout()
The number of seconds when idle before request times out.
public CreateSessionRequest withIdleTimeout(Integer idleTimeout)
The number of seconds when idle before request times out.
idleTimeout
- The number of seconds when idle before request times out.public Map<String,String> getDefaultArguments()
A map array of key-value pairs. Max is 75 pairs.
public void setDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs. Max is 75 pairs.
defaultArguments
- A map array of key-value pairs. Max is 75 pairs.public CreateSessionRequest withDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs. Max is 75 pairs.
defaultArguments
- A map array of key-value pairs. Max is 75 pairs.public CreateSessionRequest addDefaultArgumentsEntry(String key, String value)
public CreateSessionRequest clearDefaultArgumentsEntries()
public void setConnections(ConnectionsList connections)
The number of connections to use for the session.
connections
- The number of connections to use for the session.public ConnectionsList getConnections()
The number of connections to use for the session.
public CreateSessionRequest withConnections(ConnectionsList connections)
The number of connections to use for the session.
connections
- The number of connections to use for the session.public void setMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
maxCapacity
- The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a
relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.public Double getMaxCapacity()
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
public CreateSessionRequest withMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
maxCapacity
- The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a
relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.public void setNumberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined WorkerType
to use for the session.
numberOfWorkers
- The number of workers of a defined WorkerType
to use for the session.public Integer getNumberOfWorkers()
The number of workers of a defined WorkerType
to use for the session.
WorkerType
to use for the session.public CreateSessionRequest withNumberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined WorkerType
to use for the session.
numberOfWorkers
- The number of workers of a defined WorkerType
to use for the session.public void setWorkerType(String workerType)
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
workerType
- The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X,
G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerType
public String getWorkerType()
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerType
public CreateSessionRequest withWorkerType(String workerType)
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
workerType
- The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X,
G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerType
public CreateSessionRequest withWorkerType(WorkerType workerType)
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
workerType
- The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X,
G.2X, or G.025X.
For the Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X
worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X
worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X
worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerType
public void setSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session
securityConfiguration
- The name of the SecurityConfiguration structure to be used with the sessionpublic String getSecurityConfiguration()
The name of the SecurityConfiguration structure to be used with the session
public CreateSessionRequest withSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session
securityConfiguration
- The name of the SecurityConfiguration structure to be used with the sessionpublic void setGlueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
glueVersion
- The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion
must be greater than 2.0.public String getGlueVersion()
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
public CreateSessionRequest withGlueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
glueVersion
- The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion
must be greater than 2.0.public Map<String,String> getTags()
The map of key value pairs (tags) belonging to the session.
public void setTags(Map<String,String> tags)
The map of key value pairs (tags) belonging to the session.
tags
- The map of key value pairs (tags) belonging to the session.public CreateSessionRequest withTags(Map<String,String> tags)
The map of key value pairs (tags) belonging to the session.
tags
- The map of key value pairs (tags) belonging to the session.public CreateSessionRequest addTagsEntry(String key, String value)
public CreateSessionRequest clearTagsEntries()
public void setRequestOrigin(String requestOrigin)
The origin of the request.
requestOrigin
- The origin of the request.public String getRequestOrigin()
The origin of the request.
public CreateSessionRequest withRequestOrigin(String requestOrigin)
The origin of the request.
requestOrigin
- The origin of the request.public String toString()
toString
in class Object
Object.toString()
public CreateSessionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2023. All rights reserved.