AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateSnapshotRequest.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 CreateSnapshotRequest() = 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 "CreateSnapshot"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetClusterName() const { return m_clusterName; }
40 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
41 template <typename ClusterNameT = Aws::String>
42 void SetClusterName(ClusterNameT&& value) {
43 m_clusterNameHasBeenSet = true;
44 m_clusterName = std::forward<ClusterNameT>(value);
45 }
46 template <typename ClusterNameT = Aws::String>
47 CreateSnapshotRequest& WithClusterName(ClusterNameT&& value) {
48 SetClusterName(std::forward<ClusterNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
58 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
59 template <typename SnapshotNameT = Aws::String>
60 void SetSnapshotName(SnapshotNameT&& value) {
61 m_snapshotNameHasBeenSet = true;
62 m_snapshotName = std::forward<SnapshotNameT>(value);
63 }
64 template <typename SnapshotNameT = Aws::String>
65 CreateSnapshotRequest& WithSnapshotName(SnapshotNameT&& value) {
66 SetSnapshotName(std::forward<SnapshotNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
76 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
77 template <typename KmsKeyIdT = Aws::String>
78 void SetKmsKeyId(KmsKeyIdT&& value) {
79 m_kmsKeyIdHasBeenSet = true;
80 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
81 }
82 template <typename KmsKeyIdT = Aws::String>
83 CreateSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) {
84 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template <typename TagsT = Aws::Vector<Tag>>
97 void SetTags(TagsT&& value) {
98 m_tagsHasBeenSet = true;
99 m_tags = std::forward<TagsT>(value);
100 }
101 template <typename TagsT = Aws::Vector<Tag>>
103 SetTags(std::forward<TagsT>(value));
104 return *this;
105 }
106 template <typename TagsT = Tag>
108 m_tagsHasBeenSet = true;
109 m_tags.emplace_back(std::forward<TagsT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_clusterName;
115
116 Aws::String m_snapshotName;
117
118 Aws::String m_kmsKeyId;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_clusterNameHasBeenSet = false;
122 bool m_snapshotNameHasBeenSet = false;
123 bool m_kmsKeyIdHasBeenSet = false;
124 bool m_tagsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace MemoryDB
129} // namespace Aws
CreateSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
CreateSnapshotRequest & WithClusterName(ClusterNameT &&value)
CreateSnapshotRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateSnapshotRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API CreateSnapshotRequest()=default
AWS_MEMORYDB_API Aws::String SerializePayload() const override
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