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/CapacityReservationSpecification.h>
31 inline virtual const char*
GetServiceRequestName()
const override {
return "ModifyInstanceCapacityReservationAttributes"; }
48 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
75 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
81 bool m_instanceIdHasBeenSet =
false;
84 bool m_capacityReservationSpecificationHasBeenSet =
false;
87 bool m_dryRunHasBeenSet =
false;
const Aws::String & GetInstanceId() const
ModifyInstanceCapacityReservationAttributesRequest & WithCapacityReservationSpecification(const CapacityReservationSpecification &value)
ModifyInstanceCapacityReservationAttributesRequest & WithInstanceId(Aws::String &&value)
void SetInstanceId(const char *value)
void SetInstanceId(Aws::String &&value)
void SetDryRun(bool value)
ModifyInstanceCapacityReservationAttributesRequest & WithInstanceId(const Aws::String &value)
void SetCapacityReservationSpecification(const CapacityReservationSpecification &value)
bool CapacityReservationSpecificationHasBeenSet() const
void SetCapacityReservationSpecification(CapacityReservationSpecification &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceCapacityReservationAttributesRequest & WithCapacityReservationSpecification(CapacityReservationSpecification &&value)
bool InstanceIdHasBeenSet() const
ModifyInstanceCapacityReservationAttributesRequest & WithInstanceId(const char *value)
virtual const char * GetServiceRequestName() const override
const CapacityReservationSpecification & GetCapacityReservationSpecification() const
ModifyInstanceCapacityReservationAttributesRequest & WithDryRun(bool value)
AWS_EC2_API ModifyInstanceCapacityReservationAttributesRequest()
bool DryRunHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetInstanceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String