Struct aws_sdk_ssm::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 session_id(self, input: impl Into<String>) -> Self
pub fn session_id(self, input: impl Into<String>) -> Self
The ID of the session.
sourcepub fn set_session_id(self, input: Option<String>) -> Self
pub fn set_session_id(self, input: Option<String>) -> Self
The ID of the session.
sourcepub fn get_session_id(&self) -> &Option<String>
pub fn get_session_id(&self) -> &Option<String>
The ID of the session.
sourcepub fn target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
The managed node that the Session Manager session connected to.
sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
The managed node that the Session Manager session connected to.
sourcepub fn get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &Option<String>
The managed node that the Session Manager session connected to.
sourcepub fn status(self, input: SessionStatus) -> Self
pub fn status(self, input: SessionStatus) -> Self
The status of the session. For example, "Connected" or "Terminated".
sourcepub fn set_status(self, input: Option<SessionStatus>) -> Self
pub fn set_status(self, input: Option<SessionStatus>) -> Self
The status of the session. For example, "Connected" or "Terminated".
sourcepub fn get_status(&self) -> &Option<SessionStatus>
pub fn get_status(&self) -> &Option<SessionStatus>
The status of the session. For example, "Connected" or "Terminated".
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
The date and time, in ISO-8601 Extended format, when the session began.
sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO-8601 Extended format, when the session began.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
The date and time, in ISO-8601 Extended format, when the session began.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
The date and time, in ISO-8601 Extended format, when the session was terminated.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO-8601 Extended format, when the session was terminated.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
The date and time, in ISO-8601 Extended format, when the session was terminated.
sourcepub fn document_name(self, input: impl Into<String>) -> Self
pub fn document_name(self, input: impl Into<String>) -> Self
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell
.
sourcepub fn set_document_name(self, input: Option<String>) -> Self
pub fn set_document_name(self, input: Option<String>) -> Self
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell
.
sourcepub fn get_document_name(&self) -> &Option<String>
pub fn get_document_name(&self) -> &Option<String>
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example, SSM-SessionManagerRunShell
.
sourcepub fn owner(self, input: impl Into<String>) -> Self
pub fn owner(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services user that started the session.
sourcepub fn set_owner(self, input: Option<String>) -> Self
pub fn set_owner(self, input: Option<String>) -> Self
The ID of the Amazon Web Services user that started the session.
sourcepub fn get_owner(&self) -> &Option<String>
pub fn get_owner(&self) -> &Option<String>
The ID of the Amazon Web Services user that started the session.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
The reason for connecting to the instance.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for connecting to the instance.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
The reason for connecting to the instance.
sourcepub fn set_details(self, input: Option<String>) -> Self
pub fn set_details(self, input: Option<String>) -> Self
Reserved for future use.
sourcepub fn get_details(&self) -> &Option<String>
pub fn get_details(&self) -> &Option<String>
Reserved for future use.
sourcepub fn output_url(self, input: SessionManagerOutputUrl) -> Self
pub fn output_url(self, input: SessionManagerOutputUrl) -> Self
Reserved for future use.
sourcepub fn set_output_url(self, input: Option<SessionManagerOutputUrl>) -> Self
pub fn set_output_url(self, input: Option<SessionManagerOutputUrl>) -> Self
Reserved for future use.
sourcepub fn get_output_url(&self) -> &Option<SessionManagerOutputUrl>
pub fn get_output_url(&self) -> &Option<SessionManagerOutputUrl>
Reserved for future use.
sourcepub fn max_session_duration(self, input: impl Into<String>) -> Self
pub fn max_session_duration(self, input: impl Into<String>) -> Self
The maximum duration of a session before it terminates.
sourcepub fn set_max_session_duration(self, input: Option<String>) -> Self
pub fn set_max_session_duration(self, input: Option<String>) -> Self
The maximum duration of a session before it terminates.
sourcepub fn get_max_session_duration(&self) -> &Option<String>
pub fn get_max_session_duration(&self) -> &Option<String>
The maximum duration of a session before it terminates.
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 ==
.impl StructuralPartialEq for SessionBuilder
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnwindSafe for SessionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more