AWS SDK for C++  1.9.104
AWS SDK for C++
CreateClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace 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 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  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 
108  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
109 
119  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
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 
161  inline CreateClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
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 
200  inline CreateClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
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;
247 
248  Aws::String m_clusterIdentifier;
249  bool m_clusterIdentifierHasBeenSet;
250 
251  int m_manualSnapshotRetentionPeriod;
252  bool m_manualSnapshotRetentionPeriodHasBeenSet;
253 
254  Aws::Vector<Tag> m_tags;
255  bool m_tagsHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace Redshift
260 } // namespace Aws
Aws::Redshift::Model::CreateClusterSnapshotRequest::SnapshotIdentifierHasBeenSet
bool SnapshotIdentifierHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:64
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithClusterIdentifier
CreateClusterSnapshotRequest & WithClusterIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:171
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:156
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:151
Aws::Redshift::Model::CreateClusterSnapshotRequest::AddTags
CreateClusterSnapshotRequest & AddTags(Tag &&value)
Definition: CreateClusterSnapshotRequest.h:241
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:119
Tag.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateClusterSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:211
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithTags
CreateClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSnapshotRequest.h:231
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:97
RedshiftRequest.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:75
AWSVector.h
Aws::Redshift::Model::CreateClusterSnapshotRequest
Definition: CreateClusterSnapshotRequest.h:27
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClusterSnapshotRequest.h:35
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSnapshotRequest.h:221
Aws::Redshift::Model::CreateClusterSnapshotRequest::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:186
Aws::Redshift::Model::CreateClusterSnapshotRequest::CreateClusterSnapshotRequest
CreateClusterSnapshotRequest()
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: CreateClusterSnapshotRequest.h:179
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetSnapshotIdentifier
const Aws::String & GetSnapshotIdentifier() const
Definition: CreateClusterSnapshotRequest.h:53
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterSnapshotRequest.h:206
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithManualSnapshotRetentionPeriod
CreateClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
Definition: CreateClusterSnapshotRequest.h:200
AWSString.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSnapshotRequest.h:216
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:146
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithTags
CreateClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSnapshotRequest.h:226
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: CreateClusterSnapshotRequest.h:136
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateClusterSnapshotRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:141
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:86
Aws::Redshift::Model::CreateClusterSnapshotRequest::AddTags
CreateClusterSnapshotRequest & AddTags(const Tag &value)
Definition: CreateClusterSnapshotRequest.h:236
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:108
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: CreateClusterSnapshotRequest.h:193
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithClusterIdentifier
CreateClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:161
Aws::Redshift::Model::CreateClusterSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithClusterIdentifier
CreateClusterSnapshotRequest & WithClusterIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:166