#[non_exhaustive]pub struct UpdateLedgerOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateLedgerOutput
.
Implementations§
source§impl UpdateLedgerOutputBuilder
impl UpdateLedgerOutputBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the ledger.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the ledger.
sourcepub fn state(self, input: LedgerState) -> Self
pub fn state(self, input: LedgerState) -> Self
The current status of the ledger.
sourcepub fn set_state(self, input: Option<LedgerState>) -> Self
pub fn set_state(self, input: Option<LedgerState>) -> Self
The current status of the ledger.
sourcepub fn get_state(&self) -> &Option<LedgerState>
pub fn get_state(&self) -> &Option<LedgerState>
The current status of the ledger.
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
sourcepub fn get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
sourcepub fn deletion_protection(self, input: bool) -> Self
pub fn deletion_protection(self, input: bool) -> Self
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
sourcepub fn set_deletion_protection(self, input: Option<bool>) -> Self
pub fn set_deletion_protection(self, input: Option<bool>) -> Self
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
sourcepub fn get_deletion_protection(&self) -> &Option<bool>
pub fn get_deletion_protection(&self) -> &Option<bool>
Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set this parameter to false
.
sourcepub fn encryption_description(self, input: LedgerEncryptionDescription) -> Self
pub fn encryption_description(self, input: LedgerEncryptionDescription) -> Self
Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).
sourcepub fn set_encryption_description(
self,
input: Option<LedgerEncryptionDescription>
) -> Self
pub fn set_encryption_description( self, input: Option<LedgerEncryptionDescription> ) -> Self
Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).
sourcepub fn get_encryption_description(&self) -> &Option<LedgerEncryptionDescription>
pub fn get_encryption_description(&self) -> &Option<LedgerEncryptionDescription>
Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).
sourcepub fn build(self) -> UpdateLedgerOutput
pub fn build(self) -> UpdateLedgerOutput
Consumes the builder and constructs a UpdateLedgerOutput
.
Trait Implementations§
source§impl Clone for UpdateLedgerOutputBuilder
impl Clone for UpdateLedgerOutputBuilder
source§fn clone(&self) -> UpdateLedgerOutputBuilder
fn clone(&self) -> UpdateLedgerOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateLedgerOutputBuilder
impl Debug for UpdateLedgerOutputBuilder
source§impl Default for UpdateLedgerOutputBuilder
impl Default for UpdateLedgerOutputBuilder
source§fn default() -> UpdateLedgerOutputBuilder
fn default() -> UpdateLedgerOutputBuilder
source§impl PartialEq for UpdateLedgerOutputBuilder
impl PartialEq for UpdateLedgerOutputBuilder
source§fn eq(&self, other: &UpdateLedgerOutputBuilder) -> bool
fn eq(&self, other: &UpdateLedgerOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLedgerOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateLedgerOutputBuilder
impl RefUnwindSafe for UpdateLedgerOutputBuilder
impl Send for UpdateLedgerOutputBuilder
impl Sync for UpdateLedgerOutputBuilder
impl Unpin for UpdateLedgerOutputBuilder
impl UnwindSafe for UpdateLedgerOutputBuilder
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