AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CopySnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API CopySnapshotRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CopySnapshot"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetSourceSnapshotName() const { return m_sourceSnapshotName; }
40 inline bool SourceSnapshotNameHasBeenSet() const { return m_sourceSnapshotNameHasBeenSet; }
41 template <typename SourceSnapshotNameT = Aws::String>
42 void SetSourceSnapshotName(SourceSnapshotNameT&& value) {
43 m_sourceSnapshotNameHasBeenSet = true;
44 m_sourceSnapshotName = std::forward<SourceSnapshotNameT>(value);
45 }
46 template <typename SourceSnapshotNameT = Aws::String>
47 CopySnapshotRequest& WithSourceSnapshotName(SourceSnapshotNameT&& value) {
48 SetSourceSnapshotName(std::forward<SourceSnapshotNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetTargetSnapshotName() const { return m_targetSnapshotName; }
60 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
61 template <typename TargetSnapshotNameT = Aws::String>
62 void SetTargetSnapshotName(TargetSnapshotNameT&& value) {
63 m_targetSnapshotNameHasBeenSet = true;
64 m_targetSnapshotName = std::forward<TargetSnapshotNameT>(value);
65 }
66 template <typename TargetSnapshotNameT = Aws::String>
67 CopySnapshotRequest& WithTargetSnapshotName(TargetSnapshotNameT&& value) {
68 SetTargetSnapshotName(std::forward<TargetSnapshotNameT>(value));
69 return *this;
70 }
72
74
82 inline const Aws::String& GetTargetBucket() const { return m_targetBucket; }
83 inline bool TargetBucketHasBeenSet() const { return m_targetBucketHasBeenSet; }
84 template <typename TargetBucketT = Aws::String>
85 void SetTargetBucket(TargetBucketT&& value) {
86 m_targetBucketHasBeenSet = true;
87 m_targetBucket = std::forward<TargetBucketT>(value);
88 }
89 template <typename TargetBucketT = Aws::String>
90 CopySnapshotRequest& WithTargetBucket(TargetBucketT&& value) {
91 SetTargetBucket(std::forward<TargetBucketT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
101 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
102 template <typename KmsKeyIdT = Aws::String>
103 void SetKmsKeyId(KmsKeyIdT&& value) {
104 m_kmsKeyIdHasBeenSet = true;
105 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
106 }
107 template <typename KmsKeyIdT = Aws::String>
108 CopySnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) {
109 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Vector<Tag>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsT = Tag>
132 CopySnapshotRequest& AddTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace_back(std::forward<TagsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_sourceSnapshotName;
140
141 Aws::String m_targetSnapshotName;
142
143 Aws::String m_targetBucket;
144
145 Aws::String m_kmsKeyId;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_sourceSnapshotNameHasBeenSet = false;
149 bool m_targetSnapshotNameHasBeenSet = false;
150 bool m_targetBucketHasBeenSet = false;
151 bool m_kmsKeyIdHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace MemoryDB
157} // namespace Aws
const Aws::String & GetTargetSnapshotName() const
CopySnapshotRequest & WithTags(TagsT &&value)
CopySnapshotRequest & WithTargetBucket(TargetBucketT &&value)
virtual const char * GetServiceRequestName() const override
CopySnapshotRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CopySnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_MEMORYDB_API CopySnapshotRequest()=default
AWS_MEMORYDB_API Aws::String SerializePayload() const override
void SetSourceSnapshotName(SourceSnapshotNameT &&value)
CopySnapshotRequest & WithTargetSnapshotName(TargetSnapshotNameT &&value)
void SetTargetSnapshotName(TargetSnapshotNameT &&value)
const Aws::String & GetSourceSnapshotName() const
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopySnapshotRequest & WithSourceSnapshotName(SourceSnapshotNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector