#[non_exhaustive]pub struct AwsSessionCredentialsBuilder { /* private fields */ }
Expand description
A builder for AwsSessionCredentials
.
Implementations§
source§impl AwsSessionCredentialsBuilder
impl AwsSessionCredentialsBuilder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The access key for the session.
This field is required.sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The access key for the session.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The access key for the session.
sourcepub fn secret_access_key(self, input: impl Into<String>) -> Self
pub fn secret_access_key(self, input: impl Into<String>) -> Self
The secret access key for the session.
This field is required.sourcepub fn set_secret_access_key(self, input: Option<String>) -> Self
pub fn set_secret_access_key(self, input: Option<String>) -> Self
The secret access key for the session.
sourcepub fn get_secret_access_key(&self) -> &Option<String>
pub fn get_secret_access_key(&self) -> &Option<String>
The secret access key for the session.
sourcepub fn session_token(self, input: impl Into<String>) -> Self
pub fn session_token(self, input: impl Into<String>) -> Self
The token for the session.
This field is required.sourcepub fn set_session_token(self, input: Option<String>) -> Self
pub fn set_session_token(self, input: Option<String>) -> Self
The token for the session.
sourcepub fn get_session_token(&self) -> &Option<String>
pub fn get_session_token(&self) -> &Option<String>
The token for the session.
sourcepub fn build(self) -> Result<AwsSessionCredentials, BuildError>
pub fn build(self) -> Result<AwsSessionCredentials, BuildError>
Consumes the builder and constructs a AwsSessionCredentials
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsSessionCredentialsBuilder
impl Clone for AwsSessionCredentialsBuilder
source§fn clone(&self) -> AwsSessionCredentialsBuilder
fn clone(&self) -> AwsSessionCredentialsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AwsSessionCredentialsBuilder
impl Debug for AwsSessionCredentialsBuilder
source§impl Default for AwsSessionCredentialsBuilder
impl Default for AwsSessionCredentialsBuilder
source§fn default() -> AwsSessionCredentialsBuilder
fn default() -> AwsSessionCredentialsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AwsSessionCredentialsBuilder
impl PartialEq for AwsSessionCredentialsBuilder
source§fn eq(&self, other: &AwsSessionCredentialsBuilder) -> bool
fn eq(&self, other: &AwsSessionCredentialsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsSessionCredentialsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AwsSessionCredentialsBuilder
impl Send for AwsSessionCredentialsBuilder
impl Sync for AwsSessionCredentialsBuilder
impl Unpin for AwsSessionCredentialsBuilder
impl UnwindSafe for AwsSessionCredentialsBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.