/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the timestream-write-2018-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.TimestreamWrite.Model { /// /// 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. /// public partial class Database { private string _arn; private DateTime? _creationTime; private string _databaseName; private string _kmsKeyId; private DateTime? _lastUpdatedTime; private long? _tableCount; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name that uniquely identifies this database. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreationTime. /// /// The time when the database was created, calculated from the Unix epoch time. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property DatabaseName. /// /// The name of the Timestream database. /// /// public string DatabaseName { get { return this._databaseName; } set { this._databaseName = value; } } // Check to see if DatabaseName property is set internal bool IsSetDatabaseName() { return this._databaseName != null; } /// /// Gets and sets the property KmsKeyId. /// /// The identifier of the KMS key used to encrypt the data stored in the database. /// /// [AWSProperty(Min=1, Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property LastUpdatedTime. /// /// The last time that this database was updated. /// /// public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// /// Gets and sets the property TableCount. /// /// The total number of tables found within a Timestream database. /// /// public long TableCount { get { return this._tableCount.GetValueOrDefault(); } set { this._tableCount = value; } } // Check to see if TableCount property is set internal bool IsSetTableCount() { return this._tableCount.HasValue; } } }