AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateClusterSnapshotRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSnapshot"; }
36
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
53 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
54
64 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
65
75 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
76
86 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
87
97 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
98
109
120
130 inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
131
132
136 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
137
141 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
142
146 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
147
151 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
152
156 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
157
162
166 inline CreateClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
167
171 inline CreateClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
172
173
179 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
180
186 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
187
193 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
194
201
202
206 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
207
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212
216 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
217
221 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222
226 inline CreateClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
227
231 inline CreateClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
232
236 inline CreateClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
237
241 inline CreateClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
242
243 private:
244
245 Aws::String m_snapshotIdentifier;
246 bool m_snapshotIdentifierHasBeenSet = false;
247
248 Aws::String m_clusterIdentifier;
249 bool m_clusterIdentifierHasBeenSet = false;
250
251 int m_manualSnapshotRetentionPeriod;
252 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
253
254 Aws::Vector<Tag> m_tags;
255 bool m_tagsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace Redshift
260} // namespace Aws
#define AWS_REDSHIFT_API
CreateClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & WithClusterIdentifier(const char *value)
CreateClusterSnapshotRequest & AddTags(Tag &&value)
CreateClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterSnapshotRequest & AddTags(const Tag &value)
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
CreateClusterSnapshotRequest & WithClusterIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
CreateClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector