AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
62 inline const Aws::String& GetTargetServerlessCacheSnapshotName() const { return m_targetServerlessCacheSnapshotName; }
63 inline bool TargetServerlessCacheSnapshotNameHasBeenSet() const { return m_targetServerlessCacheSnapshotNameHasBeenSet; }
64 template <typename TargetServerlessCacheSnapshotNameT = Aws::String>
65 void SetTargetServerlessCacheSnapshotName(TargetServerlessCacheSnapshotNameT&& value) {
66 m_targetServerlessCacheSnapshotNameHasBeenSet = true;
67 m_targetServerlessCacheSnapshotName = std::forward<TargetServerlessCacheSnapshotNameT>(value);
68 }
69 template <typename TargetServerlessCacheSnapshotNameT = Aws::String>
71 SetTargetServerlessCacheSnapshotName(std::forward<TargetServerlessCacheSnapshotNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
82 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
83 template <typename KmsKeyIdT = Aws::String>
84 void SetKmsKeyId(KmsKeyIdT&& value) {
85 m_kmsKeyIdHasBeenSet = true;
86 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
87 }
88 template <typename KmsKeyIdT = Aws::String>
90 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Vector<Tag>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsT = Tag>
115 m_tagsHasBeenSet = true;
116 m_tags.emplace_back(std::forward<TagsT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_sourceServerlessCacheSnapshotName;
122
123 Aws::String m_targetServerlessCacheSnapshotName;
124
125 Aws::String m_kmsKeyId;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_sourceServerlessCacheSnapshotNameHasBeenSet = false;
129 bool m_targetServerlessCacheSnapshotNameHasBeenSet = false;
130 bool m_kmsKeyIdHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ElastiCache
136} // 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