Struct aws_sdk_glue::types::builders::SessionBuilder
source · #[non_exhaustive]pub struct SessionBuilder { /* private fields */ }Expand description
A builder for Session.
Implementations§
source§impl SessionBuilder
impl SessionBuilder
sourcepub fn created_on(self, input: DateTime) -> Self
pub fn created_on(self, input: DateTime) -> Self
The time and date when the session was created.
sourcepub fn set_created_on(self, input: Option<DateTime>) -> Self
pub fn set_created_on(self, input: Option<DateTime>) -> Self
The time and date when the session was created.
sourcepub fn get_created_on(&self) -> &Option<DateTime>
pub fn get_created_on(&self) -> &Option<DateTime>
The time and date when the session was created.
sourcepub fn status(self, input: SessionStatus) -> Self
pub fn status(self, input: SessionStatus) -> Self
The session status.
sourcepub fn set_status(self, input: Option<SessionStatus>) -> Self
pub fn set_status(self, input: Option<SessionStatus>) -> Self
The session status.
sourcepub fn get_status(&self) -> &Option<SessionStatus>
pub fn get_status(&self) -> &Option<SessionStatus>
The session status.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message displayed during the session.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message displayed during the session.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
The error message displayed during the session.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the session.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the session.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the session.
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
sourcepub fn get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &Option<String>
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
sourcepub fn command(self, input: SessionCommand) -> Self
pub fn command(self, input: SessionCommand) -> Self
The command object.See SessionCommand.
sourcepub fn set_command(self, input: Option<SessionCommand>) -> Self
pub fn set_command(self, input: Option<SessionCommand>) -> Self
The command object.See SessionCommand.
sourcepub fn get_command(&self) -> &Option<SessionCommand>
pub fn get_command(&self) -> &Option<SessionCommand>
The command object.See SessionCommand.
sourcepub fn default_arguments(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn default_arguments( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to default_arguments.
To override the contents of this collection use set_default_arguments.
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn set_default_arguments(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_default_arguments( self, input: Option<HashMap<String, String>> ) -> Self
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn get_default_arguments(&self) -> &Option<HashMap<String, String>>
pub fn get_default_arguments(&self) -> &Option<HashMap<String, String>>
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn connections(self, input: ConnectionsList) -> Self
pub fn connections(self, input: ConnectionsList) -> Self
The number of connections used for the session.
sourcepub fn set_connections(self, input: Option<ConnectionsList>) -> Self
pub fn set_connections(self, input: Option<ConnectionsList>) -> Self
The number of connections used for the session.
sourcepub fn get_connections(&self) -> &Option<ConnectionsList>
pub fn get_connections(&self) -> &Option<ConnectionsList>
The number of connections used for the session.
sourcepub fn set_progress(self, input: Option<f64>) -> Self
pub fn set_progress(self, input: Option<f64>) -> Self
The code execution progress of the session.
sourcepub fn get_progress(&self) -> &Option<f64>
pub fn get_progress(&self) -> &Option<f64>
The code execution progress of the session.
sourcepub fn max_capacity(self, input: f64) -> Self
pub fn max_capacity(self, input: f64) -> Self
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.
sourcepub fn set_max_capacity(self, input: Option<f64>) -> Self
pub fn set_max_capacity(self, input: Option<f64>) -> Self
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.
sourcepub fn get_max_capacity(&self) -> &Option<f64>
pub fn get_max_capacity(&self) -> &Option<f64>
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.
sourcepub fn security_configuration(self, input: impl Into<String>) -> Self
pub fn security_configuration(self, input: impl Into<String>) -> Self
The name of the SecurityConfiguration structure to be used with the session.
sourcepub fn set_security_configuration(self, input: Option<String>) -> Self
pub fn set_security_configuration(self, input: Option<String>) -> Self
The name of the SecurityConfiguration structure to be used with the session.
sourcepub fn get_security_configuration(&self) -> &Option<String>
pub fn get_security_configuration(&self) -> &Option<String>
The name of the SecurityConfiguration structure to be used with the session.
sourcepub fn glue_version(self, input: impl Into<String>) -> Self
pub fn glue_version(self, input: impl Into<String>) -> Self
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
sourcepub fn set_glue_version(self, input: Option<String>) -> Self
pub fn set_glue_version(self, input: Option<String>) -> Self
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
sourcepub fn get_glue_version(&self) -> &Option<String>
pub fn get_glue_version(&self) -> &Option<String>
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
sourcepub fn number_of_workers(self, input: i32) -> Self
pub fn number_of_workers(self, input: i32) -> Self
The number of workers of a defined WorkerType to use for the session.
sourcepub fn set_number_of_workers(self, input: Option<i32>) -> Self
pub fn set_number_of_workers(self, input: Option<i32>) -> Self
The number of workers of a defined WorkerType to use for the session.
sourcepub fn get_number_of_workers(&self) -> &Option<i32>
pub fn get_number_of_workers(&self) -> &Option<i32>
The number of workers of a defined WorkerType to use for the session.
sourcepub fn worker_type(self, input: WorkerType) -> Self
pub fn worker_type(self, input: WorkerType) -> Self
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.
sourcepub fn set_worker_type(self, input: Option<WorkerType>) -> Self
pub fn set_worker_type(self, input: Option<WorkerType>) -> Self
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.
sourcepub fn get_worker_type(&self) -> &Option<WorkerType>
pub fn get_worker_type(&self) -> &Option<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.
sourcepub fn completed_on(self, input: DateTime) -> Self
pub fn completed_on(self, input: DateTime) -> Self
The date and time that this session is completed.
sourcepub fn set_completed_on(self, input: Option<DateTime>) -> Self
pub fn set_completed_on(self, input: Option<DateTime>) -> Self
The date and time that this session is completed.
sourcepub fn get_completed_on(&self) -> &Option<DateTime>
pub fn get_completed_on(&self) -> &Option<DateTime>
The date and time that this session is completed.
sourcepub fn execution_time(self, input: f64) -> Self
pub fn execution_time(self, input: f64) -> Self
The total time the session ran for.
sourcepub fn set_execution_time(self, input: Option<f64>) -> Self
pub fn set_execution_time(self, input: Option<f64>) -> Self
The total time the session ran for.
sourcepub fn get_execution_time(&self) -> &Option<f64>
pub fn get_execution_time(&self) -> &Option<f64>
The total time the session ran for.
sourcepub fn dpu_seconds(self, input: f64) -> Self
pub fn dpu_seconds(self, input: f64) -> Self
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
sourcepub fn set_dpu_seconds(self, input: Option<f64>) -> Self
pub fn set_dpu_seconds(self, input: Option<f64>) -> Self
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
sourcepub fn get_dpu_seconds(&self) -> &Option<f64>
pub fn get_dpu_seconds(&self) -> &Option<f64>
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
sourcepub fn idle_timeout(self, input: i32) -> Self
pub fn idle_timeout(self, input: i32) -> Self
The number of minutes when idle before the session times out.
sourcepub fn set_idle_timeout(self, input: Option<i32>) -> Self
pub fn set_idle_timeout(self, input: Option<i32>) -> Self
The number of minutes when idle before the session times out.
sourcepub fn get_idle_timeout(&self) -> &Option<i32>
pub fn get_idle_timeout(&self) -> &Option<i32>
The number of minutes when idle before the session times out.
Trait Implementations§
source§impl Clone for SessionBuilder
impl Clone for SessionBuilder
source§fn clone(&self) -> SessionBuilder
fn clone(&self) -> SessionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SessionBuilder
impl Debug for SessionBuilder
source§impl Default for SessionBuilder
impl Default for SessionBuilder
source§fn default() -> SessionBuilder
fn default() -> SessionBuilder
source§impl PartialEq for SessionBuilder
impl PartialEq for SessionBuilder
source§fn eq(&self, other: &SessionBuilder) -> bool
fn eq(&self, other: &SessionBuilder) -> bool
self and other values to be equal, and is used
by ==.