AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseReservedInstancesOfferingRequest.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/core/utils/DateTime.h>
11#include <aws/ec2/model/ReservedInstanceLimitPrice.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedInstancesOffering"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline int GetInstanceCount() const{ return m_instanceCount; }
50 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
51 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
54
56
59 inline const Aws::String& GetReservedInstancesOfferingId() const{ return m_reservedInstancesOfferingId; }
60 inline bool ReservedInstancesOfferingIdHasBeenSet() const { return m_reservedInstancesOfferingIdHasBeenSet; }
61 inline void SetReservedInstancesOfferingId(const Aws::String& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = value; }
62 inline void SetReservedInstancesOfferingId(Aws::String&& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = std::move(value); }
63 inline void SetReservedInstancesOfferingId(const char* value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId.assign(value); }
68
70
74 inline const Aws::Utils::DateTime& GetPurchaseTime() const{ return m_purchaseTime; }
75 inline bool PurchaseTimeHasBeenSet() const { return m_purchaseTimeHasBeenSet; }
76 inline void SetPurchaseTime(const Aws::Utils::DateTime& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = value; }
77 inline void SetPurchaseTime(Aws::Utils::DateTime&& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = std::move(value); }
81
83
89 inline bool GetDryRun() const{ return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline PurchaseReservedInstancesOfferingRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94
96
101 inline const ReservedInstanceLimitPrice& GetLimitPrice() const{ return m_limitPrice; }
102 inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; }
103 inline void SetLimitPrice(const ReservedInstanceLimitPrice& value) { m_limitPriceHasBeenSet = true; m_limitPrice = value; }
104 inline void SetLimitPrice(ReservedInstanceLimitPrice&& value) { m_limitPriceHasBeenSet = true; m_limitPrice = std::move(value); }
108 private:
109
110 int m_instanceCount;
111 bool m_instanceCountHasBeenSet = false;
112
113 Aws::String m_reservedInstancesOfferingId;
114 bool m_reservedInstancesOfferingIdHasBeenSet = false;
115
116 Aws::Utils::DateTime m_purchaseTime;
117 bool m_purchaseTimeHasBeenSet = false;
118
119 bool m_dryRun;
120 bool m_dryRunHasBeenSet = false;
121
122 ReservedInstanceLimitPrice m_limitPrice;
123 bool m_limitPriceHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(Aws::Utils::DateTime &&value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(Aws::String &&value)
PurchaseReservedInstancesOfferingRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(const Aws::Utils::DateTime &value)
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(ReservedInstanceLimitPrice &&value)
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(const ReservedInstanceLimitPrice &value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(const Aws::String &value)
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(const char *value)
PurchaseReservedInstancesOfferingRequest & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String