@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Session extends Object implements Serializable, Cloneable, StructuredPojo
The period in which a remote Spark runtime environment is running.
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Session |
addDefaultArgumentsEntry(String key,
String value)
Add a single DefaultArguments entry
|
Session |
clearDefaultArgumentsEntries()
Removes all the entries added into DefaultArguments.
|
Session |
clone() |
boolean |
equals(Object obj) |
SessionCommand |
getCommand()
The command object.See SessionCommand.
|
Date |
getCompletedOn()
The date and time that this session is completed.
|
ConnectionsList |
getConnections()
The number of connections used for the session.
|
Date |
getCreatedOn()
The time and date when the session was created.
|
Map<String,String> |
getDefaultArguments()
A map array of key-value pairs.
|
String |
getDescription()
The description of the session.
|
Double |
getDPUSeconds()
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
|
String |
getErrorMessage()
The error message displayed during the session.
|
Double |
getExecutionTime()
The total time the session ran for.
|
String |
getGlueVersion()
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
String |
getId()
The ID of the session.
|
Integer |
getIdleTimeout()
The number of minutes when idle before the session 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 |
getProfileName()
The name of an Glue usage profile associated with the session.
|
Double |
getProgress()
The code execution progress of the session.
|
String |
getRole()
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
|
String |
getSecurityConfiguration()
The name of the SecurityConfiguration structure to be used with the session.
|
String |
getStatus()
The session status.
|
String |
getWorkerType()
The type of predefined worker that is allocated when a session runs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommand(SessionCommand command)
The command object.See SessionCommand.
|
void |
setCompletedOn(Date completedOn)
The date and time that this session is completed.
|
void |
setConnections(ConnectionsList connections)
The number of connections used for the session.
|
void |
setCreatedOn(Date createdOn)
The time and date when the session was created.
|
void |
setDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs.
|
void |
setDescription(String description)
The description of the session.
|
void |
setDPUSeconds(Double dPUSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
|
void |
setErrorMessage(String errorMessage)
The error message displayed during the session.
|
void |
setExecutionTime(Double executionTime)
The total time the session ran for.
|
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.
|
void |
setIdleTimeout(Integer idleTimeout)
The number of minutes when idle before the session 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 |
setProfileName(String profileName)
The name of an Glue usage profile associated with the session.
|
void |
setProgress(Double progress)
The code execution progress of the session.
|
void |
setRole(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
|
void |
setSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session.
|
void |
setStatus(String status)
The session status.
|
void |
setWorkerType(String workerType)
The type of predefined worker that is allocated when a session runs.
|
String |
toString()
Returns a string representation of this object.
|
Session |
withCommand(SessionCommand command)
The command object.See SessionCommand.
|
Session |
withCompletedOn(Date completedOn)
The date and time that this session is completed.
|
Session |
withConnections(ConnectionsList connections)
The number of connections used for the session.
|
Session |
withCreatedOn(Date createdOn)
The time and date when the session was created.
|
Session |
withDefaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs.
|
Session |
withDescription(String description)
The description of the session.
|
Session |
withDPUSeconds(Double dPUSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
|
Session |
withErrorMessage(String errorMessage)
The error message displayed during the session.
|
Session |
withExecutionTime(Double executionTime)
The total time the session ran for.
|
Session |
withGlueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
Session |
withId(String id)
The ID of the session.
|
Session |
withIdleTimeout(Integer idleTimeout)
The number of minutes when idle before the session times out.
|
Session |
withMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
Session |
withNumberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined
WorkerType to use for the session. |
Session |
withProfileName(String profileName)
The name of an Glue usage profile associated with the session.
|
Session |
withProgress(Double progress)
The code execution progress of the session.
|
Session |
withRole(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
|
Session |
withSecurityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session.
|
Session |
withStatus(SessionStatus status)
The session status.
|
Session |
withStatus(String status)
The session status.
|
Session |
withWorkerType(String workerType)
The type of predefined worker that is allocated when a session runs.
|
Session |
withWorkerType(WorkerType workerType)
The type of predefined worker that is allocated when a session runs.
|
public void setId(String id)
The ID of the session.
id
- The ID of the session.public String getId()
The ID of the session.
public Session withId(String id)
The ID of the session.
id
- The ID of the session.public void setCreatedOn(Date createdOn)
The time and date when the session was created.
createdOn
- The time and date when the session was created.public Date getCreatedOn()
The time and date when the session was created.
public Session withCreatedOn(Date createdOn)
The time and date when the session was created.
createdOn
- The time and date when the session was created.public void setStatus(String status)
The session status.
status
- The session status.SessionStatus
public String getStatus()
The session status.
SessionStatus
public Session withStatus(String status)
The session status.
status
- The session status.SessionStatus
public Session withStatus(SessionStatus status)
The session status.
status
- The session status.SessionStatus
public void setErrorMessage(String errorMessage)
The error message displayed during the session.
errorMessage
- The error message displayed during the session.public String getErrorMessage()
The error message displayed during the session.
public Session withErrorMessage(String errorMessage)
The error message displayed during the session.
errorMessage
- The error message displayed during the session.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 Session withDescription(String description)
The description of the session.
description
- The description of the session.public void setRole(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
role
- The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.public String getRole()
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
public Session withRole(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
role
- The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.public void setCommand(SessionCommand command)
The command object.See SessionCommand.
command
- The command object.See SessionCommand.public SessionCommand getCommand()
The command object.See SessionCommand.
public Session withCommand(SessionCommand command)
The command object.See SessionCommand.
command
- The command object.See SessionCommand.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 Session 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 Session addDefaultArgumentsEntry(String key, String value)
public Session clearDefaultArgumentsEntries()
public void setConnections(ConnectionsList connections)
The number of connections used for the session.
connections
- The number of connections used for the session.public ConnectionsList getConnections()
The number of connections used for the session.
public Session withConnections(ConnectionsList connections)
The number of connections used for the session.
connections
- The number of connections used for the session.public void setProgress(Double progress)
The code execution progress of the session.
progress
- The code execution progress of the session.public Double getProgress()
The code execution progress of the session.
public Session withProgress(Double progress)
The code execution progress of the session.
progress
- The code execution progress of 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 Session 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 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 session.public String getSecurityConfiguration()
The name of the SecurityConfiguration structure to be used with the session.
public Session 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 session.public 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 Session 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 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 Session 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 when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.
workerType
- The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.WorkerType
public String getWorkerType()
The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.
G.1X
, G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.WorkerType
public Session withWorkerType(String workerType)
The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.
workerType
- The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.WorkerType
public Session withWorkerType(WorkerType workerType)
The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.
workerType
- The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X
,
G.2X
, G.4X
, or G.8X
for Spark sessions. Accepts the value
Z.2X
for Ray sessions.WorkerType
public void setCompletedOn(Date completedOn)
The date and time that this session is completed.
completedOn
- The date and time that this session is completed.public Date getCompletedOn()
The date and time that this session is completed.
public Session withCompletedOn(Date completedOn)
The date and time that this session is completed.
completedOn
- The date and time that this session is completed.public void setExecutionTime(Double executionTime)
The total time the session ran for.
executionTime
- The total time the session ran for.public Double getExecutionTime()
The total time the session ran for.
public Session withExecutionTime(Double executionTime)
The total time the session ran for.
executionTime
- The total time the session ran for.public void setDPUSeconds(Double dPUSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
dPUSeconds
- The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).public Double getDPUSeconds()
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
public Session withDPUSeconds(Double dPUSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
dPUSeconds
- The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).public void setIdleTimeout(Integer idleTimeout)
The number of minutes when idle before the session times out.
idleTimeout
- The number of minutes when idle before the session times out.public Integer getIdleTimeout()
The number of minutes when idle before the session times out.
public Session withIdleTimeout(Integer idleTimeout)
The number of minutes when idle before the session times out.
idleTimeout
- The number of minutes when idle before the session times out.public void setProfileName(String profileName)
The name of an Glue usage profile associated with the session.
profileName
- The name of an Glue usage profile associated with the session.public String getProfileName()
The name of an Glue usage profile associated with the session.
public Session withProfileName(String profileName)
The name of an Glue usage profile associated with the session.
profileName
- The name of an Glue usage profile associated with the session.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.