@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeLedgerResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeLedgerResult() |
Modifier and Type | Method and Description |
---|---|
DescribeLedgerResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) for the ledger.
|
Date |
getCreationDateTime()
The date and time, in epoch time format, when the ledger was created.
|
Boolean |
getDeletionProtection()
The flag that prevents a ledger from being deleted by any user.
|
LedgerEncryptionDescription |
getEncryptionDescription()
Information about the encryption of data at rest in the ledger.
|
String |
getName()
The name of the ledger.
|
String |
getPermissionsMode()
The permissions mode of the ledger.
|
String |
getState()
The current status of the ledger.
|
int |
hashCode() |
Boolean |
isDeletionProtection()
The flag that prevents a ledger from being deleted by any user.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
|
void |
setCreationDateTime(Date creationDateTime)
The date and time, in epoch time format, when the ledger was created.
|
void |
setDeletionProtection(Boolean deletionProtection)
The flag that prevents a ledger from being deleted by any user.
|
void |
setEncryptionDescription(LedgerEncryptionDescription encryptionDescription)
Information about the encryption of data at rest in the ledger.
|
void |
setName(String name)
The name of the ledger.
|
void |
setPermissionsMode(String permissionsMode)
The permissions mode of the ledger.
|
void |
setState(String state)
The current status of the ledger.
|
String |
toString()
Returns a string representation of this object.
|
DescribeLedgerResult |
withArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
|
DescribeLedgerResult |
withCreationDateTime(Date creationDateTime)
The date and time, in epoch time format, when the ledger was created.
|
DescribeLedgerResult |
withDeletionProtection(Boolean deletionProtection)
The flag that prevents a ledger from being deleted by any user.
|
DescribeLedgerResult |
withEncryptionDescription(LedgerEncryptionDescription encryptionDescription)
Information about the encryption of data at rest in the ledger.
|
DescribeLedgerResult |
withName(String name)
The name of the ledger.
|
DescribeLedgerResult |
withPermissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger.
|
DescribeLedgerResult |
withPermissionsMode(String permissionsMode)
The permissions mode of the ledger.
|
DescribeLedgerResult |
withState(LedgerState state)
The current status of the ledger.
|
DescribeLedgerResult |
withState(String state)
The current status of the ledger.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setName(String name)
The name of the ledger.
name
- The name of the ledger.public String getName()
The name of the ledger.
public DescribeLedgerResult withName(String name)
The name of the ledger.
name
- The name of the ledger.public void setArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
arn
- The Amazon Resource Name (ARN) for the ledger.public String getArn()
The Amazon Resource Name (ARN) for the ledger.
public DescribeLedgerResult withArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
arn
- The Amazon Resource Name (ARN) for the ledger.public void setState(String state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
public String getState()
The current status of the ledger.
LedgerState
public DescribeLedgerResult withState(String state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
public DescribeLedgerResult withState(LedgerState state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
public void setCreationDateTime(Date 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.)public Date getCreationDateTime()
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 DescribeLedgerResult withCreationDateTime(Date 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.)public void setPermissionsMode(String permissionsMode)
The permissions mode of the ledger.
permissionsMode
- The permissions mode of the ledger.PermissionsMode
public String getPermissionsMode()
The permissions mode of the ledger.
PermissionsMode
public DescribeLedgerResult withPermissionsMode(String permissionsMode)
The permissions mode of the ledger.
permissionsMode
- The permissions mode of the ledger.PermissionsMode
public DescribeLedgerResult withPermissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger.
permissionsMode
- The permissions mode of the ledger.PermissionsMode
public void setDeletionProtection(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
.
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
.
public Boolean getDeletionProtection()
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 DescribeLedgerResult withDeletionProtection(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
.
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
.
public Boolean isDeletionProtection()
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 void setEncryptionDescription(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).
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 LedgerEncryptionDescription getEncryptionDescription()
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 DescribeLedgerResult withEncryptionDescription(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).
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 String toString()
toString
in class Object
Object.toString()
public DescribeLedgerResult clone()