/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace TimestreamWrite { namespace Model { /** */ class CreateDatabaseRequest : public TimestreamWriteRequest { public: AWS_TIMESTREAMWRITE_API CreateDatabaseRequest(); // 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 "CreateDatabase"; } 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 CreateDatabaseRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name of the Timestream database.

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

The name of the Timestream database.

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

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline CreateDatabaseRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline CreateDatabaseRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The KMS key for the database. If the KMS key is not specified, the database * will be encrypted with a Timestream managed KMS key located in your account. For * more information, see Amazon * Web Services managed keys.

*/ inline CreateDatabaseRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(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 CreateDatabaseRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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

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

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

*/ inline CreateDatabaseRequest& 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 CreateDatabaseRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws