AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyClusterSnapshotRequest.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 CopyClusterSnapshotRequest();
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 "CopyClusterSnapshot"; }
32
33 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
34
35
37
41 inline bool GetCopyTags() const{ return m_copyTags; }
42 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
43 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
44 inline CopyClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
46
48
67 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
68 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
69 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
70 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
71 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
72 inline CopyClusterSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
73 inline CopyClusterSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
74 inline CopyClusterSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
76
78
82 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
83 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
84 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
85 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
86 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
87 inline CopyClusterSnapshotRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
88 inline CopyClusterSnapshotRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
89 inline CopyClusterSnapshotRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
91
93
96 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
99 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CopyClusterSnapshotRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
102 inline CopyClusterSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
103 inline CopyClusterSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
104 inline CopyClusterSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
105 inline CopyClusterSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
106 inline CopyClusterSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
107 inline CopyClusterSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline CopyClusterSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
110
112
120 inline const Aws::String& GetTargetSnapshotName() const{ return m_targetSnapshotName; }
121 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
122 inline void SetTargetSnapshotName(const Aws::String& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
123 inline void SetTargetSnapshotName(Aws::String&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = std::move(value); }
124 inline void SetTargetSnapshotName(const char* value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName.assign(value); }
126 inline CopyClusterSnapshotRequest& WithTargetSnapshotName(Aws::String&& value) { SetTargetSnapshotName(std::move(value)); return *this;}
127 inline CopyClusterSnapshotRequest& WithTargetSnapshotName(const char* value) { SetTargetSnapshotName(value); return *this;}
129 private:
130
131 bool m_copyTags;
132 bool m_copyTagsHasBeenSet = false;
133
134 Aws::String m_kmsKeyId;
135 bool m_kmsKeyIdHasBeenSet = false;
136
137 Aws::String m_snapshotArn;
138 bool m_snapshotArnHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142
143 Aws::String m_targetSnapshotName;
144 bool m_targetSnapshotNameHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DocDBElastic
149} // namespace Aws
CopyClusterSnapshotRequest & AddTags(Aws::String &&key, const Aws::String &value)
CopyClusterSnapshotRequest & WithTargetSnapshotName(const Aws::String &value)
CopyClusterSnapshotRequest & AddTags(const char *key, Aws::String &&value)
CopyClusterSnapshotRequest & WithKmsKeyId(const char *value)
CopyClusterSnapshotRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CopyClusterSnapshotRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CopyClusterSnapshotRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CopyClusterSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CopyClusterSnapshotRequest & WithKmsKeyId(const Aws::String &value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
CopyClusterSnapshotRequest & WithTargetSnapshotName(Aws::String &&value)
CopyClusterSnapshotRequest & WithSnapshotArn(const Aws::String &value)
CopyClusterSnapshotRequest & WithTargetSnapshotName(const char *value)
CopyClusterSnapshotRequest & AddTags(const Aws::String &key, Aws::String &&value)
CopyClusterSnapshotRequest & AddTags(Aws::String &&key, Aws::String &&value)
CopyClusterSnapshotRequest & AddTags(Aws::String &&key, const char *value)
CopyClusterSnapshotRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CopyClusterSnapshotRequest & WithSnapshotArn(Aws::String &&value)
CopyClusterSnapshotRequest & WithSnapshotArn(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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