AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateServerlessCacheSnapshotRequest.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 CreateServerlessCacheSnapshotRequest() = 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 "CreateServerlessCacheSnapshot"; }
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
43 inline const Aws::String& GetServerlessCacheSnapshotName() const { return m_serverlessCacheSnapshotName; }
44 inline bool ServerlessCacheSnapshotNameHasBeenSet() const { return m_serverlessCacheSnapshotNameHasBeenSet; }
45 template <typename ServerlessCacheSnapshotNameT = Aws::String>
46 void SetServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) {
47 m_serverlessCacheSnapshotNameHasBeenSet = true;
48 m_serverlessCacheSnapshotName = std::forward<ServerlessCacheSnapshotNameT>(value);
49 }
50 template <typename ServerlessCacheSnapshotNameT = Aws::String>
52 SetServerlessCacheSnapshotName(std::forward<ServerlessCacheSnapshotNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
63 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
64 template <typename ServerlessCacheNameT = Aws::String>
65 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
66 m_serverlessCacheNameHasBeenSet = true;
67 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
68 }
69 template <typename ServerlessCacheNameT = Aws::String>
71 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(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
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_serverlessCacheSnapshotName;
121
122 Aws::String m_serverlessCacheName;
123
124 Aws::String m_kmsKeyId;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
128 bool m_serverlessCacheNameHasBeenSet = 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 Aws::String SerializePayload() const override
CreateServerlessCacheSnapshotRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateServerlessCacheSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_ELASTICACHE_API CreateServerlessCacheSnapshotRequest()=default
CreateServerlessCacheSnapshotRequest & WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector