@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateLedgerResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
UpdateLedgerResult() |
Modifier and Type | Method and Description |
---|---|
UpdateLedgerResult |
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()
Specifies whether the ledger is protected 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 |
getState()
The current status of the ledger.
|
int |
hashCode() |
Boolean |
isDeletionProtection()
Specifies whether the ledger is protected 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)
Specifies whether the ledger is protected 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 |
setState(String state)
The current status of the ledger.
|
String |
toString()
Returns a string representation of this object.
|
UpdateLedgerResult |
withArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
|
UpdateLedgerResult |
withCreationDateTime(Date creationDateTime)
The date and time, in epoch time format, when the ledger was created.
|
UpdateLedgerResult |
withDeletionProtection(Boolean deletionProtection)
Specifies whether the ledger is protected from being deleted by any user.
|
UpdateLedgerResult |
withEncryptionDescription(LedgerEncryptionDescription encryptionDescription)
Information about the encryption of data at rest in the ledger.
|
UpdateLedgerResult |
withName(String name)
The name of the ledger.
|
UpdateLedgerResult |
withState(LedgerState state)
The current status of the ledger.
|
UpdateLedgerResult |
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 UpdateLedgerResult 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 UpdateLedgerResult 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 UpdateLedgerResult withState(String state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
public UpdateLedgerResult 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 UpdateLedgerResult 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 setDeletionProtection(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 UpdateLedger
operation to set this parameter to false
.
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 UpdateLedger
operation to set this parameter to false
.
public Boolean getDeletionProtection()
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 UpdateLedger
operation to set this parameter 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 this parameter to false
.
public UpdateLedgerResult withDeletionProtection(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 UpdateLedger
operation to set this parameter to false
.
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 UpdateLedger
operation to set this parameter to false
.
public Boolean isDeletionProtection()
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 UpdateLedger
operation to set this parameter 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 this parameter 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 UpdateLedgerResult 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 UpdateLedgerResult clone()