AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyReplicationInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DatabaseMigrationService
16 {
17 namespace Model
18 {
19 
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 "ModifyReplicationInstance"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
45 
49  inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; }
50 
54  inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
55 
59  inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); }
60 
64  inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
65 
69  inline ModifyReplicationInstanceRequest& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
70 
74  inline ModifyReplicationInstanceRequest& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;}
75 
79  inline ModifyReplicationInstanceRequest& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
80 
81 
86  inline int GetAllocatedStorage() const{ return m_allocatedStorage; }
87 
92  inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
93 
98  inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
99 
104  inline ModifyReplicationInstanceRequest& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
105 
106 
111  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
112 
117  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
118 
123  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
124 
129  inline ModifyReplicationInstanceRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
130 
131 
141  inline const Aws::String& GetReplicationInstanceClass() const{ return m_replicationInstanceClass; }
142 
152  inline bool ReplicationInstanceClassHasBeenSet() const { return m_replicationInstanceClassHasBeenSet; }
153 
163  inline void SetReplicationInstanceClass(const Aws::String& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
164 
174  inline void SetReplicationInstanceClass(Aws::String&& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = std::move(value); }
175 
185  inline void SetReplicationInstanceClass(const char* value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass.assign(value); }
186 
196  inline ModifyReplicationInstanceRequest& WithReplicationInstanceClass(const Aws::String& value) { SetReplicationInstanceClass(value); return *this;}
197 
207  inline ModifyReplicationInstanceRequest& WithReplicationInstanceClass(Aws::String&& value) { SetReplicationInstanceClass(std::move(value)); return *this;}
208 
218  inline ModifyReplicationInstanceRequest& WithReplicationInstanceClass(const char* value) { SetReplicationInstanceClass(value); return *this;}
219 
220 
226  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
227 
233  inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
234 
240  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
241 
247  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
248 
254  inline ModifyReplicationInstanceRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
255 
261  inline ModifyReplicationInstanceRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;}
262 
268  inline ModifyReplicationInstanceRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
269 
275  inline ModifyReplicationInstanceRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
276 
282  inline ModifyReplicationInstanceRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
283 
284 
295  inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
296 
307  inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
308 
319  inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
320 
331  inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
332 
343  inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
344 
355  inline ModifyReplicationInstanceRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
356 
367  inline ModifyReplicationInstanceRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
368 
379  inline ModifyReplicationInstanceRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
380 
381 
387  inline bool GetMultiAZ() const{ return m_multiAZ; }
388 
394  inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
395 
401  inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
402 
408  inline ModifyReplicationInstanceRequest& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
409 
410 
416  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
417 
423  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
424 
430  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
431 
437  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
438 
444  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
445 
451  inline ModifyReplicationInstanceRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
452 
458  inline ModifyReplicationInstanceRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
459 
465  inline ModifyReplicationInstanceRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
466 
467 
475  inline bool GetAllowMajorVersionUpgrade() const{ return m_allowMajorVersionUpgrade; }
476 
484  inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
485 
493  inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
494 
502  inline ModifyReplicationInstanceRequest& WithAllowMajorVersionUpgrade(bool value) { SetAllowMajorVersionUpgrade(value); return *this;}
503 
504 
515  inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
516 
527  inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
528 
539  inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
540 
551  inline ModifyReplicationInstanceRequest& WithAutoMinorVersionUpgrade(bool value) { SetAutoMinorVersionUpgrade(value); return *this;}
552 
553 
558  inline const Aws::String& GetReplicationInstanceIdentifier() const{ return m_replicationInstanceIdentifier; }
559 
564  inline bool ReplicationInstanceIdentifierHasBeenSet() const { return m_replicationInstanceIdentifierHasBeenSet; }
565 
570  inline void SetReplicationInstanceIdentifier(const Aws::String& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = value; }
571 
576  inline void SetReplicationInstanceIdentifier(Aws::String&& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = std::move(value); }
577 
582  inline void SetReplicationInstanceIdentifier(const char* value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier.assign(value); }
583 
588  inline ModifyReplicationInstanceRequest& WithReplicationInstanceIdentifier(const Aws::String& value) { SetReplicationInstanceIdentifier(value); return *this;}
589 
594  inline ModifyReplicationInstanceRequest& WithReplicationInstanceIdentifier(Aws::String&& value) { SetReplicationInstanceIdentifier(std::move(value)); return *this;}
595 
600  inline ModifyReplicationInstanceRequest& WithReplicationInstanceIdentifier(const char* value) { SetReplicationInstanceIdentifier(value); return *this;}
601 
602  private:
603 
604  Aws::String m_replicationInstanceArn;
605  bool m_replicationInstanceArnHasBeenSet;
606 
607  int m_allocatedStorage;
608  bool m_allocatedStorageHasBeenSet;
609 
610  bool m_applyImmediately;
611  bool m_applyImmediatelyHasBeenSet;
612 
613  Aws::String m_replicationInstanceClass;
614  bool m_replicationInstanceClassHasBeenSet;
615 
616  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
617  bool m_vpcSecurityGroupIdsHasBeenSet;
618 
619  Aws::String m_preferredMaintenanceWindow;
620  bool m_preferredMaintenanceWindowHasBeenSet;
621 
622  bool m_multiAZ;
623  bool m_multiAZHasBeenSet;
624 
625  Aws::String m_engineVersion;
626  bool m_engineVersionHasBeenSet;
627 
628  bool m_allowMajorVersionUpgrade;
629  bool m_allowMajorVersionUpgradeHasBeenSet;
630 
631  bool m_autoMinorVersionUpgrade;
632  bool m_autoMinorVersionUpgradeHasBeenSet;
633 
634  Aws::String m_replicationInstanceIdentifier;
635  bool m_replicationInstanceIdentifierHasBeenSet;
636  };
637 
638 } // namespace Model
639 } // namespace DatabaseMigrationService
640 } // namespace Aws
ModifyReplicationInstanceRequest & AddVpcSecurityGroupIds(Aws::String &&value)
ModifyReplicationInstanceRequest & WithReplicationInstanceIdentifier(const Aws::String &value)
ModifyReplicationInstanceRequest & WithReplicationInstanceClass(const Aws::String &value)
ModifyReplicationInstanceRequest & WithReplicationInstanceArn(const Aws::String &value)
ModifyReplicationInstanceRequest & WithEngineVersion(const Aws::String &value)
ModifyReplicationInstanceRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyReplicationInstanceRequest & WithReplicationInstanceIdentifier(const char *value)
ModifyReplicationInstanceRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ModifyReplicationInstanceRequest & AddVpcSecurityGroupIds(const Aws::String &value)
ModifyReplicationInstanceRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
ModifyReplicationInstanceRequest & WithReplicationInstanceClass(Aws::String &&value)
#define AWS_DATABASEMIGRATIONSERVICE_API
ModifyReplicationInstanceRequest & WithReplicationInstanceArn(const char *value)
ModifyReplicationInstanceRequest & WithReplicationInstanceClass(const char *value)
ModifyReplicationInstanceRequest & WithPreferredMaintenanceWindow(const char *value)
ModifyReplicationInstanceRequest & WithReplicationInstanceIdentifier(Aws::String &&value)
ModifyReplicationInstanceRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyReplicationInstanceRequest & WithReplicationInstanceArn(Aws::String &&value)
ModifyReplicationInstanceRequest & WithEngineVersion(Aws::String &&value)
ModifyReplicationInstanceRequest & AddVpcSecurityGroupIds(const char *value)