@Generated(value="software.amazon.awssdk:codegen") public final class CreateLedgerResponse extends QldbResponse implements ToCopyableBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateLedgerResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) for the ledger.
|
static CreateLedgerResponse.Builder |
builder() |
Instant |
creationDateTime()
The date and time, in epoch time format, when the ledger was created.
|
Boolean |
deletionProtection()
The flag that prevents a ledger from being deleted by any user.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the ledger.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateLedgerResponse.Builder> |
serializableBuilderClass() |
LedgerState |
state()
The current status of the ledger.
|
String |
stateAsString()
The current status of the ledger.
|
CreateLedgerResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name of the ledger.
public String arn()
The Amazon Resource Name (ARN) for the ledger.
public LedgerState state()
The current status of the ledger.
If the service returns an enum value that is not available in the current SDK version, state will return
LedgerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
LedgerStatepublic String stateAsString()
The current status of the ledger.
If the service returns an enum value that is not available in the current SDK version, state will return
LedgerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
LedgerStatepublic 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.)
public 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.
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.
public CreateLedgerResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateLedgerResponse.Builder,CreateLedgerResponse>toBuilder in class AwsResponsepublic static CreateLedgerResponse.Builder builder()
public static Class<? extends CreateLedgerResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2020. All rights reserved.