#[non_exhaustive]pub struct CreateLedgerOutputBuilder { /* private fields */ }
Expand description
A builder for CreateLedgerOutput
.
Implementations§
source§impl CreateLedgerOutputBuilder
impl CreateLedgerOutputBuilder
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 permissions_mode(self, input: PermissionsMode) -> Self
pub fn permissions_mode(self, input: PermissionsMode) -> Self
The permissions mode of the ledger that you created.
sourcepub fn set_permissions_mode(self, input: Option<PermissionsMode>) -> Self
pub fn set_permissions_mode(self, input: Option<PermissionsMode>) -> Self
The permissions mode of the ledger that you created.
sourcepub fn get_permissions_mode(&self) -> &Option<PermissionsMode>
pub fn get_permissions_mode(&self) -> &Option<PermissionsMode>
The permissions mode of the ledger that you created.
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 kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
sourcepub fn build(self) -> CreateLedgerOutput
pub fn build(self) -> CreateLedgerOutput
Consumes the builder and constructs a CreateLedgerOutput
.
Trait Implementations§
source§impl Clone for CreateLedgerOutputBuilder
impl Clone for CreateLedgerOutputBuilder
source§fn clone(&self) -> CreateLedgerOutputBuilder
fn clone(&self) -> CreateLedgerOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLedgerOutputBuilder
impl Debug for CreateLedgerOutputBuilder
source§impl Default for CreateLedgerOutputBuilder
impl Default for CreateLedgerOutputBuilder
source§fn default() -> CreateLedgerOutputBuilder
fn default() -> CreateLedgerOutputBuilder
source§impl PartialEq for CreateLedgerOutputBuilder
impl PartialEq for CreateLedgerOutputBuilder
source§fn eq(&self, other: &CreateLedgerOutputBuilder) -> bool
fn eq(&self, other: &CreateLedgerOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateLedgerOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateLedgerOutputBuilder
impl RefUnwindSafe for CreateLedgerOutputBuilder
impl Send for CreateLedgerOutputBuilder
impl Sync for CreateLedgerOutputBuilder
impl Unpin for CreateLedgerOutputBuilder
impl UnwindSafe for CreateLedgerOutputBuilder
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