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>
31 inline virtual const char*
GetServiceRequestName()
const override {
return "ModifyInstanceMaintenanceOptions"; }
48 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
76 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
82 bool m_instanceIdHasBeenSet =
false;
85 bool m_autoRecoveryHasBeenSet =
false;
88 bool m_dryRunHasBeenSet =
false;
void SetInstanceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ModifyInstanceMaintenanceOptionsRequest & WithInstanceId(Aws::String &&value)
void SetAutoRecovery(const InstanceAutoRecoveryState &value)
bool InstanceIdHasBeenSet() const
ModifyInstanceMaintenanceOptionsRequest & WithInstanceId(const char *value)
void SetAutoRecovery(InstanceAutoRecoveryState &&value)
ModifyInstanceMaintenanceOptionsRequest & WithAutoRecovery(InstanceAutoRecoveryState &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API ModifyInstanceMaintenanceOptionsRequest()
ModifyInstanceMaintenanceOptionsRequest & WithInstanceId(const Aws::String &value)
bool DryRunHasBeenSet() const
const InstanceAutoRecoveryState & GetAutoRecovery() const
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceMaintenanceOptionsRequest & WithDryRun(bool value)
const Aws::String & GetInstanceId() const
ModifyInstanceMaintenanceOptionsRequest & WithAutoRecovery(const InstanceAutoRecoveryState &value)
bool AutoRecoveryHasBeenSet() const
void SetInstanceId(const Aws::String &value)
void SetInstanceId(const char *value)
void SetDryRun(bool value)
InstanceAutoRecoveryState
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String