@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLedgerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateLedgerRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateLedgerRequest | addTagsEntry(String key,
            String value)Add a single Tags entry | 
| CreateLedgerRequest | clearTagsEntries()Removes all the entries added into Tags. | 
| CreateLedgerRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| Boolean | getDeletionProtection()
 The flag that prevents a ledger from being deleted by any user. | 
| String | getName()
 The name of the ledger that you want to create. | 
| String | getPermissionsMode()
 The permissions mode to assign to the ledger that you want to create. | 
| Map<String,String> | getTags()
 The key-value pairs to add as tags to the ledger that you want to create. | 
| int | hashCode() | 
| Boolean | isDeletionProtection()
 The flag that prevents a ledger from being deleted by any user. | 
| void | setDeletionProtection(Boolean deletionProtection)
 The flag that prevents a ledger from being deleted by any user. | 
| void | setName(String name)
 The name of the ledger that you want to create. | 
| void | setPermissionsMode(String permissionsMode)
 The permissions mode to assign to the ledger that you want to create. | 
| void | setTags(Map<String,String> tags)
 The key-value pairs to add as tags to the ledger that you want to create. | 
| String | toString()Returns a string representation of this object. | 
| CreateLedgerRequest | withDeletionProtection(Boolean deletionProtection)
 The flag that prevents a ledger from being deleted by any user. | 
| CreateLedgerRequest | withName(String name)
 The name of the ledger that you want to create. | 
| CreateLedgerRequest | withPermissionsMode(PermissionsMode permissionsMode)
 The permissions mode to assign to the ledger that you want to create. | 
| CreateLedgerRequest | withPermissionsMode(String permissionsMode)
 The permissions mode to assign to the ledger that you want to create. | 
| CreateLedgerRequest | withTags(Map<String,String> tags)
 The key-value pairs to add as tags to the ledger that you want to create. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setName(String name)
The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
name - The name of the ledger that you want to create. The name must be unique among all of your ledgers in the
        current AWS Region.
        Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
public String getName()
The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
public CreateLedgerRequest withName(String name)
The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
name - The name of the ledger that you want to create. The name must be unique among all of your ledgers in the
        current AWS Region.
        Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
public Map<String,String> getTags()
The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.
public void setTags(Map<String,String> tags)
The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.
tags - The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag
        values are case sensitive and can be null.public CreateLedgerRequest withTags(Map<String,String> tags)
The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.
tags - The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag
        values are case sensitive and can be null.public CreateLedgerRequest addTagsEntry(String key, String value)
public CreateLedgerRequest clearTagsEntries()
public void setPermissionsMode(String permissionsMode)
The permissions mode to assign to the ledger that you want to create.
permissionsMode - The permissions mode to assign to the ledger that you want to create.PermissionsModepublic String getPermissionsMode()
The permissions mode to assign to the ledger that you want to create.
PermissionsModepublic CreateLedgerRequest withPermissionsMode(String permissionsMode)
The permissions mode to assign to the ledger that you want to create.
permissionsMode - The permissions mode to assign to the ledger that you want to create.PermissionsModepublic CreateLedgerRequest withPermissionsMode(PermissionsMode permissionsMode)
The permissions mode to assign to the ledger that you want to create.
permissionsMode - The permissions mode to assign to the ledger that you want to create.PermissionsModepublic 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 using the QLDB API
 or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger
 operation to set the flag to false. The QLDB console disables deletion protection for you when you
 use it to delete a ledger.
 
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 using the
        QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the
        UpdateLedger operation to set the flag to false. The QLDB console disables
        deletion protection for you when you use it to delete a ledger.
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 using the QLDB API
 or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger
 operation to set the flag to false. The QLDB console disables deletion protection for you when you
 use it to delete a ledger.
 
true) by default.
         
         If deletion protection is enabled, you must first disable it before you can delete the ledger using the
         QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the
         UpdateLedger operation to set the flag to false. The QLDB console disables
         deletion protection for you when you use it to delete a ledger.
public CreateLedgerRequest 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 using the QLDB API
 or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger
 operation to set the flag to false. The QLDB console disables deletion protection for you when you
 use it to delete a ledger.
 
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 using the
        QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the
        UpdateLedger operation to set the flag to false. The QLDB console disables
        deletion protection for you when you use it to delete a ledger.
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 using the QLDB API
 or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger
 operation to set the flag to false. The QLDB console disables deletion protection for you when you
 use it to delete a ledger.
 
true) by default.
         
         If deletion protection is enabled, you must first disable it before you can delete the ledger using the
         QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the
         UpdateLedger operation to set the flag to false. The QLDB console disables
         deletion protection for you when you use it to delete a ledger.
public String toString()
toString in class ObjectObject.toString()public CreateLedgerRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()