/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DocDBElastic { namespace Model { /** */ class CreateClusterSnapshotRequest : public DocDBElasticRequest { public: AWS_DOCDBELASTIC_API CreateClusterSnapshotRequest(); // 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 "CreateClusterSnapshot"; } AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override; /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline CreateClusterSnapshotRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline CreateClusterSnapshotRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The arn of the Elastic DocumentDB cluster that the snapshot will be taken * from.

*/ inline CreateClusterSnapshotRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The name of the Elastic DocumentDB snapshot.

*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *

The name of the Elastic DocumentDB snapshot.

*/ inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; } /** *

The name of the Elastic DocumentDB snapshot.

*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; } /** *

The name of the Elastic DocumentDB snapshot.

*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); } /** *

The name of the Elastic DocumentDB snapshot.

*/ inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); } /** *

The name of the Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *

The name of the Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *

The name of the Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

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

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to be assigned to the new Elastic DocumentDB snapshot.

*/ inline CreateClusterSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::String m_snapshotName; bool m_snapshotNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DocDBElastic } // namespace Aws