AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
CopyClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/DocDBElasticRequest.h>
10#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DocDBElastic {
16namespace Model {
17
21 public:
22 AWS_DOCDBELASTIC_API CopyClusterSnapshotRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CopyClusterSnapshot"; }
29
30 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
31
33
37 inline bool GetCopyTags() const { return m_copyTags; }
38 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
39 inline void SetCopyTags(bool value) {
40 m_copyTagsHasBeenSet = true;
41 m_copyTags = value;
42 }
44 SetCopyTags(value);
45 return *this;
46 }
48
50
69 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
70 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
71 template <typename KmsKeyIdT = Aws::String>
72 void SetKmsKeyId(KmsKeyIdT&& value) {
73 m_kmsKeyIdHasBeenSet = true;
74 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
75 }
76 template <typename KmsKeyIdT = Aws::String>
78 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
89 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
90 template <typename SnapshotArnT = Aws::String>
91 void SetSnapshotArn(SnapshotArnT&& value) {
92 m_snapshotArnHasBeenSet = true;
93 m_snapshotArn = std::forward<SnapshotArnT>(value);
94 }
95 template <typename SnapshotArnT = Aws::String>
97 SetSnapshotArn(std::forward<SnapshotArnT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CopyClusterSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
122 return *this;
123 }
125
127
135 inline const Aws::String& GetTargetSnapshotName() const { return m_targetSnapshotName; }
136 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
137 template <typename TargetSnapshotNameT = Aws::String>
138 void SetTargetSnapshotName(TargetSnapshotNameT&& value) {
139 m_targetSnapshotNameHasBeenSet = true;
140 m_targetSnapshotName = std::forward<TargetSnapshotNameT>(value);
141 }
142 template <typename TargetSnapshotNameT = Aws::String>
144 SetTargetSnapshotName(std::forward<TargetSnapshotNameT>(value));
145 return *this;
146 }
148 private:
149 bool m_copyTags{false};
150
151 Aws::String m_kmsKeyId;
152
153 Aws::String m_snapshotArn;
154
156
157 Aws::String m_targetSnapshotName;
158 bool m_copyTagsHasBeenSet = false;
159 bool m_kmsKeyIdHasBeenSet = false;
160 bool m_snapshotArnHasBeenSet = false;
161 bool m_tagsHasBeenSet = false;
162 bool m_targetSnapshotNameHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace DocDBElastic
167} // 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