AWS SDK for C++  1.9.40
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 
52  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
53 
62  inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
63 
72  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
73 
82  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
83 
92  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
93 
102  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
103 
112  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
113 
122  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
123 
124 
128  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
129 
133  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
134 
138  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
139 
143  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
144 
148  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
149 
153  inline CreateClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
154 
158  inline CreateClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
159 
163  inline CreateClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
164 
165 
171  inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
172 
178  inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
179 
185  inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
186 
192  inline CreateClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
193 
194 
198  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
199 
203  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 
208  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
209 
213  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 
218  inline CreateClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
219 
223  inline CreateClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
224 
228  inline CreateClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
229 
233  inline CreateClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_snapshotIdentifier;
238  bool m_snapshotIdentifierHasBeenSet;
239 
240  Aws::String m_clusterIdentifier;
241  bool m_clusterIdentifierHasBeenSet;
242 
243  int m_manualSnapshotRetentionPeriod;
244  bool m_manualSnapshotRetentionPeriodHasBeenSet;
245 
246  Aws::Vector<Tag> m_tags;
247  bool m_tagsHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace Redshift
252 } // namespace Aws
Aws::Redshift::Model::CreateClusterSnapshotRequest::SnapshotIdentifierHasBeenSet
bool SnapshotIdentifierHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:62
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithClusterIdentifier
CreateClusterSnapshotRequest & WithClusterIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:163
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:148
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:143
Aws::Redshift::Model::CreateClusterSnapshotRequest::AddTags
CreateClusterSnapshotRequest & AddTags(Tag &&value)
Definition: CreateClusterSnapshotRequest.h:233
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:112
Tag.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateClusterSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:203
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithTags
CreateClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSnapshotRequest.h:223
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:92
RedshiftRequest.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:72
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:213
Aws::Redshift::Model::CreateClusterSnapshotRequest::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: CreateClusterSnapshotRequest.h:178
Aws::Redshift::Model::CreateClusterSnapshotRequest::CreateClusterSnapshotRequest
CreateClusterSnapshotRequest()
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: CreateClusterSnapshotRequest.h:171
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:52
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterSnapshotRequest.h:198
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithManualSnapshotRetentionPeriod
CreateClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
Definition: CreateClusterSnapshotRequest.h:192
AWSString.h
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSnapshotRequest.h:208
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:138
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithTags
CreateClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSnapshotRequest.h:218
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
Definition: CreateClusterSnapshotRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateClusterSnapshotRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: CreateClusterSnapshotRequest.h:128
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:133
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetSnapshotIdentifier
void SetSnapshotIdentifier(Aws::String &&value)
Definition: CreateClusterSnapshotRequest.h:82
Aws::Redshift::Model::CreateClusterSnapshotRequest::AddTags
CreateClusterSnapshotRequest & AddTags(const Tag &value)
Definition: CreateClusterSnapshotRequest.h:228
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithSnapshotIdentifier
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:102
Aws::Redshift::Model::CreateClusterSnapshotRequest::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: CreateClusterSnapshotRequest.h:185
Aws::Redshift::Model::CreateClusterSnapshotRequest::WithClusterIdentifier
CreateClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
Definition: CreateClusterSnapshotRequest.h:153
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:158