AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/docdb-elastic/DocDBElasticRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DocDBElastic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DOCDBELASTIC_API CreateClusterSnapshotRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSnapshot"; }
32
33 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
42 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
43 template<typename ClusterArnT = Aws::String>
44 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
45 template<typename ClusterArnT = Aws::String>
46 CreateClusterSnapshotRequest& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
54 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
55 template<typename SnapshotNameT = Aws::String>
56 void SetSnapshotName(SnapshotNameT&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::forward<SnapshotNameT>(value); }
57 template<typename SnapshotNameT = Aws::String>
58 CreateClusterSnapshotRequest& WithSnapshotName(SnapshotNameT&& value) { SetSnapshotName(std::forward<SnapshotNameT>(value)); return *this;}
60
62
65 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 CreateClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
71 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
72 CreateClusterSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
73 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
74 }
76 private:
77
78 Aws::String m_clusterArn;
79 bool m_clusterArnHasBeenSet = false;
80
81 Aws::String m_snapshotName;
82 bool m_snapshotNameHasBeenSet = false;
83
85 bool m_tagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace DocDBElastic
90} // 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