7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ReservedInstanceLimitPrice.h>
33 inline virtual const char*
GetServiceRequestName()
const override {
return "PurchaseReservedInstancesOffering"; }
48 m_instanceCountHasBeenSet =
true;
49 m_instanceCount = value;
63 template <
typename ReservedInstancesOfferingIdT = Aws::String>
65 m_reservedInstancesOfferingIdHasBeenSet =
true;
66 m_reservedInstancesOfferingId = std::forward<ReservedInstancesOfferingIdT>(value);
68 template <
typename ReservedInstancesOfferingIdT = Aws::String>
82 template <
typename PurchaseTimeT = Aws::Utils::DateTime>
84 m_purchaseTimeHasBeenSet =
true;
85 m_purchaseTime = std::forward<PurchaseTimeT>(value);
87 template <
typename PurchaseTimeT = Aws::Utils::DateTime>
104 m_dryRunHasBeenSet =
true;
121 template <
typename LimitPriceT = ReservedInstanceLimitPrice>
123 m_limitPriceHasBeenSet =
true;
124 m_limitPrice = std::forward<LimitPriceT>(value);
126 template <
typename LimitPriceT = ReservedInstanceLimitPrice>
133 int m_instanceCount{0};
139 bool m_dryRun{
false};
141 ReservedInstanceLimitPrice m_limitPrice;
142 bool m_instanceCountHasBeenSet =
false;
143 bool m_reservedInstancesOfferingIdHasBeenSet =
false;
144 bool m_purchaseTimeHasBeenSet =
false;
145 bool m_dryRunHasBeenSet =
false;
146 bool m_limitPriceHasBeenSet =
false;
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(LimitPriceT &&value)
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(PurchaseTimeT &&value)
bool PurchaseTimeHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPurchaseTime(PurchaseTimeT &&value)
void SetDryRun(bool value)
const Aws::Utils::DateTime & GetPurchaseTime() const
const Aws::String & GetReservedInstancesOfferingId() const
void SetReservedInstancesOfferingId(ReservedInstancesOfferingIdT &&value)
AWS_EC2_API PurchaseReservedInstancesOfferingRequest()=default
PurchaseReservedInstancesOfferingRequest & WithDryRun(bool value)
void SetInstanceCount(int value)
bool DryRunHasBeenSet() const
bool InstanceCountHasBeenSet() const
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(ReservedInstancesOfferingIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
int GetInstanceCount() const
bool ReservedInstancesOfferingIdHasBeenSet() const
void SetLimitPrice(LimitPriceT &&value)
PurchaseReservedInstancesOfferingRequest & WithInstanceCount(int value)
bool LimitPriceHasBeenSet() const
const ReservedInstanceLimitPrice & GetLimitPrice() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String