AWS SDK for C++  1.9.67
AWS SDK for C++
PurchaseHostReservationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
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 "PurchaseHostReservation"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 
56  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 
64  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 
72  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
73 
80  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 
88  inline PurchaseHostReservationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 
96  inline PurchaseHostReservationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
97 
104  inline PurchaseHostReservationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
105 
106 
112  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
113 
119  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
120 
126  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
127 
133  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
134 
140  inline PurchaseHostReservationRequest& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
141 
147  inline PurchaseHostReservationRequest& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
148 
149 
154  inline const Aws::Vector<Aws::String>& GetHostIdSet() const{ return m_hostIdSet; }
155 
160  inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; }
161 
166  inline void SetHostIdSet(const Aws::Vector<Aws::String>& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = value; }
167 
172  inline void SetHostIdSet(Aws::Vector<Aws::String>&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = std::move(value); }
173 
178  inline PurchaseHostReservationRequest& WithHostIdSet(const Aws::Vector<Aws::String>& value) { SetHostIdSet(value); return *this;}
179 
184  inline PurchaseHostReservationRequest& WithHostIdSet(Aws::Vector<Aws::String>&& value) { SetHostIdSet(std::move(value)); return *this;}
185 
190  inline PurchaseHostReservationRequest& AddHostIdSet(const Aws::String& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
191 
196  inline PurchaseHostReservationRequest& AddHostIdSet(Aws::String&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(std::move(value)); return *this; }
197 
202  inline PurchaseHostReservationRequest& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
203 
204 
214  inline const Aws::String& GetLimitPrice() const{ return m_limitPrice; }
215 
225  inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; }
226 
236  inline void SetLimitPrice(const Aws::String& value) { m_limitPriceHasBeenSet = true; m_limitPrice = value; }
237 
247  inline void SetLimitPrice(Aws::String&& value) { m_limitPriceHasBeenSet = true; m_limitPrice = std::move(value); }
248 
258  inline void SetLimitPrice(const char* value) { m_limitPriceHasBeenSet = true; m_limitPrice.assign(value); }
259 
269  inline PurchaseHostReservationRequest& WithLimitPrice(const Aws::String& value) { SetLimitPrice(value); return *this;}
270 
280  inline PurchaseHostReservationRequest& WithLimitPrice(Aws::String&& value) { SetLimitPrice(std::move(value)); return *this;}
281 
291  inline PurchaseHostReservationRequest& WithLimitPrice(const char* value) { SetLimitPrice(value); return *this;}
292 
293 
297  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
298 
302  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
303 
307  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
308 
312  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
313 
317  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
318 
322  inline PurchaseHostReservationRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
323 
327  inline PurchaseHostReservationRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
328 
332  inline PurchaseHostReservationRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
333 
334 
338  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
339 
343  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
344 
348  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
349 
353  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
354 
358  inline PurchaseHostReservationRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
359 
363  inline PurchaseHostReservationRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
364 
368  inline PurchaseHostReservationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
369 
373  inline PurchaseHostReservationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
374 
375  private:
376 
377  Aws::String m_clientToken;
378  bool m_clientTokenHasBeenSet;
379 
380  CurrencyCodeValues m_currencyCode;
381  bool m_currencyCodeHasBeenSet;
382 
383  Aws::Vector<Aws::String> m_hostIdSet;
384  bool m_hostIdSetHasBeenSet;
385 
386  Aws::String m_limitPrice;
387  bool m_limitPriceHasBeenSet;
388 
389  Aws::String m_offeringId;
390  bool m_offeringIdHasBeenSet;
391 
392  Aws::Vector<TagSpecification> m_tagSpecifications;
393  bool m_tagSpecificationsHasBeenSet;
394  };
395 
396 } // namespace Model
397 } // namespace EC2
398 } // namespace Aws
Aws::EC2::Model::PurchaseHostReservationRequest::WithClientToken
PurchaseHostReservationRequest & WithClientToken(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:96
Aws::EC2::Model::PurchaseHostReservationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: PurchaseHostReservationRequest.h:48
TagSpecification.h
Aws::EC2::Model::PurchaseHostReservationRequest::WithClientToken
PurchaseHostReservationRequest & WithClientToken(const char *value)
Definition: PurchaseHostReservationRequest.h:104
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::PurchaseHostReservationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:56
Aws::EC2::Model::PurchaseHostReservationRequest
Definition: PurchaseHostReservationRequest.h:25
Aws::EC2::Model::PurchaseHostReservationRequest::WithHostIdSet
PurchaseHostReservationRequest & WithHostIdSet(Aws::Vector< Aws::String > &&value)
Definition: PurchaseHostReservationRequest.h:184
Aws::EC2::Model::PurchaseHostReservationRequest::GetLimitPrice
const Aws::String & GetLimitPrice() const
Definition: PurchaseHostReservationRequest.h:214
Aws::EC2::Model::PurchaseHostReservationRequest::SetLimitPrice
void SetLimitPrice(const char *value)
Definition: PurchaseHostReservationRequest.h:258
Aws::EC2::Model::PurchaseHostReservationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:64
Aws::EC2::Model::PurchaseHostReservationRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: PurchaseHostReservationRequest.h:338
Aws::EC2::Model::PurchaseHostReservationRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PurchaseHostReservationRequest::AddHostIdSet
PurchaseHostReservationRequest & AddHostIdSet(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:196
Aws::EC2::Model::PurchaseHostReservationRequest::WithTagSpecifications
PurchaseHostReservationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: PurchaseHostReservationRequest.h:363
Aws::EC2::Model::PurchaseHostReservationRequest::WithOfferingId
PurchaseHostReservationRequest & WithOfferingId(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:327
Aws::EC2::Model::PurchaseHostReservationRequest::AddHostIdSet
PurchaseHostReservationRequest & AddHostIdSet(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:190
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PurchaseHostReservationRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: PurchaseHostReservationRequest.h:353
Aws::EC2::Model::PurchaseHostReservationRequest::SetHostIdSet
void SetHostIdSet(Aws::Vector< Aws::String > &&value)
Definition: PurchaseHostReservationRequest.h:172
CurrencyCodeValues.h
Aws::EC2::Model::PurchaseHostReservationRequest::SetOfferingId
void SetOfferingId(const char *value)
Definition: PurchaseHostReservationRequest.h:317
AWSVector.h
Aws::EC2::Model::PurchaseHostReservationRequest::WithCurrencyCode
PurchaseHostReservationRequest & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: PurchaseHostReservationRequest.h:140
Aws::EC2::Model::PurchaseHostReservationRequest::WithOfferingId
PurchaseHostReservationRequest & WithOfferingId(const char *value)
Definition: PurchaseHostReservationRequest.h:332
Aws::EC2::Model::PurchaseHostReservationRequest::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: PurchaseHostReservationRequest.h:133
Aws::EC2::Model::PurchaseHostReservationRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:343
Aws::EC2::Model::PurchaseHostReservationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::PurchaseHostReservationRequest::WithHostIdSet
PurchaseHostReservationRequest & WithHostIdSet(const Aws::Vector< Aws::String > &value)
Definition: PurchaseHostReservationRequest.h:178
Aws::EC2::Model::PurchaseHostReservationRequest::WithOfferingId
PurchaseHostReservationRequest & WithOfferingId(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:322
Aws::EC2::Model::PurchaseHostReservationRequest::WithClientToken
PurchaseHostReservationRequest & WithClientToken(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:88
Aws::EC2::Model::PurchaseHostReservationRequest::SetLimitPrice
void SetLimitPrice(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:236
Aws::EC2::Model::PurchaseHostReservationRequest::AddHostIdSet
PurchaseHostReservationRequest & AddHostIdSet(const char *value)
Definition: PurchaseHostReservationRequest.h:202
Aws::EC2::Model::PurchaseHostReservationRequest::WithLimitPrice
PurchaseHostReservationRequest & WithLimitPrice(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:280
EC2Request.h
Aws::EC2::Model::PurchaseHostReservationRequest::PurchaseHostReservationRequest
PurchaseHostReservationRequest()
Aws::EC2::Model::PurchaseHostReservationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:72
AWSString.h
Aws::EC2::Model::PurchaseHostReservationRequest::HostIdSetHasBeenSet
bool HostIdSetHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:160
Aws::EC2::Model::PurchaseHostReservationRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: PurchaseHostReservationRequest.h:348
Aws::EC2::Model::PurchaseHostReservationRequest::SetLimitPrice
void SetLimitPrice(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:247
Aws::EC2::Model::PurchaseHostReservationRequest::WithCurrencyCode
PurchaseHostReservationRequest & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: PurchaseHostReservationRequest.h:147
Aws::EC2::Model::PurchaseHostReservationRequest::WithLimitPrice
PurchaseHostReservationRequest & WithLimitPrice(const char *value)
Definition: PurchaseHostReservationRequest.h:291
Aws::EC2::Model::PurchaseHostReservationRequest::WithLimitPrice
PurchaseHostReservationRequest & WithLimitPrice(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:269
Aws::EC2::Model::PurchaseHostReservationRequest::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: PurchaseHostReservationRequest.h:126
Aws::EC2::Model::PurchaseHostReservationRequest::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: PurchaseHostReservationRequest.h:307
Aws::EC2::Model::PurchaseHostReservationRequest::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: PurchaseHostReservationRequest.h:297
Aws::EC2::Model::PurchaseHostReservationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PurchaseHostReservationRequest.h:33
Aws::EC2::Model::PurchaseHostReservationRequest::AddTagSpecifications
PurchaseHostReservationRequest & AddTagSpecifications(TagSpecification &&value)
Definition: PurchaseHostReservationRequest.h:373
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PurchaseHostReservationRequest::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: PurchaseHostReservationRequest.h:112
Aws::EC2::Model::PurchaseHostReservationRequest::AddTagSpecifications
PurchaseHostReservationRequest & AddTagSpecifications(const TagSpecification &value)
Definition: PurchaseHostReservationRequest.h:368
Aws::EC2::Model::PurchaseHostReservationRequest::WithTagSpecifications
PurchaseHostReservationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: PurchaseHostReservationRequest.h:358
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::PurchaseHostReservationRequest::GetHostIdSet
const Aws::Vector< Aws::String > & GetHostIdSet() const
Definition: PurchaseHostReservationRequest.h:154
Aws::EC2::Model::PurchaseHostReservationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: PurchaseHostReservationRequest.h:80
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::PurchaseHostReservationRequest::SetHostIdSet
void SetHostIdSet(const Aws::Vector< Aws::String > &value)
Definition: PurchaseHostReservationRequest.h:166
EC2_EXPORTS.h
Aws::EC2::Model::PurchaseHostReservationRequest::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: PurchaseHostReservationRequest.h:312
Aws::EC2::Model::PurchaseHostReservationRequest::LimitPriceHasBeenSet
bool LimitPriceHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:225
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17
Aws::EC2::Model::PurchaseHostReservationRequest::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:119
Aws::EC2::Model::PurchaseHostReservationRequest::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: PurchaseHostReservationRequest.h:302