AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyInstanceMaintenanceOptionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceAutoRecoveryState.h>
11#include <aws/ec2/model/InstanceRebootMigrationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceMaintenanceOptions"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template<typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
49 template<typename InstanceIdT = Aws::String>
50 ModifyInstanceMaintenanceOptionsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
52
54
58 inline InstanceAutoRecoveryState GetAutoRecovery() const { return m_autoRecovery; }
59 inline bool AutoRecoveryHasBeenSet() const { return m_autoRecoveryHasBeenSet; }
60 inline void SetAutoRecovery(InstanceAutoRecoveryState value) { m_autoRecoveryHasBeenSet = true; m_autoRecovery = value; }
63
65
79 inline InstanceRebootMigrationState GetRebootMigration() const { return m_rebootMigration; }
80 inline bool RebootMigrationHasBeenSet() const { return m_rebootMigrationHasBeenSet; }
81 inline void SetRebootMigration(InstanceRebootMigrationState value) { m_rebootMigrationHasBeenSet = true; m_rebootMigration = value; }
84
86
92 inline bool GetDryRun() const { return m_dryRun; }
93 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
94 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
95 inline ModifyInstanceMaintenanceOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
97 private:
98
99 Aws::String m_instanceId;
100 bool m_instanceIdHasBeenSet = false;
101
103 bool m_autoRecoveryHasBeenSet = false;
104
106 bool m_rebootMigrationHasBeenSet = false;
107
108 bool m_dryRun{false};
109 bool m_dryRunHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // 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 & WithDryRun(bool value)
ModifyInstanceMaintenanceOptionsRequest & WithRebootMigration(InstanceRebootMigrationState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String