Struct aws_sdk_kms::operation::schedule_key_deletion::builders::ScheduleKeyDeletionOutputBuilder
source · #[non_exhaustive]pub struct ScheduleKeyDeletionOutputBuilder { /* private fields */ }
Expand description
A builder for ScheduleKeyDeletionOutput
.
Implementations§
source§impl ScheduleKeyDeletionOutputBuilder
impl ScheduleKeyDeletionOutputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key whose deletion is scheduled.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key whose deletion is scheduled.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The Amazon Resource Name (key ARN) of the KMS key whose deletion is scheduled.
sourcepub fn deletion_date(self, input: DateTime) -> Self
pub fn deletion_date(self, input: DateTime) -> Self
The date and time after which KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion date for the primary key isn't known until its last replica key is deleted.
sourcepub fn set_deletion_date(self, input: Option<DateTime>) -> Self
pub fn set_deletion_date(self, input: Option<DateTime>) -> Self
The date and time after which KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion date for the primary key isn't known until its last replica key is deleted.
sourcepub fn get_deletion_date(&self) -> &Option<DateTime>
pub fn get_deletion_date(&self) -> &Option<DateTime>
The date and time after which KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, this field does not appear. The deletion date for the primary key isn't known until its last replica key is deleted.
sourcepub fn key_state(self, input: KeyState) -> Self
pub fn key_state(self, input: KeyState) -> Self
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
sourcepub fn set_key_state(self, input: Option<KeyState>) -> Self
pub fn set_key_state(self, input: Option<KeyState>) -> Self
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
sourcepub fn get_key_state(&self) -> &Option<KeyState>
pub fn get_key_state(&self) -> &Option<KeyState>
The current status of the KMS key.
For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.
sourcepub fn pending_window_in_days(self, input: i32) -> Self
pub fn pending_window_in_days(self, input: i32) -> Self
The waiting period before the KMS key is deleted.
If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
sourcepub fn set_pending_window_in_days(self, input: Option<i32>) -> Self
pub fn set_pending_window_in_days(self, input: Option<i32>) -> Self
The waiting period before the KMS key is deleted.
If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
sourcepub fn get_pending_window_in_days(&self) -> &Option<i32>
pub fn get_pending_window_in_days(&self) -> &Option<i32>
The waiting period before the KMS key is deleted.
If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
sourcepub fn build(self) -> ScheduleKeyDeletionOutput
pub fn build(self) -> ScheduleKeyDeletionOutput
Consumes the builder and constructs a ScheduleKeyDeletionOutput
.
Trait Implementations§
source§impl Clone for ScheduleKeyDeletionOutputBuilder
impl Clone for ScheduleKeyDeletionOutputBuilder
source§fn clone(&self) -> ScheduleKeyDeletionOutputBuilder
fn clone(&self) -> ScheduleKeyDeletionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScheduleKeyDeletionOutputBuilder
impl Default for ScheduleKeyDeletionOutputBuilder
source§fn default() -> ScheduleKeyDeletionOutputBuilder
fn default() -> ScheduleKeyDeletionOutputBuilder
source§impl PartialEq for ScheduleKeyDeletionOutputBuilder
impl PartialEq for ScheduleKeyDeletionOutputBuilder
source§fn eq(&self, other: &ScheduleKeyDeletionOutputBuilder) -> bool
fn eq(&self, other: &ScheduleKeyDeletionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.