/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace TimestreamWrite { namespace Model { /** */ class CreateTableRequest : public TimestreamWriteRequest { public: AWS_TIMESTREAMWRITE_API CreateTableRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; } AWS_TIMESTREAMWRITE_API Aws::String SerializePayload() const override; AWS_TIMESTREAMWRITE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the Timestream database.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The name of the Timestream database.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The name of the Timestream database.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The name of the Timestream database.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The name of the Timestream database.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The name of the Timestream database.

*/ inline CreateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name of the Timestream database.

*/ inline CreateTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The name of the Timestream database.

*/ inline CreateTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

The name of the Timestream table.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the Timestream table.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the Timestream table.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the Timestream table.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the Timestream table.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the Timestream table.

*/ inline CreateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the Timestream table.

*/ inline CreateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the Timestream table.

*/ inline CreateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline const RetentionProperties& GetRetentionProperties() const{ return m_retentionProperties; } /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; } /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline void SetRetentionProperties(const RetentionProperties& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = value; } /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline void SetRetentionProperties(RetentionProperties&& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = std::move(value); } /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline CreateTableRequest& WithRetentionProperties(const RetentionProperties& value) { SetRetentionProperties(value); return *this;} /** *

The duration for which your time-series data must be stored in the memory * store and the magnetic store.

*/ inline CreateTableRequest& WithRetentionProperties(RetentionProperties&& value) { SetRetentionProperties(std::move(value)); return *this;} /** *

A list of key-value pairs to label the table.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of key-value pairs to label the table.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of key-value pairs to label the table.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of key-value pairs to label the table.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of key-value pairs to label the table.

*/ inline CreateTableRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of key-value pairs to label the table.

*/ inline CreateTableRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of key-value pairs to label the table.

*/ inline CreateTableRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of key-value pairs to label the table.

*/ inline CreateTableRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const{ return m_magneticStoreWriteProperties; } /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; } /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = value; } /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties&& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = std::move(value); } /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline CreateTableRequest& WithMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { SetMagneticStoreWriteProperties(value); return *this;} /** *

Contains properties to set on the table when enabling magnetic store * writes.

*/ inline CreateTableRequest& WithMagneticStoreWriteProperties(MagneticStoreWriteProperties&& value) { SetMagneticStoreWriteProperties(std::move(value)); return *this;} /** *

The schema of the table.

*/ inline const Schema& GetSchema() const{ return m_schema; } /** *

The schema of the table.

*/ inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; } /** *

The schema of the table.

*/ inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; } /** *

The schema of the table.

*/ inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); } /** *

The schema of the table.

*/ inline CreateTableRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;} /** *

The schema of the table.

*/ inline CreateTableRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;} private: Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; RetentionProperties m_retentionProperties; bool m_retentionPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; MagneticStoreWriteProperties m_magneticStoreWriteProperties; bool m_magneticStoreWritePropertiesHasBeenSet = false; Schema m_schema; bool m_schemaHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws