@Generated(value="software.amazon.awssdk:codegen") public final class DescribeLedgerResponse extends QldbResponse implements ToCopyableBuilder<DescribeLedgerResponse.Builder,DescribeLedgerResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeLedgerResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) for the ledger.
|
static DescribeLedgerResponse.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.
|
LedgerEncryptionDescription |
encryptionDescription()
Information about the encryption of data at rest in the ledger.
|
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.
|
PermissionsMode |
permissionsMode()
The permissions mode of the ledger.
|
String |
permissionsModeAsString()
The permissions mode of the ledger.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeLedgerResponse.Builder> |
serializableBuilderClass() |
LedgerState |
state()
The current status of the ledger.
|
String |
stateAsString()
The current status of the ledger.
|
DescribeLedgerResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the ledger.
public final String arn()
The Amazon Resource Name (ARN) for the ledger.
public final 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 final 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 final 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 final PermissionsMode permissionsMode()
The permissions mode of the ledger.
If the service returns an enum value that is not available in the current SDK version, permissionsMode
will return PermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from permissionsModeAsString().
PermissionsModepublic final String permissionsModeAsString()
The permissions mode of the ledger.
If the service returns an enum value that is not available in the current SDK version, permissionsMode
will return PermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from permissionsModeAsString().
PermissionsModepublic final 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. You can disable it
by calling the UpdateLedger operation to set the flag to false.
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 the flag to false.
public final LedgerEncryptionDescription encryptionDescription()
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).
public DescribeLedgerResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeLedgerResponse.Builder,DescribeLedgerResponse>toBuilder in class AwsResponsepublic static DescribeLedgerResponse.Builder builder()
public static Class<? extends DescribeLedgerResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.