AWS SDK for C++  1.9.108
AWS SDK for C++
CreateDBSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
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 "CreateDBSnapshot"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
51  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
52 
60  inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
61 
69  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
70 
78  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
79 
87  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
88 
96  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
97 
105  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
106 
114  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
115 
116 
122  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
123 
129  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
130 
136  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
137 
143  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
144 
150  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
151 
157  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
158 
164  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
165 
171  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
172 
173 
174 
175  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
176 
177 
178  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 
180 
181  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 
183 
184  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
185 
186 
187  inline CreateDBSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
188 
189 
190  inline CreateDBSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
191 
192 
193  inline CreateDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 
195 
196  inline CreateDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
197 
198  private:
199 
200  Aws::String m_dBSnapshotIdentifier;
201  bool m_dBSnapshotIdentifierHasBeenSet;
202 
203  Aws::String m_dBInstanceIdentifier;
204  bool m_dBInstanceIdentifierHasBeenSet;
205 
206  Aws::Vector<Tag> m_tags;
207  bool m_tagsHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace RDS
212 } // namespace Aws
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBSnapshotRequest.h:69
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBSnapshotIdentifier
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBSnapshotRequest.h:105
Aws::RDS::Model::CreateDBSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBSnapshotRequest.h:178
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(Aws::String &&value)
Definition: CreateDBSnapshotRequest.h:78
Aws::RDS::Model::CreateDBSnapshotRequest::WithTags
CreateDBSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSnapshotRequest.h:190
Aws::RDS::Model::CreateDBSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBSnapshotRequest.h:184
Aws::RDS::Model::CreateDBSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBSnapshotRequest.h:175
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBInstanceIdentifier
CreateDBSnapshotRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: CreateDBSnapshotRequest.h:164
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: CreateDBSnapshotRequest.h:150
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBInstanceIdentifier
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const char *value)
Definition: CreateDBSnapshotRequest.h:171
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBSnapshotIdentifier
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const char *value)
Definition: CreateDBSnapshotRequest.h:114
AWSVector.h
Aws::RDS::Model::CreateDBSnapshotRequest::WithTags
CreateDBSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSnapshotRequest.h:187
Aws::RDS::Model::CreateDBSnapshotRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: CreateDBSnapshotRequest.h:129
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBSnapshotIdentifier
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const Aws::String &value)
Definition: CreateDBSnapshotRequest.h:96
RDS_EXPORTS.h
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const char *value)
Definition: CreateDBSnapshotRequest.h:87
Aws::RDS::Model::CreateDBSnapshotRequest
Definition: CreateDBSnapshotRequest.h:27
Aws::RDS::Model::CreateDBSnapshotRequest::WithDBInstanceIdentifier
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: CreateDBSnapshotRequest.h:157
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: CreateDBSnapshotRequest.h:143
AWSString.h
Aws::RDS::Model::CreateDBSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBSnapshotRequest.h:35
Aws::RDS::Model::CreateDBSnapshotRequest::DBSnapshotIdentifierHasBeenSet
bool DBSnapshotIdentifierHasBeenSet() const
Definition: CreateDBSnapshotRequest.h:60
Aws::RDS::Model::CreateDBSnapshotRequest::AddTags
CreateDBSnapshotRequest & AddTags(const Tag &value)
Definition: CreateDBSnapshotRequest.h:193
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateDBSnapshotRequest::AddTags
CreateDBSnapshotRequest & AddTags(Tag &&value)
Definition: CreateDBSnapshotRequest.h:196
Aws::RDS::Model::CreateDBSnapshotRequest::CreateDBSnapshotRequest
CreateDBSnapshotRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateDBSnapshotRequest::GetDBSnapshotIdentifier
const Aws::String & GetDBSnapshotIdentifier() const
Definition: CreateDBSnapshotRequest.h:51
Aws::RDS::Model::CreateDBSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBSnapshotRequest.h:181
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CreateDBSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
RDSRequest.h
Aws::RDS::Model::CreateDBSnapshotRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: CreateDBSnapshotRequest.h:122
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateDBSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CreateDBSnapshotRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: CreateDBSnapshotRequest.h:136