@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLedgerResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateLedgerResult() |
Modifier and Type | Method and Description |
---|---|
CreateLedgerResult |
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.
|
String |
getKmsKeyArn()
The ARN of the customer managed KMS key that the ledger uses for encryption at rest.
|
String |
getName()
The name of the ledger.
|
String |
getPermissionsMode()
The permissions mode of the ledger that you created.
|
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 |
setKmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest.
|
void |
setName(String name)
The name of the ledger.
|
void |
setPermissionsMode(String permissionsMode)
The permissions mode of the ledger that you created.
|
void |
setState(String state)
The current status of the ledger.
|
String |
toString()
Returns a string representation of this object.
|
CreateLedgerResult |
withArn(String arn)
The Amazon Resource Name (ARN) for the ledger.
|
CreateLedgerResult |
withCreationDateTime(Date creationDateTime)
The date and time, in epoch time format, when the ledger was created.
|
CreateLedgerResult |
withDeletionProtection(Boolean deletionProtection)
The flag that prevents a ledger from being deleted by any user.
|
CreateLedgerResult |
withKmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest.
|
CreateLedgerResult |
withName(String name)
The name of the ledger.
|
CreateLedgerResult |
withPermissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger that you created.
|
CreateLedgerResult |
withPermissionsMode(String permissionsMode)
The permissions mode of the ledger that you created.
|
CreateLedgerResult |
withState(LedgerState state)
The current status of the ledger.
|
CreateLedgerResult |
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 CreateLedgerResult 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 CreateLedgerResult 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 CreateLedgerResult withState(String state)
The current status of the ledger.
state
- The current status of the ledger.LedgerState
public CreateLedgerResult 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 CreateLedgerResult 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 that you created.
permissionsMode
- The permissions mode of the ledger that you created.PermissionsMode
public String getPermissionsMode()
The permissions mode of the ledger that you created.
PermissionsMode
public CreateLedgerResult withPermissionsMode(String permissionsMode)
The permissions mode of the ledger that you created.
permissionsMode
- The permissions mode of the ledger that you created.PermissionsMode
public CreateLedgerResult withPermissionsMode(PermissionsMode permissionsMode)
The permissions mode of the ledger that you created.
permissionsMode
- The permissions mode of the ledger that you created.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 CreateLedgerResult 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 setKmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
kmsKeyArn
- The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is
undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.public String getKmsKeyArn()
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
public CreateLedgerResult withKmsKeyArn(String kmsKeyArn)
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
kmsKeyArn
- The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is
undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.public String toString()
toString
in class Object
Object.toString()
public CreateLedgerResult clone()