AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CopyServerlessCacheSnapshotRequest.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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
22 public:
23 AWS_ELASTICACHE_API CopyServerlessCacheSnapshotRequest() = 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 "CopyServerlessCacheSnapshot"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::String& GetSourceServerlessCacheSnapshotName() const { return m_sourceServerlessCacheSnapshotName; }
43 inline bool SourceServerlessCacheSnapshotNameHasBeenSet() const { return m_sourceServerlessCacheSnapshotNameHasBeenSet; }
44 template <typename SourceServerlessCacheSnapshotNameT = Aws::String>
45 void SetSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT&& value) {
46 m_sourceServerlessCacheSnapshotNameHasBeenSet = true;
47 m_sourceServerlessCacheSnapshotName = std::forward<SourceServerlessCacheSnapshotNameT>(value);
48 }
49 template <typename SourceServerlessCacheSnapshotNameT = Aws::String>
51 SetSourceServerlessCacheSnapshotName(std::forward<SourceServerlessCacheSnapshotNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTargetServerlessCacheSnapshotName() const { return m_targetServerlessCacheSnapshotName; }
62 inline bool TargetServerlessCacheSnapshotNameHasBeenSet() const { return m_targetServerlessCacheSnapshotNameHasBeenSet; }
63 template <typename TargetServerlessCacheSnapshotNameT = Aws::String>
64 void SetTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT&& value) {
65 m_targetServerlessCacheSnapshotNameHasBeenSet = true;
66 m_targetServerlessCacheSnapshotName = std::forward<TargetServerlessCacheSnapshotNameT>(value);
67 }
68 template <typename TargetServerlessCacheSnapshotNameT = Aws::String>
70 SetTargetServerlessCacheSnapshotName(std::forward<TargetServerlessCacheSnapshotNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
81 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
82 template <typename KmsKeyIdT = Aws::String>
83 void SetKmsKeyId(KmsKeyIdT&& value) {
84 m_kmsKeyIdHasBeenSet = true;
85 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
86 }
87 template <typename KmsKeyIdT = Aws::String>
89 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template <typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Vector<Tag>>
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsT = Tag>
114 m_tagsHasBeenSet = true;
115 m_tags.emplace_back(std::forward<TagsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_sourceServerlessCacheSnapshotName;
121
122 Aws::String m_targetServerlessCacheSnapshotName;
123
124 Aws::String m_kmsKeyId;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_sourceServerlessCacheSnapshotNameHasBeenSet = false;
128 bool m_targetServerlessCacheSnapshotNameHasBeenSet = false;
129 bool m_kmsKeyIdHasBeenSet = false;
130 bool m_tagsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ElastiCache
135} // namespace Aws
AWS_ELASTICACHE_API CopyServerlessCacheSnapshotRequest()=default
void SetSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CopyServerlessCacheSnapshotRequest & WithTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT &&value)
void SetTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT &&value)
CopyServerlessCacheSnapshotRequest & WithSourceServerlessCacheSnapshotName(SourceServerlessCacheSnapshotNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyServerlessCacheSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector