#[non_exhaustive]pub struct TemporaryCredentialBuilder { /* private fields */ }
Expand description
A builder for TemporaryCredential
.
Implementations§
source§impl TemporaryCredentialBuilder
impl TemporaryCredentialBuilder
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The user name.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
The user name.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
The password.
sourcepub fn get_password(&self) -> &Option<String>
pub fn get_password(&self) -> &Option<String>
The password.
sourcepub fn valid_for_in_minutes(self, input: i32) -> Self
pub fn valid_for_in_minutes(self, input: i32) -> Self
The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they are automatically logged out.
sourcepub fn set_valid_for_in_minutes(self, input: Option<i32>) -> Self
pub fn set_valid_for_in_minutes(self, input: Option<i32>) -> Self
The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they are automatically logged out.
sourcepub fn get_valid_for_in_minutes(&self) -> &Option<i32>
pub fn get_valid_for_in_minutes(&self) -> &Option<i32>
The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they are automatically logged out.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The instance's OpsWorks Stacks ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The instance's OpsWorks Stacks ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The instance's OpsWorks Stacks ID.
sourcepub fn build(self) -> TemporaryCredential
pub fn build(self) -> TemporaryCredential
Consumes the builder and constructs a TemporaryCredential
.
Trait Implementations§
source§impl Clone for TemporaryCredentialBuilder
impl Clone for TemporaryCredentialBuilder
source§fn clone(&self) -> TemporaryCredentialBuilder
fn clone(&self) -> TemporaryCredentialBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TemporaryCredentialBuilder
impl Debug for TemporaryCredentialBuilder
source§impl Default for TemporaryCredentialBuilder
impl Default for TemporaryCredentialBuilder
source§fn default() -> TemporaryCredentialBuilder
fn default() -> TemporaryCredentialBuilder
source§impl PartialEq for TemporaryCredentialBuilder
impl PartialEq for TemporaryCredentialBuilder
source§fn eq(&self, other: &TemporaryCredentialBuilder) -> bool
fn eq(&self, other: &TemporaryCredentialBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TemporaryCredentialBuilder
Auto Trait Implementations§
impl Freeze for TemporaryCredentialBuilder
impl RefUnwindSafe for TemporaryCredentialBuilder
impl Send for TemporaryCredentialBuilder
impl Sync for TemporaryCredentialBuilder
impl Unpin for TemporaryCredentialBuilder
impl UnwindSafe for TemporaryCredentialBuilder
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