@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDatabaseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDatabaseRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDatabaseRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDatabaseName()
The name of the Timestream database.
|
String |
getKmsKeyId()
The KMS key for the database.
|
List<Tag> |
getTags()
A list of key-value pairs to label the table.
|
int |
hashCode() |
void |
setDatabaseName(String databaseName)
The name of the Timestream database.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key for the database.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs to label the table.
|
String |
toString()
Returns a string representation of this object.
|
CreateDatabaseRequest |
withDatabaseName(String databaseName)
The name of the Timestream database.
|
CreateDatabaseRequest |
withKmsKeyId(String kmsKeyId)
The KMS key for the database.
|
CreateDatabaseRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs to label the table.
|
CreateDatabaseRequest |
withTags(Tag... tags)
A list of key-value pairs to label the table.
|
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, withSdkRequestTimeout
public void setDatabaseName(String databaseName)
The name of the Timestream database.
databaseName
- The name of the Timestream database.public String getDatabaseName()
The name of the Timestream database.
public CreateDatabaseRequest withDatabaseName(String databaseName)
The name of the Timestream database.
databaseName
- The name of the Timestream database.public void setKmsKeyId(String kmsKeyId)
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info.
kmsKeyId
- The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a
Timestream managed KMS key located in your account. Refer to Amazon Web
Services managed KMS keys for more info.public String getKmsKeyId()
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info.
public CreateDatabaseRequest withKmsKeyId(String kmsKeyId)
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info.
kmsKeyId
- The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a
Timestream managed KMS key located in your account. Refer to Amazon Web
Services managed KMS keys for more info.public List<Tag> getTags()
A list of key-value pairs to label the table.
public void setTags(Collection<Tag> tags)
A list of key-value pairs to label the table.
tags
- A list of key-value pairs to label the table.public CreateDatabaseRequest withTags(Tag... tags)
A list of key-value pairs to label the table.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key-value pairs to label the table.public CreateDatabaseRequest withTags(Collection<Tag> tags)
A list of key-value pairs to label the table.
tags
- A list of key-value pairs to label the table.public String toString()
toString
in class Object
Object.toString()
public CreateDatabaseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()