Class DescribeLedgerResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.qldb.model.QldbResponse
-
- software.amazon.awssdk.services.qldb.model.DescribeLedgerResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeLedgerResponse.Builder,DescribeLedgerResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeLedgerResponse extends QldbResponse implements ToCopyableBuilder<DescribeLedgerResponse.Builder,DescribeLedgerResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeLedgerResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) for the ledger.static DescribeLedgerResponse.Builderbuilder()InstantcreationDateTime()The date and time, in epoch time format, when the ledger was created.BooleandeletionProtection()Specifies whether the ledger is protected from being deleted by any user.LedgerEncryptionDescriptionencryptionDescription()Information about the encryption of data at rest in the ledger.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the ledger.PermissionsModepermissionsMode()The permissions mode of the ledger.StringpermissionsModeAsString()The permissions mode of the ledger.List<SdkField<?>>sdkFields()static Class<? extends DescribeLedgerResponse.Builder>serializableBuilderClass()LedgerStatestate()The current status of the ledger.StringstateAsString()The current status of the ledger.DescribeLedgerResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.qldb.model.QldbResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the ledger.
- Returns:
- The name of the ledger.
-
arn
public final String arn()
The Amazon Resource Name (ARN) for the ledger.
- Returns:
- The Amazon Resource Name (ARN) for the ledger.
-
state
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,
statewill returnLedgerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current status of the ledger.
- See Also:
LedgerState
-
stateAsString
public 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,
statewill returnLedgerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current status of the ledger.
- See Also:
LedgerState
-
creationDateTime
public 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.)
- Returns:
- 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.)
-
permissionsMode
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,
permissionsModewill returnPermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionsModeAsString().- Returns:
- The permissions mode of the ledger.
- See Also:
PermissionsMode
-
permissionsModeAsString
public 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,
permissionsModewill returnPermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionsModeAsString().- Returns:
- The permissions mode of the ledger.
- See Also:
PermissionsMode
-
deletionProtection
public final Boolean deletionProtection()
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
UpdateLedgeroperation to set this parameter tofalse.- Returns:
- 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
UpdateLedgeroperation to set this parameter tofalse.
-
encryptionDescription
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). If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
- Returns:
- 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). If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
-
toBuilder
public DescribeLedgerResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeLedgerResponse.Builder,DescribeLedgerResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeLedgerResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeLedgerResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-