#[non_exhaustive]pub struct GetKeyLastUsageOutputBuilder { /* private fields */ }Expand description
A builder for GetKeyLastUsageOutput.
Implementations§
Source§impl GetKeyLastUsageOutputBuilder
impl GetKeyLastUsageOutputBuilder
Sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The globally unique identifier for the KMS key.
Sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The globally unique identifier for the KMS key.
Sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The globally unique identifier for the KMS key.
Sourcepub fn key_last_usage(self, input: KeyLastUsageData) -> Self
pub fn key_last_usage(self, input: KeyLastUsageData) -> Self
Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.
Sourcepub fn set_key_last_usage(self, input: Option<KeyLastUsageData>) -> Self
pub fn set_key_last_usage(self, input: Option<KeyLastUsageData>) -> Self
Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.
Sourcepub fn get_key_last_usage(&self) -> &Option<KeyLastUsageData>
pub fn get_key_last_usage(&self) -> &Option<KeyLastUsageData>
Contains usage information about the last time the KMS key was used for a successful cryptographic operation. If the key has not been used since tracking began, this response element is empty.
Sourcepub fn tracking_start_date(self, input: DateTime) -> Self
pub fn tracking_start_date(self, input: DateTime) -> Self
The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.
Sourcepub fn set_tracking_start_date(self, input: Option<DateTime>) -> Self
pub fn set_tracking_start_date(self, input: Option<DateTime>) -> Self
The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.
Sourcepub fn get_tracking_start_date(&self) -> &Option<DateTime>
pub fn get_tracking_start_date(&self) -> &Option<DateTime>
The date from which KMS began recording cryptographic activity for this key, or the date the KMS key was created, whichever is later.
Sourcepub fn key_creation_date(self, input: DateTime) -> Self
pub fn key_creation_date(self, input: DateTime) -> Self
The date and time when the KMS key was created.
Sourcepub fn set_key_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_key_creation_date(self, input: Option<DateTime>) -> Self
The date and time when the KMS key was created.
Sourcepub fn get_key_creation_date(&self) -> &Option<DateTime>
pub fn get_key_creation_date(&self) -> &Option<DateTime>
The date and time when the KMS key was created.
Sourcepub fn build(self) -> GetKeyLastUsageOutput
pub fn build(self) -> GetKeyLastUsageOutput
Consumes the builder and constructs a GetKeyLastUsageOutput.
Trait Implementations§
Source§impl Clone for GetKeyLastUsageOutputBuilder
impl Clone for GetKeyLastUsageOutputBuilder
Source§fn clone(&self) -> GetKeyLastUsageOutputBuilder
fn clone(&self) -> GetKeyLastUsageOutputBuilder
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 GetKeyLastUsageOutputBuilder
impl Debug for GetKeyLastUsageOutputBuilder
Source§impl Default for GetKeyLastUsageOutputBuilder
impl Default for GetKeyLastUsageOutputBuilder
Source§fn default() -> GetKeyLastUsageOutputBuilder
fn default() -> GetKeyLastUsageOutputBuilder
impl StructuralPartialEq for GetKeyLastUsageOutputBuilder
Auto Trait Implementations§
impl Freeze for GetKeyLastUsageOutputBuilder
impl RefUnwindSafe for GetKeyLastUsageOutputBuilder
impl Send for GetKeyLastUsageOutputBuilder
impl Sync for GetKeyLastUsageOutputBuilder
impl Unpin for GetKeyLastUsageOutputBuilder
impl UnsafeUnpin for GetKeyLastUsageOutputBuilder
impl UnwindSafe for GetKeyLastUsageOutputBuilder
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