AWS SDK for C++  1.9.108
AWS SDK for C++
ModifyDBInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DocDB
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ModifyDBInstance"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
48  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
49 
55  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
56 
62  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
63 
69  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
70 
76  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
77 
83  inline ModifyDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
84 
90  inline ModifyDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
91 
97  inline ModifyDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
98 
99 
108  inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
109 
118  inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
119 
128  inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
129 
138  inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
139 
148  inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
149 
158  inline ModifyDBInstanceRequest& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
159 
168  inline ModifyDBInstanceRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
169 
178  inline ModifyDBInstanceRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
179 
180 
189  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
190 
199  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
200 
209  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
210 
219  inline ModifyDBInstanceRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
220 
221 
235  inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
236 
250  inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
251 
265  inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
266 
280  inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
281 
295  inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
296 
310  inline ModifyDBInstanceRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
311 
325  inline ModifyDBInstanceRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
326 
340  inline ModifyDBInstanceRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
341 
342 
347  inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
348 
353  inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
354 
359  inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
360 
365  inline ModifyDBInstanceRequest& WithAutoMinorVersionUpgrade(bool value) { SetAutoMinorVersionUpgrade(value); return *this;}
366 
367 
379  inline const Aws::String& GetNewDBInstanceIdentifier() const{ return m_newDBInstanceIdentifier; }
380 
392  inline bool NewDBInstanceIdentifierHasBeenSet() const { return m_newDBInstanceIdentifierHasBeenSet; }
393 
405  inline void SetNewDBInstanceIdentifier(const Aws::String& value) { m_newDBInstanceIdentifierHasBeenSet = true; m_newDBInstanceIdentifier = value; }
406 
418  inline void SetNewDBInstanceIdentifier(Aws::String&& value) { m_newDBInstanceIdentifierHasBeenSet = true; m_newDBInstanceIdentifier = std::move(value); }
419 
431  inline void SetNewDBInstanceIdentifier(const char* value) { m_newDBInstanceIdentifierHasBeenSet = true; m_newDBInstanceIdentifier.assign(value); }
432 
444  inline ModifyDBInstanceRequest& WithNewDBInstanceIdentifier(const Aws::String& value) { SetNewDBInstanceIdentifier(value); return *this;}
445 
457  inline ModifyDBInstanceRequest& WithNewDBInstanceIdentifier(Aws::String&& value) { SetNewDBInstanceIdentifier(std::move(value)); return *this;}
458 
470  inline ModifyDBInstanceRequest& WithNewDBInstanceIdentifier(const char* value) { SetNewDBInstanceIdentifier(value); return *this;}
471 
472 
476  inline const Aws::String& GetCACertificateIdentifier() const{ return m_cACertificateIdentifier; }
477 
481  inline bool CACertificateIdentifierHasBeenSet() const { return m_cACertificateIdentifierHasBeenSet; }
482 
486  inline void SetCACertificateIdentifier(const Aws::String& value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier = value; }
487 
491  inline void SetCACertificateIdentifier(Aws::String&& value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier = std::move(value); }
492 
496  inline void SetCACertificateIdentifier(const char* value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier.assign(value); }
497 
501  inline ModifyDBInstanceRequest& WithCACertificateIdentifier(const Aws::String& value) { SetCACertificateIdentifier(value); return *this;}
502 
506  inline ModifyDBInstanceRequest& WithCACertificateIdentifier(Aws::String&& value) { SetCACertificateIdentifier(std::move(value)); return *this;}
507 
511  inline ModifyDBInstanceRequest& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;}
512 
513 
519  inline int GetPromotionTier() const{ return m_promotionTier; }
520 
526  inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
527 
533  inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
534 
540  inline ModifyDBInstanceRequest& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
541 
542  private:
543 
544  Aws::String m_dBInstanceIdentifier;
545  bool m_dBInstanceIdentifierHasBeenSet;
546 
547  Aws::String m_dBInstanceClass;
548  bool m_dBInstanceClassHasBeenSet;
549 
550  bool m_applyImmediately;
551  bool m_applyImmediatelyHasBeenSet;
552 
553  Aws::String m_preferredMaintenanceWindow;
554  bool m_preferredMaintenanceWindowHasBeenSet;
555 
556  bool m_autoMinorVersionUpgrade;
557  bool m_autoMinorVersionUpgradeHasBeenSet;
558 
559  Aws::String m_newDBInstanceIdentifier;
560  bool m_newDBInstanceIdentifierHasBeenSet;
561 
562  Aws::String m_cACertificateIdentifier;
563  bool m_cACertificateIdentifierHasBeenSet;
564 
565  int m_promotionTier;
566  bool m_promotionTierHasBeenSet;
567  };
568 
569 } // namespace Model
570 } // namespace DocDB
571 } // namespace Aws
Aws::DocDB::Model::ModifyDBInstanceRequest::WithNewDBInstanceIdentifier
ModifyDBInstanceRequest & WithNewDBInstanceIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:444
Aws::Http::URI
Definition: URI.h:32
Aws::DocDB::Model::ModifyDBInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::DocDB::Model::ModifyDBInstanceRequest::GetCACertificateIdentifier
const Aws::String & GetCACertificateIdentifier() const
Definition: ModifyDBInstanceRequest.h:476
Aws::DocDB::Model::ModifyDBInstanceRequest::SetApplyImmediately
void SetApplyImmediately(bool value)
Definition: ModifyDBInstanceRequest.h:209
Aws::DocDB::Model::ModifyDBInstanceRequest::SetNewDBInstanceIdentifier
void SetNewDBInstanceIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:418
Aws::DocDB::Model::ModifyDBInstanceRequest::ModifyDBInstanceRequest
ModifyDBInstanceRequest()
Aws::DocDB::Model::ModifyDBInstanceRequest::WithAutoMinorVersionUpgrade
ModifyDBInstanceRequest & WithAutoMinorVersionUpgrade(bool value)
Definition: ModifyDBInstanceRequest.h:365
Aws::DocDB::Model::ModifyDBInstanceRequest::GetApplyImmediately
bool GetApplyImmediately() const
Definition: ModifyDBInstanceRequest.h:189
Aws::DocDB::Model::ModifyDBInstanceRequest::WithCACertificateIdentifier
ModifyDBInstanceRequest & WithCACertificateIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:506
DocDBRequest.h
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceClass
void SetDBInstanceClass(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:128
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceClass
ModifyDBInstanceRequest & WithDBInstanceClass(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:158
Aws::DocDB::Model::ModifyDBInstanceRequest::SetPreferredMaintenanceWindow
void SetPreferredMaintenanceWindow(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:265
Aws::DocDB::Model::ModifyDBInstanceRequest::WithPromotionTier
ModifyDBInstanceRequest & WithPromotionTier(int value)
Definition: ModifyDBInstanceRequest.h:540
Aws::DocDB::Model::ModifyDBInstanceRequest::PromotionTierHasBeenSet
bool PromotionTierHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:526
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceClass
ModifyDBInstanceRequest & WithDBInstanceClass(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:168
Aws::DocDB::Model::ModifyDBInstanceRequest::SetCACertificateIdentifier
void SetCACertificateIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:486
Aws::DocDB::Model::ModifyDBInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DocDB::Model::ModifyDBInstanceRequest::SetPromotionTier
void SetPromotionTier(int value)
Definition: ModifyDBInstanceRequest.h:533
Aws::DocDB::Model::ModifyDBInstanceRequest::WithNewDBInstanceIdentifier
ModifyDBInstanceRequest & WithNewDBInstanceIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:457
Aws::DocDB::Model::ModifyDBInstanceRequest::SetNewDBInstanceIdentifier
void SetNewDBInstanceIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:405
Aws::DocDB::Model::ModifyDBInstanceRequest::GetPromotionTier
int GetPromotionTier() const
Definition: ModifyDBInstanceRequest.h:519
Aws::DocDB::Model::ModifyDBInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDBInstanceRequest.h:34
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceClass
void SetDBInstanceClass(const char *value)
Definition: ModifyDBInstanceRequest.h:148
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceClass
ModifyDBInstanceRequest & WithDBInstanceClass(const char *value)
Definition: ModifyDBInstanceRequest.h:178
Aws::DocDB::Model::ModifyDBInstanceRequest::AutoMinorVersionUpgradeHasBeenSet
bool AutoMinorVersionUpgradeHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:353
AWS_DOCDB_API
#define AWS_DOCDB_API
Definition: DocDB_EXPORTS.h:28
Aws::DocDB::Model::ModifyDBInstanceRequest::GetAutoMinorVersionUpgrade
bool GetAutoMinorVersionUpgrade() const
Definition: ModifyDBInstanceRequest.h:347
Aws::DocDB::Model::ModifyDBInstanceRequest::SetCACertificateIdentifier
void SetCACertificateIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:491
Aws::DocDB::Model::ModifyDBInstanceRequest::SetPreferredMaintenanceWindow
void SetPreferredMaintenanceWindow(const char *value)
Definition: ModifyDBInstanceRequest.h:295
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:69
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceIdentifier
ModifyDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:97
Aws::DocDB::Model::ModifyDBInstanceRequest::GetDBInstanceClass
const Aws::String & GetDBInstanceClass() const
Definition: ModifyDBInstanceRequest.h:108
Aws::DocDB::Model::ModifyDBInstanceRequest::SetNewDBInstanceIdentifier
void SetNewDBInstanceIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:431
Aws::DocDB::Model::ModifyDBInstanceRequest::WithCACertificateIdentifier
ModifyDBInstanceRequest & WithCACertificateIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:511
Aws::DocDB::Model::ModifyDBInstanceRequest::SetAutoMinorVersionUpgrade
void SetAutoMinorVersionUpgrade(bool value)
Definition: ModifyDBInstanceRequest.h:359
AWSString.h
DocDB_EXPORTS.h
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceIdentifier
ModifyDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:90
Aws::DocDB::Model::ModifyDBInstanceRequest::SetPreferredMaintenanceWindow
void SetPreferredMaintenanceWindow(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:280
Aws::DocDB::Model::ModifyDBInstanceRequest::WithNewDBInstanceIdentifier
ModifyDBInstanceRequest & WithNewDBInstanceIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:470
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceClass
void SetDBInstanceClass(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:138
Aws::DocDB::Model::ModifyDBInstanceRequest::GetPreferredMaintenanceWindow
const Aws::String & GetPreferredMaintenanceWindow() const
Definition: ModifyDBInstanceRequest.h:235
Aws::DocDB::Model::ModifyDBInstanceRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:55
Aws::DocDB::Model::ModifyDBInstanceRequest::CACertificateIdentifierHasBeenSet
bool CACertificateIdentifierHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:481
Aws::DocDB::Model::ModifyDBInstanceRequest::SetCACertificateIdentifier
void SetCACertificateIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:496
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:62
Aws::DocDB::Model::ModifyDBInstanceRequest::NewDBInstanceIdentifierHasBeenSet
bool NewDBInstanceIdentifierHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:392
Aws
Definition: AccessManagementClient.h:15
Aws::DocDB::Model::ModifyDBInstanceRequest::WithCACertificateIdentifier
ModifyDBInstanceRequest & WithCACertificateIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:501
Aws::DocDB::Model::ModifyDBInstanceRequest::WithApplyImmediately
ModifyDBInstanceRequest & WithApplyImmediately(bool value)
Definition: ModifyDBInstanceRequest.h:219
Aws::DocDB::Model::ModifyDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: ModifyDBInstanceRequest.h:76
Aws::DocDB::Model::ModifyDBInstanceRequest::WithPreferredMaintenanceWindow
ModifyDBInstanceRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
Definition: ModifyDBInstanceRequest.h:325
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DocDB::Model::ModifyDBInstanceRequest::ApplyImmediatelyHasBeenSet
bool ApplyImmediatelyHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:199
Aws::DocDB::Model::ModifyDBInstanceRequest::PreferredMaintenanceWindowHasBeenSet
bool PreferredMaintenanceWindowHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:250
Aws::DocDB::Model::ModifyDBInstanceRequest
Definition: ModifyDBInstanceRequest.h:26
Aws::DocDB::Model::ModifyDBInstanceRequest::WithPreferredMaintenanceWindow
ModifyDBInstanceRequest & WithPreferredMaintenanceWindow(const char *value)
Definition: ModifyDBInstanceRequest.h:340
Aws::DocDB::DocDBRequest
Definition: DocDBRequest.h:17
Aws::DocDB::Model::ModifyDBInstanceRequest::WithDBInstanceIdentifier
ModifyDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:83
Aws::DocDB::Model::ModifyDBInstanceRequest::DBInstanceClassHasBeenSet
bool DBInstanceClassHasBeenSet() const
Definition: ModifyDBInstanceRequest.h:118
Aws::DocDB::Model::ModifyDBInstanceRequest::WithPreferredMaintenanceWindow
ModifyDBInstanceRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
Definition: ModifyDBInstanceRequest.h:310
Aws::DocDB::Model::ModifyDBInstanceRequest::GetNewDBInstanceIdentifier
const Aws::String & GetNewDBInstanceIdentifier() const
Definition: ModifyDBInstanceRequest.h:379
Aws::DocDB::Model::ModifyDBInstanceRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: ModifyDBInstanceRequest.h:48