AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyInstanceMaintenanceOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/InstanceAutoRecoveryState.h>
11#include <aws/ec2/model/InstanceRebootMigrationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceMaintenanceOptions"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
60 inline InstanceAutoRecoveryState GetAutoRecovery() const { return m_autoRecovery; }
61 inline bool AutoRecoveryHasBeenSet() const { return m_autoRecoveryHasBeenSet; }
63 m_autoRecoveryHasBeenSet = true;
64 m_autoRecovery = value;
65 }
67 SetAutoRecovery(value);
68 return *this;
69 }
71
73
87 inline InstanceRebootMigrationState GetRebootMigration() const { return m_rebootMigration; }
88 inline bool RebootMigrationHasBeenSet() const { return m_rebootMigrationHasBeenSet; }
90 m_rebootMigrationHasBeenSet = true;
91 m_rebootMigration = value;
92 }
94 SetRebootMigration(value);
95 return *this;
96 }
98
100
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) {
109 m_dryRunHasBeenSet = true;
110 m_dryRun = value;
111 }
113 SetDryRun(value);
114 return *this;
115 }
117 private:
118 Aws::String m_instanceId;
119
121
123
124 bool m_dryRun{false};
125 bool m_instanceIdHasBeenSet = false;
126 bool m_autoRecoveryHasBeenSet = false;
127 bool m_rebootMigrationHasBeenSet = false;
128 bool m_dryRunHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
ModifyInstanceMaintenanceOptionsRequest & WithAutoRecovery(InstanceAutoRecoveryState value)
ModifyInstanceMaintenanceOptionsRequest & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceMaintenanceOptionsRequest & WithRebootMigration(InstanceRebootMigrationState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String