AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseHostReservationRequest.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/ec2/model/CurrencyCodeValues.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_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:
41
43
49 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
52 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
53 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
54 inline PurchaseHostReservationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
55 inline PurchaseHostReservationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
56 inline PurchaseHostReservationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
58
60
65 inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
66 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
67 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
68 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
70 inline PurchaseHostReservationRequest& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
72
74
78 inline const Aws::Vector<Aws::String>& GetHostIdSet() const{ return m_hostIdSet; }
79 inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; }
80 inline void SetHostIdSet(const Aws::Vector<Aws::String>& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = value; }
81 inline void SetHostIdSet(Aws::Vector<Aws::String>&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = std::move(value); }
83 inline PurchaseHostReservationRequest& WithHostIdSet(Aws::Vector<Aws::String>&& value) { SetHostIdSet(std::move(value)); return *this;}
84 inline PurchaseHostReservationRequest& AddHostIdSet(const Aws::String& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
85 inline PurchaseHostReservationRequest& AddHostIdSet(Aws::String&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(std::move(value)); return *this; }
86 inline PurchaseHostReservationRequest& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; }
88
90
99 inline const Aws::String& GetLimitPrice() const{ return m_limitPrice; }
100 inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; }
101 inline void SetLimitPrice(const Aws::String& value) { m_limitPriceHasBeenSet = true; m_limitPrice = value; }
102 inline void SetLimitPrice(Aws::String&& value) { m_limitPriceHasBeenSet = true; m_limitPrice = std::move(value); }
103 inline void SetLimitPrice(const char* value) { m_limitPriceHasBeenSet = true; m_limitPrice.assign(value); }
104 inline PurchaseHostReservationRequest& WithLimitPrice(const Aws::String& value) { SetLimitPrice(value); return *this;}
105 inline PurchaseHostReservationRequest& WithLimitPrice(Aws::String&& value) { SetLimitPrice(std::move(value)); return *this;}
106 inline PurchaseHostReservationRequest& WithLimitPrice(const char* value) { SetLimitPrice(value); return *this;}
108
110
113 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
114 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
115 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
116 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
117 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
118 inline PurchaseHostReservationRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
119 inline PurchaseHostReservationRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
120 inline PurchaseHostReservationRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
122
124
127 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
128 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
129 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
130 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
133 inline PurchaseHostReservationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
134 inline PurchaseHostReservationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140
141 CurrencyCodeValues m_currencyCode;
142 bool m_currencyCodeHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_hostIdSet;
145 bool m_hostIdSetHasBeenSet = false;
146
147 Aws::String m_limitPrice;
148 bool m_limitPriceHasBeenSet = false;
149
150 Aws::String m_offeringId;
151 bool m_offeringIdHasBeenSet = false;
152
153 Aws::Vector<TagSpecification> m_tagSpecifications;
154 bool m_tagSpecificationsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
PurchaseHostReservationRequest & AddHostIdSet(const Aws::String &value)
PurchaseHostReservationRequest & AddHostIdSet(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
PurchaseHostReservationRequest & WithOfferingId(const Aws::String &value)
PurchaseHostReservationRequest & AddTagSpecifications(const TagSpecification &value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PurchaseHostReservationRequest & WithClientToken(Aws::String &&value)
PurchaseHostReservationRequest & AddTagSpecifications(TagSpecification &&value)
virtual const char * GetServiceRequestName() const override
PurchaseHostReservationRequest & WithLimitPrice(Aws::String &&value)
PurchaseHostReservationRequest & WithCurrencyCode(CurrencyCodeValues &&value)
void SetHostIdSet(const Aws::Vector< Aws::String > &value)
PurchaseHostReservationRequest & WithCurrencyCode(const CurrencyCodeValues &value)
void SetHostIdSet(Aws::Vector< Aws::String > &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
PurchaseHostReservationRequest & WithClientToken(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
PurchaseHostReservationRequest & WithHostIdSet(const Aws::Vector< Aws::String > &value)
PurchaseHostReservationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseHostReservationRequest & WithHostIdSet(Aws::Vector< Aws::String > &&value)
PurchaseHostReservationRequest & WithLimitPrice(const Aws::String &value)
PurchaseHostReservationRequest & WithOfferingId(const char *value)
PurchaseHostReservationRequest & AddHostIdSet(const char *value)
PurchaseHostReservationRequest & WithClientToken(const char *value)
PurchaseHostReservationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
PurchaseHostReservationRequest & WithLimitPrice(const char *value)
PurchaseHostReservationRequest & WithOfferingId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector