AWS SDK for C++  1.8.71
AWS SDK for C++
ApplyPendingMaintenanceActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DatabaseMigrationService
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ApplyPendingMaintenanceAction"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
45 
50  inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; }
51 
56  inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
57 
62  inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); }
63 
68  inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
69 
74  inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;}
75 
80  inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;}
81 
86  inline ApplyPendingMaintenanceActionRequest& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;}
87 
88 
92  inline const Aws::String& GetApplyAction() const{ return m_applyAction; }
93 
97  inline bool ApplyActionHasBeenSet() const { return m_applyActionHasBeenSet; }
98 
102  inline void SetApplyAction(const Aws::String& value) { m_applyActionHasBeenSet = true; m_applyAction = value; }
103 
107  inline void SetApplyAction(Aws::String&& value) { m_applyActionHasBeenSet = true; m_applyAction = std::move(value); }
108 
112  inline void SetApplyAction(const char* value) { m_applyActionHasBeenSet = true; m_applyAction.assign(value); }
113 
117  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const Aws::String& value) { SetApplyAction(value); return *this;}
118 
122  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(Aws::String&& value) { SetApplyAction(std::move(value)); return *this;}
123 
127  inline ApplyPendingMaintenanceActionRequest& WithApplyAction(const char* value) { SetApplyAction(value); return *this;}
128 
129 
139  inline const Aws::String& GetOptInType() const{ return m_optInType; }
140 
150  inline bool OptInTypeHasBeenSet() const { return m_optInTypeHasBeenSet; }
151 
161  inline void SetOptInType(const Aws::String& value) { m_optInTypeHasBeenSet = true; m_optInType = value; }
162 
172  inline void SetOptInType(Aws::String&& value) { m_optInTypeHasBeenSet = true; m_optInType = std::move(value); }
173 
183  inline void SetOptInType(const char* value) { m_optInTypeHasBeenSet = true; m_optInType.assign(value); }
184 
194  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const Aws::String& value) { SetOptInType(value); return *this;}
195 
205  inline ApplyPendingMaintenanceActionRequest& WithOptInType(Aws::String&& value) { SetOptInType(std::move(value)); return *this;}
206 
216  inline ApplyPendingMaintenanceActionRequest& WithOptInType(const char* value) { SetOptInType(value); return *this;}
217 
218  private:
219 
220  Aws::String m_replicationInstanceArn;
221  bool m_replicationInstanceArnHasBeenSet;
222 
223  Aws::String m_applyAction;
224  bool m_applyActionHasBeenSet;
225 
226  Aws::String m_optInType;
227  bool m_optInTypeHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace DatabaseMigrationService
232 } // namespace Aws
ApplyPendingMaintenanceActionRequest & WithReplicationInstanceArn(Aws::String &&value)
ApplyPendingMaintenanceActionRequest & WithApplyAction(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ApplyPendingMaintenanceActionRequest & WithReplicationInstanceArn(const char *value)
#define AWS_DATABASEMIGRATIONSERVICE_API
ApplyPendingMaintenanceActionRequest & WithReplicationInstanceArn(const Aws::String &value)
ApplyPendingMaintenanceActionRequest & WithOptInType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97