AWS SDK for C++  1.9.109
AWS SDK for C++
ModifyDBSnapshotRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ModifyDBSnapshot"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
43 
47  inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
48 
52  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
53 
57  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
58 
62  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
63 
67  inline ModifyDBSnapshotRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
68 
72  inline ModifyDBSnapshotRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
73 
77  inline ModifyDBSnapshotRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
78 
79 
93  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
94 
108  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
109 
123  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
124 
138  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
139 
153  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
154 
168  inline ModifyDBSnapshotRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
169 
183  inline ModifyDBSnapshotRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
184 
198  inline ModifyDBSnapshotRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
199 
200 
209  inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
210 
219  inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
220 
229  inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
230 
239  inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
240 
249  inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
250 
259  inline ModifyDBSnapshotRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
260 
269  inline ModifyDBSnapshotRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
270 
279  inline ModifyDBSnapshotRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
280 
281  private:
282 
283  Aws::String m_dBSnapshotIdentifier;
284  bool m_dBSnapshotIdentifierHasBeenSet;
285 
286  Aws::String m_engineVersion;
287  bool m_engineVersionHasBeenSet;
288 
289  Aws::String m_optionGroupName;
290  bool m_optionGroupNameHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace RDS
295 } // namespace Aws
Aws::RDS::Model::ModifyDBSnapshotRequest::ModifyDBSnapshotRequest
ModifyDBSnapshotRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ModifyDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const char *value)
Definition: ModifyDBSnapshotRequest.h:62
Aws::RDS::Model::ModifyDBSnapshotRequest::WithOptionGroupName
ModifyDBSnapshotRequest & WithOptionGroupName(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:269
Aws::RDS::Model::ModifyDBSnapshotRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotRequest & WithDBSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:72
Aws::RDS::Model::ModifyDBSnapshotRequest::WithEngineVersion
ModifyDBSnapshotRequest & WithEngineVersion(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:183
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ModifyDBSnapshotRequest::WithOptionGroupName
ModifyDBSnapshotRequest & WithOptionGroupName(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:259
Aws::RDS::Model::ModifyDBSnapshotRequest
Definition: ModifyDBSnapshotRequest.h:22
Aws::RDS::Model::ModifyDBSnapshotRequest::GetDBSnapshotIdentifier
const Aws::String & GetDBSnapshotIdentifier() const
Definition: ModifyDBSnapshotRequest.h:42
Aws::RDS::Model::ModifyDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:57
Aws::RDS::Model::ModifyDBSnapshotRequest::SetOptionGroupName
void SetOptionGroupName(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:229
Aws::RDS::Model::ModifyDBSnapshotRequest::GetOptionGroupName
const Aws::String & GetOptionGroupName() const
Definition: ModifyDBSnapshotRequest.h:209
Aws::RDS::Model::ModifyDBSnapshotRequest::GetEngineVersion
const Aws::String & GetEngineVersion() const
Definition: ModifyDBSnapshotRequest.h:93
Aws::RDS::Model::ModifyDBSnapshotRequest::DBSnapshotIdentifierHasBeenSet
bool DBSnapshotIdentifierHasBeenSet() const
Definition: ModifyDBSnapshotRequest.h:47
Aws::RDS::Model::ModifyDBSnapshotRequest::SetOptionGroupName
void SetOptionGroupName(const char *value)
Definition: ModifyDBSnapshotRequest.h:249
RDS_EXPORTS.h
Aws::RDS::Model::ModifyDBSnapshotRequest::SetEngineVersion
void SetEngineVersion(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:138
Aws::RDS::Model::ModifyDBSnapshotRequest::SetEngineVersion
void SetEngineVersion(const char *value)
Definition: ModifyDBSnapshotRequest.h:153
Aws::RDS::Model::ModifyDBSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::ModifyDBSnapshotRequest::OptionGroupNameHasBeenSet
bool OptionGroupNameHasBeenSet() const
Definition: ModifyDBSnapshotRequest.h:219
Aws::RDS::Model::ModifyDBSnapshotRequest::SetOptionGroupName
void SetOptionGroupName(Aws::String &&value)
Definition: ModifyDBSnapshotRequest.h:239
AWSString.h
Aws::RDS::Model::ModifyDBSnapshotRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotRequest & WithDBSnapshotIdentifier(const char *value)
Definition: ModifyDBSnapshotRequest.h:77
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ModifyDBSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDBSnapshotRequest.h:30
Aws::RDS::Model::ModifyDBSnapshotRequest::SetEngineVersion
void SetEngineVersion(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:123
Aws::RDS::Model::ModifyDBSnapshotRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotRequest & WithDBSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:67
Aws::RDS::Model::ModifyDBSnapshotRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ModifyDBSnapshotRequest::WithEngineVersion
ModifyDBSnapshotRequest & WithEngineVersion(const Aws::String &value)
Definition: ModifyDBSnapshotRequest.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ModifyDBSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ModifyDBSnapshotRequest::WithEngineVersion
ModifyDBSnapshotRequest & WithEngineVersion(const char *value)
Definition: ModifyDBSnapshotRequest.h:198
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ModifyDBSnapshotRequest::EngineVersionHasBeenSet
bool EngineVersionHasBeenSet() const
Definition: ModifyDBSnapshotRequest.h:108
Aws::RDS::Model::ModifyDBSnapshotRequest::WithOptionGroupName
ModifyDBSnapshotRequest & WithOptionGroupName(const char *value)
Definition: ModifyDBSnapshotRequest.h:279