#[non_exhaustive]pub struct ScopedSessionBuilder { /* private fields */ }Expand description
A builder for ScopedSession.
Implementations§
Source§impl ScopedSessionBuilder
impl ScopedSessionBuilder
Sourcepub fn scoped_session_id(self, input: impl Into<String>) -> Self
pub fn scoped_session_id(self, input: impl Into<String>) -> Self
A unique identifier for the scoped session. Because the identity is preserved, this identifies the same principal as the calling session.
This field is required.Sourcepub fn set_scoped_session_id(self, input: Option<String>) -> Self
pub fn set_scoped_session_id(self, input: Option<String>) -> Self
A unique identifier for the scoped session. Because the identity is preserved, this identifies the same principal as the calling session.
Sourcepub fn get_scoped_session_id(&self) -> &Option<String>
pub fn get_scoped_session_id(&self) -> &Option<String>
A unique identifier for the scoped session. Because the identity is preserved, this identifies the same principal as the calling session.
Sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the scoped session. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
This field is required.Sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN of the scoped session. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
Sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN of the scoped session. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
Sourcepub fn build(self) -> Result<ScopedSession, BuildError>
pub fn build(self) -> Result<ScopedSession, BuildError>
Consumes the builder and constructs a ScopedSession.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for ScopedSessionBuilder
impl Clone for ScopedSessionBuilder
Source§fn clone(&self) -> ScopedSessionBuilder
fn clone(&self) -> ScopedSessionBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScopedSessionBuilder
impl Debug for ScopedSessionBuilder
Source§impl Default for ScopedSessionBuilder
impl Default for ScopedSessionBuilder
Source§fn default() -> ScopedSessionBuilder
fn default() -> ScopedSessionBuilder
Source§impl PartialEq for ScopedSessionBuilder
impl PartialEq for ScopedSessionBuilder
impl StructuralPartialEq for ScopedSessionBuilder
Auto Trait Implementations§
impl Freeze for ScopedSessionBuilder
impl RefUnwindSafe for ScopedSessionBuilder
impl Send for ScopedSessionBuilder
impl Sync for ScopedSessionBuilder
impl Unpin for ScopedSessionBuilder
impl UnsafeUnpin for ScopedSessionBuilder
impl UnwindSafe for ScopedSessionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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