public static interface CreateLedgerResponse.Builder extends QldbResponse.Builder, SdkPojo, CopyableBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>
Modifier and Type | Method and Description |
---|---|
CreateLedgerResponse.Builder |
arn(String arn)
The Amazon Resource Name (ARN) for the ledger.
|
CreateLedgerResponse.Builder |
creationDateTime(Instant creationDateTime)
The date and time, in epoch time format, when the ledger was created.
|
CreateLedgerResponse.Builder |
deletionProtection(Boolean deletionProtection)
The flag that prevents a ledger from being deleted by any user.
|
CreateLedgerResponse.Builder |
name(String name)
The name of the ledger.
|
CreateLedgerResponse.Builder |
state(LedgerState state)
The current status of the ledger.
|
CreateLedgerResponse.Builder |
state(String state)
The current status of the ledger.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateLedgerResponse.Builder name(String name)
The name of the ledger.
name
- The name of the ledger.CreateLedgerResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) for the ledger.
arn
- The Amazon Resource Name (ARN) for the ledger.CreateLedgerResponse.Builder state(String state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
,
LedgerState
CreateLedgerResponse.Builder state(LedgerState state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
,
LedgerState
CreateLedgerResponse.Builder creationDateTime(Instant creationDateTime)
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.)
creationDateTime
- 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.)CreateLedgerResponse.Builder deletionProtection(Boolean deletionProtection)
The flag that prevents a ledger from being deleted by any user. If not provided on 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 using the QLDB
API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger
operation to set the flag to false
. The QLDB console disables deletion protection for you when
you use it to delete a ledger.
deletionProtection
- The flag that prevents a ledger from being deleted by any user. If not provided on 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 using
the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the
UpdateLedger
operation to set the flag to false
. The QLDB console disables
deletion protection for you when you use it to delete a ledger.