Struct aws_sdk_lightsail::types::builders::AccessKeyBuilder
source · #[non_exhaustive]pub struct AccessKeyBuilder { /* private fields */ }
Expand description
A builder for AccessKey
.
Implementations§
source§impl AccessKeyBuilder
impl AccessKeyBuilder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The ID of the access key.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The ID of the access key.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The ID of the access key.
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 used to sign requests.
You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.
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 used to sign requests.
You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.
sourcepub fn get_secret_access_key(&self) -> &Option<String>
pub fn get_secret_access_key(&self) -> &Option<String>
The secret access key used to sign requests.
You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status of the access key.
A status of Active
means that the key is valid, while Inactive
means it is not.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status of the access key.
A status of Active
means that the key is valid, while Inactive
means it is not.
sourcepub fn get_status(&self) -> &Option<StatusType>
pub fn get_status(&self) -> &Option<StatusType>
The status of the access key.
A status of Active
means that the key is valid, while Inactive
means it is not.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the access key was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the access key was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the access key was created.
sourcepub fn last_used(self, input: AccessKeyLastUsed) -> Self
pub fn last_used(self, input: AccessKeyLastUsed) -> Self
An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region
and serviceName
values are N/A
, and the lastUsedDate
value is null.
sourcepub fn set_last_used(self, input: Option<AccessKeyLastUsed>) -> Self
pub fn set_last_used(self, input: Option<AccessKeyLastUsed>) -> Self
An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region
and serviceName
values are N/A
, and the lastUsedDate
value is null.
sourcepub fn get_last_used(&self) -> &Option<AccessKeyLastUsed>
pub fn get_last_used(&self) -> &Option<AccessKeyLastUsed>
An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region
and serviceName
values are N/A
, and the lastUsedDate
value is null.
Trait Implementations§
source§impl Clone for AccessKeyBuilder
impl Clone for AccessKeyBuilder
source§fn clone(&self) -> AccessKeyBuilder
fn clone(&self) -> AccessKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessKeyBuilder
impl Debug for AccessKeyBuilder
source§impl Default for AccessKeyBuilder
impl Default for AccessKeyBuilder
source§fn default() -> AccessKeyBuilder
fn default() -> AccessKeyBuilder
source§impl PartialEq for AccessKeyBuilder
impl PartialEq for AccessKeyBuilder
source§fn eq(&self, other: &AccessKeyBuilder) -> bool
fn eq(&self, other: &AccessKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessKeyBuilder
Auto Trait Implementations§
impl Freeze for AccessKeyBuilder
impl RefUnwindSafe for AccessKeyBuilder
impl Send for AccessKeyBuilder
impl Sync for AccessKeyBuilder
impl Unpin for AccessKeyBuilder
impl UnwindSafe for AccessKeyBuilder
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