AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CopyClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/docdb-elastic/DocDBElasticRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DocDBElastic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DOCDBELASTIC_API CopyClusterSnapshotRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CopyClusterSnapshot"; }
32
33 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
34
35
37
41 inline bool GetCopyTags() const { return m_copyTags; }
42 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
43 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
44 inline CopyClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
46
48
67 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
68 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
69 template<typename KmsKeyIdT = Aws::String>
70 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
71 template<typename KmsKeyIdT = Aws::String>
72 CopyClusterSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
74
76
80 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
81 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
82 template<typename SnapshotArnT = Aws::String>
83 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
84 template<typename SnapshotArnT = Aws::String>
85 CopyClusterSnapshotRequest& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 CopyClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CopyClusterSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
101 }
103
105
113 inline const Aws::String& GetTargetSnapshotName() const { return m_targetSnapshotName; }
114 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
115 template<typename TargetSnapshotNameT = Aws::String>
116 void SetTargetSnapshotName(TargetSnapshotNameT&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = std::forward<TargetSnapshotNameT>(value); }
117 template<typename TargetSnapshotNameT = Aws::String>
118 CopyClusterSnapshotRequest& WithTargetSnapshotName(TargetSnapshotNameT&& value) { SetTargetSnapshotName(std::forward<TargetSnapshotNameT>(value)); return *this;}
120 private:
121
122 bool m_copyTags{false};
123 bool m_copyTagsHasBeenSet = false;
124
125 Aws::String m_kmsKeyId;
126 bool m_kmsKeyIdHasBeenSet = false;
127
128 Aws::String m_snapshotArn;
129 bool m_snapshotArnHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133
134 Aws::String m_targetSnapshotName;
135 bool m_targetSnapshotNameHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace DocDBElastic
140} // namespace Aws
CopyClusterSnapshotRequest & WithSnapshotArn(SnapshotArnT &&value)
CopyClusterSnapshotRequest & WithTags(TagsT &&value)
AWS_DOCDBELASTIC_API CopyClusterSnapshotRequest()=default
CopyClusterSnapshotRequest & WithTargetSnapshotName(TargetSnapshotNameT &&value)
CopyClusterSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
CopyClusterSnapshotRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String