@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.
|
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.
|
String |
getErrorMessage()
The error message displayed during 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.
|
Double |
getMaxCapacity()
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommand(SessionCommand command)
The command object.See SessionCommand.
|
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 |
setErrorMessage(String errorMessage)
The error message displayed during 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.
|
void |
setMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
Session |
withCommand(SessionCommand command)
The command object.See SessionCommand.
|
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 |
withErrorMessage(String errorMessage)
The error message displayed during the session.
|
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 |
withMaxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
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.
|
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 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.