AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopySnapshotRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICACHE_API CopySnapshotRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CopySnapshot"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetSourceSnapshotName() const{ return m_sourceSnapshotName; }
50 inline bool SourceSnapshotNameHasBeenSet() const { return m_sourceSnapshotNameHasBeenSet; }
51 inline void SetSourceSnapshotName(const Aws::String& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = value; }
52 inline void SetSourceSnapshotName(Aws::String&& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = std::move(value); }
53 inline void SetSourceSnapshotName(const char* value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName.assign(value); }
54 inline CopySnapshotRequest& WithSourceSnapshotName(const Aws::String& value) { SetSourceSnapshotName(value); return *this;}
55 inline CopySnapshotRequest& WithSourceSnapshotName(Aws::String&& value) { SetSourceSnapshotName(std::move(value)); return *this;}
56 inline CopySnapshotRequest& WithSourceSnapshotName(const char* value) { SetSourceSnapshotName(value); return *this;}
58
60
65 inline const Aws::String& GetTargetSnapshotName() const{ return m_targetSnapshotName; }
66 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
67 inline void SetTargetSnapshotName(const Aws::String& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
68 inline void SetTargetSnapshotName(Aws::String&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = std::move(value); }
69 inline void SetTargetSnapshotName(const char* value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName.assign(value); }
70 inline CopySnapshotRequest& WithTargetSnapshotName(const Aws::String& value) { SetTargetSnapshotName(value); return *this;}
71 inline CopySnapshotRequest& WithTargetSnapshotName(Aws::String&& value) { SetTargetSnapshotName(std::move(value)); return *this;}
72 inline CopySnapshotRequest& WithTargetSnapshotName(const char* value) { SetTargetSnapshotName(value); return *this;}
74
76
87 inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; }
88 inline bool TargetBucketHasBeenSet() const { return m_targetBucketHasBeenSet; }
89 inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
90 inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = std::move(value); }
91 inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); }
92 inline CopySnapshotRequest& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;}
93 inline CopySnapshotRequest& WithTargetBucket(Aws::String&& value) { SetTargetBucket(std::move(value)); return *this;}
94 inline CopySnapshotRequest& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;}
96
98
101 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
102 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
103 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
104 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
105 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
106 inline CopySnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
107 inline CopySnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
108 inline CopySnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
110
112
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CopySnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CopySnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CopySnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CopySnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_sourceSnapshotName;
128 bool m_sourceSnapshotNameHasBeenSet = false;
129
130 Aws::String m_targetSnapshotName;
131 bool m_targetSnapshotNameHasBeenSet = false;
132
133 Aws::String m_targetBucket;
134 bool m_targetBucketHasBeenSet = false;
135
136 Aws::String m_kmsKeyId;
137 bool m_kmsKeyIdHasBeenSet = false;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_tagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace ElastiCache
145} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
void SetSourceSnapshotName(const Aws::String &value)
CopySnapshotRequest & WithTargetBucket(Aws::String &&value)
CopySnapshotRequest & WithKmsKeyId(const char *value)
CopySnapshotRequest & WithTargetBucket(const Aws::String &value)
CopySnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CopySnapshotRequest & WithKmsKeyId(Aws::String &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopySnapshotRequest & WithKmsKeyId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CopySnapshotRequest & WithTargetBucket(const char *value)
CopySnapshotRequest & WithTargetSnapshotName(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CopySnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CopySnapshotRequest & AddTags(const Tag &value)
CopySnapshotRequest & AddTags(Tag &&value)
CopySnapshotRequest & WithSourceSnapshotName(const char *value)
CopySnapshotRequest & WithTargetSnapshotName(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotName(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotName(const Aws::String &value)
CopySnapshotRequest & WithTargetSnapshotName(const Aws::String &value)
void SetTargetBucket(const Aws::String &value)
void SetTargetSnapshotName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector