AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PurchaseReservedInstancesOfferingRequest.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedInstancesOffering"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline int GetInstanceCount() const { return m_instanceCount; }
46 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
47 inline void SetInstanceCount(int value) {
48 m_instanceCountHasBeenSet = true;
49 m_instanceCount = value;
50 }
52 SetInstanceCount(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetReservedInstancesOfferingId() const { return m_reservedInstancesOfferingId; }
62 inline bool ReservedInstancesOfferingIdHasBeenSet() const { return m_reservedInstancesOfferingIdHasBeenSet; }
63 template <typename ReservedInstancesOfferingIdT = Aws::String>
64 void SetReservedInstancesOfferingId(ReservedInstancesOfferingIdT&& value) {
65 m_reservedInstancesOfferingIdHasBeenSet = true;
66 m_reservedInstancesOfferingId = std::forward<ReservedInstancesOfferingIdT>(value);
67 }
68 template <typename ReservedInstancesOfferingIdT = Aws::String>
70 SetReservedInstancesOfferingId(std::forward<ReservedInstancesOfferingIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetPurchaseTime() const { return m_purchaseTime; }
81 inline bool PurchaseTimeHasBeenSet() const { return m_purchaseTimeHasBeenSet; }
82 template <typename PurchaseTimeT = Aws::Utils::DateTime>
83 void SetPurchaseTime(PurchaseTimeT&& value) {
84 m_purchaseTimeHasBeenSet = true;
85 m_purchaseTime = std::forward<PurchaseTimeT>(value);
86 }
87 template <typename PurchaseTimeT = Aws::Utils::DateTime>
89 SetPurchaseTime(std::forward<PurchaseTimeT>(value));
90 return *this;
91 }
93
95
101 inline bool GetDryRun() const { return m_dryRun; }
102 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
103 inline void SetDryRun(bool value) {
104 m_dryRunHasBeenSet = true;
105 m_dryRun = value;
106 }
108 SetDryRun(value);
109 return *this;
110 }
112
114
119 inline const ReservedInstanceLimitPrice& GetLimitPrice() const { return m_limitPrice; }
120 inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; }
121 template <typename LimitPriceT = ReservedInstanceLimitPrice>
122 void SetLimitPrice(LimitPriceT&& value) {
123 m_limitPriceHasBeenSet = true;
124 m_limitPrice = std::forward<LimitPriceT>(value);
125 }
126 template <typename LimitPriceT = ReservedInstanceLimitPrice>
128 SetLimitPrice(std::forward<LimitPriceT>(value));
129 return *this;
130 }
132 private:
133 int m_instanceCount{0};
134
135 Aws::String m_reservedInstancesOfferingId;
136
137 Aws::Utils::DateTime m_purchaseTime{};
138
139 bool m_dryRun{false};
140
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;
147};
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
PurchaseReservedInstancesOfferingRequest & WithLimitPrice(LimitPriceT &&value)
PurchaseReservedInstancesOfferingRequest & WithPurchaseTime(PurchaseTimeT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PurchaseReservedInstancesOfferingRequest & WithReservedInstancesOfferingId(ReservedInstancesOfferingIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseReservedInstancesOfferingRequest & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String