AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
44 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
45 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
46 inline CreateClusterSnapshotRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
47 inline CreateClusterSnapshotRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
48 inline CreateClusterSnapshotRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
50
52
55 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
56 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
57 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
58 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
59 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
60 inline CreateClusterSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
61 inline CreateClusterSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
62 inline CreateClusterSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
64
66
69 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
70 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
71 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
72 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateClusterSnapshotRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
75 inline CreateClusterSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
76 inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
77 inline CreateClusterSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
78 inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
79 inline CreateClusterSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
80 inline CreateClusterSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
81 inline CreateClusterSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
83 private:
84
85 Aws::String m_clusterArn;
86 bool m_clusterArnHasBeenSet = false;
87
88 Aws::String m_snapshotName;
89 bool m_snapshotNameHasBeenSet = false;
90
92 bool m_tagsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace DocDBElastic
97} // namespace Aws
CreateClusterSnapshotRequest & WithSnapshotName(Aws::String &&value)
CreateClusterSnapshotRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterSnapshotRequest & AddTags(const char *key, const char *value)
CreateClusterSnapshotRequest & WithClusterArn(const char *value)
CreateClusterSnapshotRequest & AddTags(const char *key, Aws::String &&value)
CreateClusterSnapshotRequest & WithSnapshotName(const char *value)
CreateClusterSnapshotRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
CreateClusterSnapshotRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterSnapshotRequest & WithClusterArn(const Aws::String &value)
CreateClusterSnapshotRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterSnapshotRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterSnapshotRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateClusterSnapshotRequest & WithClusterArn(Aws::String &&value)
CreateClusterSnapshotRequest & WithSnapshotName(const Aws::String &value)
CreateClusterSnapshotRequest & AddTags(Aws::String &&key, const char *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