Struct aws_sdk_athena::types::builders::SessionStatusBuilder
source · #[non_exhaustive]pub struct SessionStatusBuilder { /* private fields */ }Expand description
A builder for SessionStatus.
Implementations§
source§impl SessionStatusBuilder
impl SessionStatusBuilder
sourcepub fn start_date_time(self, input: DateTime) -> Self
pub fn start_date_time(self, input: DateTime) -> Self
The date and time that the session started.
sourcepub fn set_start_date_time(self, input: Option<DateTime>) -> Self
pub fn set_start_date_time(self, input: Option<DateTime>) -> Self
The date and time that the session started.
sourcepub fn get_start_date_time(&self) -> &Option<DateTime>
pub fn get_start_date_time(&self) -> &Option<DateTime>
The date and time that the session started.
sourcepub fn last_modified_date_time(self, input: DateTime) -> Self
pub fn last_modified_date_time(self, input: DateTime) -> Self
The most recent date and time that the session was modified.
sourcepub fn set_last_modified_date_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_date_time(self, input: Option<DateTime>) -> Self
The most recent date and time that the session was modified.
sourcepub fn get_last_modified_date_time(&self) -> &Option<DateTime>
pub fn get_last_modified_date_time(&self) -> &Option<DateTime>
The most recent date and time that the session was modified.
sourcepub fn end_date_time(self, input: DateTime) -> Self
pub fn end_date_time(self, input: DateTime) -> Self
The date and time that the session ended.
sourcepub fn set_end_date_time(self, input: Option<DateTime>) -> Self
pub fn set_end_date_time(self, input: Option<DateTime>) -> Self
The date and time that the session ended.
sourcepub fn get_end_date_time(&self) -> &Option<DateTime>
pub fn get_end_date_time(&self) -> &Option<DateTime>
The date and time that the session ended.
sourcepub fn idle_since_date_time(self, input: DateTime) -> Self
pub fn idle_since_date_time(self, input: DateTime) -> Self
The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
sourcepub fn set_idle_since_date_time(self, input: Option<DateTime>) -> Self
pub fn set_idle_since_date_time(self, input: Option<DateTime>) -> Self
The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
sourcepub fn get_idle_since_date_time(&self) -> &Option<DateTime>
pub fn get_idle_since_date_time(&self) -> &Option<DateTime>
The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
sourcepub fn state(self, input: SessionState) -> Self
pub fn state(self, input: SessionState) -> Self
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
sourcepub fn set_state(self, input: Option<SessionState>) -> Self
pub fn set_state(self, input: Option<SessionState>) -> Self
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
sourcepub fn get_state(&self) -> &Option<SessionState>
pub fn get_state(&self) -> &Option<SessionState>
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
sourcepub fn state_change_reason(self, input: impl Into<String>) -> Self
pub fn state_change_reason(self, input: impl Into<String>) -> Self
The reason for the session state change (for example, canceled because the session was terminated).
sourcepub fn set_state_change_reason(self, input: Option<String>) -> Self
pub fn set_state_change_reason(self, input: Option<String>) -> Self
The reason for the session state change (for example, canceled because the session was terminated).
sourcepub fn get_state_change_reason(&self) -> &Option<String>
pub fn get_state_change_reason(&self) -> &Option<String>
The reason for the session state change (for example, canceled because the session was terminated).
sourcepub fn build(self) -> SessionStatus
pub fn build(self) -> SessionStatus
Consumes the builder and constructs a SessionStatus.
Trait Implementations§
source§impl Clone for SessionStatusBuilder
impl Clone for SessionStatusBuilder
source§fn clone(&self) -> SessionStatusBuilder
fn clone(&self) -> SessionStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SessionStatusBuilder
impl Debug for SessionStatusBuilder
source§impl Default for SessionStatusBuilder
impl Default for SessionStatusBuilder
source§fn default() -> SessionStatusBuilder
fn default() -> SessionStatusBuilder
source§impl PartialEq<SessionStatusBuilder> for SessionStatusBuilder
impl PartialEq<SessionStatusBuilder> for SessionStatusBuilder
source§fn eq(&self, other: &SessionStatusBuilder) -> bool
fn eq(&self, other: &SessionStatusBuilder) -> bool
self and other values to be equal, and is used
by ==.