Class Database
- java.lang.Object
-
- software.amazon.awssdk.services.timestreamwrite.model.Database
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Database.Builder,Database>
@Generated("software.amazon.awssdk:codegen") public final class Database extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Database.Builder,Database>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDatabase.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name that uniquely identifies this database.static Database.Builderbuilder()InstantcreationTime()The time when the database was created, calculated from the Unix epoch time.StringdatabaseName()The name of the Timestream database.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsKeyId()The identifier of the KMS key used to encrypt the data stored in the database.InstantlastUpdatedTime()The last time that this database was updated.List<SdkField<?>>sdkFields()static Class<? extends Database.Builder>serializableBuilderClass()LongtableCount()The total number of tables found within a Timestream database.Database.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The Amazon Resource Name that uniquely identifies this database.
- Returns:
- The Amazon Resource Name that uniquely identifies this database.
-
databaseName
public final String databaseName()
The name of the Timestream database.
- Returns:
- The name of the Timestream database.
-
tableCount
public final Long tableCount()
The total number of tables found within a Timestream database.
- Returns:
- The total number of tables found within a Timestream database.
-
kmsKeyId
public final String kmsKeyId()
The identifier of the KMS key used to encrypt the data stored in the database.
- Returns:
- The identifier of the KMS key used to encrypt the data stored in the database.
-
creationTime
public final Instant creationTime()
The time when the database was created, calculated from the Unix epoch time.
- Returns:
- The time when the database was created, calculated from the Unix epoch time.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
The last time that this database was updated.
- Returns:
- The last time that this database was updated.
-
toBuilder
public Database.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Database.Builder,Database>
-
builder
public static Database.Builder builder()
-
serializableBuilderClass
public static Class<? extends Database.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-