@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Database extends Object implements Serializable, Cloneable, StructuredPojo
A top level container for a table. Databases and tables are the fundamental management concepts in Amazon Timestream. All tables in a database are encrypted with the same KMS key.
Constructor and Description |
---|
Database() |
Modifier and Type | Method and Description |
---|---|
Database |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name that uniquely identifies this database.
|
Date |
getCreationTime()
The time when the database was created, calculated from the Unix epoch time.
|
String |
getDatabaseName()
The name of the Timestream database.
|
String |
getKmsKeyId()
The identifier of the KMS key used to encrypt the data stored in the database.
|
Date |
getLastUpdatedTime()
The last time that this database was updated.
|
Long |
getTableCount()
The total number of tables found within a Timestream database.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name that uniquely identifies this database.
|
void |
setCreationTime(Date creationTime)
The time when the database was created, calculated from the Unix epoch time.
|
void |
setDatabaseName(String databaseName)
The name of the Timestream database.
|
void |
setKmsKeyId(String kmsKeyId)
The identifier of the KMS key used to encrypt the data stored in the database.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The last time that this database was updated.
|
void |
setTableCount(Long tableCount)
The total number of tables found within a Timestream database.
|
String |
toString()
Returns a string representation of this object.
|
Database |
withArn(String arn)
The Amazon Resource Name that uniquely identifies this database.
|
Database |
withCreationTime(Date creationTime)
The time when the database was created, calculated from the Unix epoch time.
|
Database |
withDatabaseName(String databaseName)
The name of the Timestream database.
|
Database |
withKmsKeyId(String kmsKeyId)
The identifier of the KMS key used to encrypt the data stored in the database.
|
Database |
withLastUpdatedTime(Date lastUpdatedTime)
The last time that this database was updated.
|
Database |
withTableCount(Long tableCount)
The total number of tables found within a Timestream database.
|
public void setArn(String arn)
The Amazon Resource Name that uniquely identifies this database.
arn
- The Amazon Resource Name that uniquely identifies this database.public String getArn()
The Amazon Resource Name that uniquely identifies this database.
public Database withArn(String arn)
The Amazon Resource Name that uniquely identifies this database.
arn
- The Amazon Resource Name that uniquely identifies this database.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 Database withDatabaseName(String databaseName)
The name of the Timestream database.
databaseName
- The name of the Timestream database.public void setTableCount(Long tableCount)
The total number of tables found within a Timestream database.
tableCount
- The total number of tables found within a Timestream database.public Long getTableCount()
The total number of tables found within a Timestream database.
public Database withTableCount(Long tableCount)
The total number of tables found within a Timestream database.
tableCount
- The total number of tables found within a Timestream database.public void setKmsKeyId(String kmsKeyId)
The identifier of the KMS key used to encrypt the data stored in the database.
kmsKeyId
- The identifier of the KMS key used to encrypt the data stored in the database.public String getKmsKeyId()
The identifier of the KMS key used to encrypt the data stored in the database.
public Database withKmsKeyId(String kmsKeyId)
The identifier of the KMS key used to encrypt the data stored in the database.
kmsKeyId
- The identifier of the KMS key used to encrypt the data stored in the database.public void setCreationTime(Date creationTime)
The time when the database was created, calculated from the Unix epoch time.
creationTime
- The time when the database was created, calculated from the Unix epoch time.public Date getCreationTime()
The time when the database was created, calculated from the Unix epoch time.
public Database withCreationTime(Date creationTime)
The time when the database was created, calculated from the Unix epoch time.
creationTime
- The time when the database was created, calculated from the Unix epoch time.public void setLastUpdatedTime(Date lastUpdatedTime)
The last time that this database was updated.
lastUpdatedTime
- The last time that this database was updated.public Date getLastUpdatedTime()
The last time that this database was updated.
public Database withLastUpdatedTime(Date lastUpdatedTime)
The last time that this database was updated.
lastUpdatedTime
- The last time that this database was updated.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.