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/core/utils/DateTime.h>
11#include <aws/ec2/model/ReservedInstanceLimitPrice.h>
36 inline virtual const char*
GetServiceRequestName()
const override {
return "PurchaseReservedInstancesOffering"; }
51 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
63 inline void SetReservedInstancesOfferingId(
const char* value) { m_reservedInstancesOfferingIdHasBeenSet =
true; m_reservedInstancesOfferingId.assign(value); }
91 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
111 bool m_instanceCountHasBeenSet =
false;
114 bool m_reservedInstancesOfferingIdHasBeenSet =
false;
117 bool m_purchaseTimeHasBeenSet =
false;
120 bool m_dryRunHasBeenSet =
false;
123 bool m_limitPriceHasBeenSet =
false;
bool PurchaseTimeHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(Aws::Utils::DateTime &&value)
void SetDryRun(bool value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(Aws::String &&value)
const Aws::Utils::DateTime & GetPurchaseTime() const
void SetPurchaseTime(Aws::Utils::DateTime &&value)
void SetLimitPrice(const ReservedInstanceLimitPrice &value)
const Aws::String & GetReservedInstancesOfferingId() const
void SetReservedInstancesOfferingId(const Aws::String &value)
PurchaseReservedInstancesOfferingRequest & WithDryRun(bool value)
void SetInstanceCount(int value)
bool DryRunHasBeenSet() const
bool InstanceCountHasBeenSet() const
void SetReservedInstancesOfferingId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
int GetInstanceCount() const
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(const Aws::Utils::DateTime &value)
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(ReservedInstanceLimitPrice &&value)
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(const ReservedInstanceLimitPrice &value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(const Aws::String &value)
void SetReservedInstancesOfferingId(const char *value)
AWS_EC2_API PurchaseReservedInstancesOfferingRequest()
void SetLimitPrice(ReservedInstanceLimitPrice &&value)
bool ReservedInstancesOfferingIdHasBeenSet() const
void SetPurchaseTime(const Aws::Utils::DateTime &value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(const char *value)
PurchaseReservedInstancesOfferingRequest & WithInstanceCount(int value)
bool LimitPriceHasBeenSet() const
const ReservedInstanceLimitPrice & GetLimitPrice() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String