AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
CreateClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/DocDBElasticRequest.h>
10#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DocDBElastic {
16namespace Model {
17
21 public:
22 AWS_DOCDBELASTIC_API CreateClusterSnapshotRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSnapshot"; }
29
30 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
38 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
39 template <typename ClusterArnT = Aws::String>
40 void SetClusterArn(ClusterArnT&& value) {
41 m_clusterArnHasBeenSet = true;
42 m_clusterArn = std::forward<ClusterArnT>(value);
43 }
44 template <typename ClusterArnT = Aws::String>
46 SetClusterArn(std::forward<ClusterArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
56 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
57 template <typename SnapshotNameT = Aws::String>
58 void SetSnapshotName(SnapshotNameT&& value) {
59 m_snapshotNameHasBeenSet = true;
60 m_snapshotName = std::forward<SnapshotNameT>(value);
61 }
62 template <typename SnapshotNameT = Aws::String>
64 SetSnapshotName(std::forward<SnapshotNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags = std::forward<TagsT>(value);
79 }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 SetTags(std::forward<TagsT>(value));
83 return *this;
84 }
85 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateClusterSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_clusterArn;
94
95 Aws::String m_snapshotName;
96
98 bool m_clusterArnHasBeenSet = false;
99 bool m_snapshotNameHasBeenSet = false;
100 bool m_tagsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace DocDBElastic
105} // namespace Aws
AWS_DOCDBELASTIC_API CreateClusterSnapshotRequest()=default
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
CreateClusterSnapshotRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterSnapshotRequest & WithClusterArn(ClusterArnT &&value)
CreateClusterSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
CreateClusterSnapshotRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String