/** * 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 namespace Aws { namespace TimestreamWrite { namespace Model { /** */ class UpdateTableRequest : public TimestreamWriteRequest { public: AWS_TIMESTREAMWRITE_API UpdateTableRequest(); // 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 "UpdateTable"; } 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 UpdateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name of the Timestream database.

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

The name of the Timestream database.

*/ inline UpdateTableRequest& 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 UpdateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the Timestream table.

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

The name of the Timestream table.

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

The retention duration of the memory store and the magnetic store.

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

The retention duration of the memory store and the magnetic store.

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

The retention duration of the memory store and the magnetic store.

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

The retention duration of the memory store and the magnetic store.

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

The retention duration of the memory store and the magnetic store.

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

The retention duration of the memory store and the magnetic store.

*/ inline UpdateTableRequest& WithRetentionProperties(RetentionProperties&& value) { SetRetentionProperties(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 UpdateTableRequest& WithMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { SetMagneticStoreWriteProperties(value); return *this;} /** *

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

*/ inline UpdateTableRequest& 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 UpdateTableRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;} /** *

The schema of the table.

*/ inline UpdateTableRequest& 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; MagneticStoreWriteProperties m_magneticStoreWriteProperties; bool m_magneticStoreWritePropertiesHasBeenSet = false; Schema m_schema; bool m_schemaHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws