AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PurchaseHostReservationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/CurrencyCodeValues.h>
11#include <aws/ec2/model/Purchase.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API PurchaseHostReservationResponse() = default;
32
34
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
59 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
61 m_currencyCodeHasBeenSet = true;
62 m_currencyCode = value;
63 }
65 SetCurrencyCode(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Purchase>& GetPurchase() const { return m_purchase; }
75 template <typename PurchaseT = Aws::Vector<Purchase>>
76 void SetPurchase(PurchaseT&& value) {
77 m_purchaseHasBeenSet = true;
78 m_purchase = std::forward<PurchaseT>(value);
79 }
80 template <typename PurchaseT = Aws::Vector<Purchase>>
82 SetPurchase(std::forward<PurchaseT>(value));
83 return *this;
84 }
85 template <typename PurchaseT = Purchase>
87 m_purchaseHasBeenSet = true;
88 m_purchase.emplace_back(std::forward<PurchaseT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTotalHourlyPrice() const { return m_totalHourlyPrice; }
98 template <typename TotalHourlyPriceT = Aws::String>
99 void SetTotalHourlyPrice(TotalHourlyPriceT&& value) {
100 m_totalHourlyPriceHasBeenSet = true;
101 m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value);
102 }
103 template <typename TotalHourlyPriceT = Aws::String>
105 SetTotalHourlyPrice(std::forward<TotalHourlyPriceT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetTotalUpfrontPrice() const { return m_totalUpfrontPrice; }
116 template <typename TotalUpfrontPriceT = Aws::String>
117 void SetTotalUpfrontPrice(TotalUpfrontPriceT&& value) {
118 m_totalUpfrontPriceHasBeenSet = true;
119 m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value);
120 }
121 template <typename TotalUpfrontPriceT = Aws::String>
123 SetTotalUpfrontPrice(std::forward<TotalUpfrontPriceT>(value));
124 return *this;
125 }
127
129
130 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
131 template <typename ResponseMetadataT = ResponseMetadata>
132 void SetResponseMetadata(ResponseMetadataT&& value) {
133 m_responseMetadataHasBeenSet = true;
134 m_responseMetadata = std::forward<ResponseMetadataT>(value);
135 }
136 template <typename ResponseMetadataT = ResponseMetadata>
138 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_clientToken;
144
146
147 Aws::Vector<Purchase> m_purchase;
148
149 Aws::String m_totalHourlyPrice;
150
151 Aws::String m_totalUpfrontPrice;
152
153 ResponseMetadata m_responseMetadata;
154 bool m_clientTokenHasBeenSet = false;
155 bool m_currencyCodeHasBeenSet = false;
156 bool m_purchaseHasBeenSet = false;
157 bool m_totalHourlyPriceHasBeenSet = false;
158 bool m_totalUpfrontPriceHasBeenSet = false;
159 bool m_responseMetadataHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
PurchaseHostReservationResponse & WithTotalUpfrontPrice(TotalUpfrontPriceT &&value)
PurchaseHostReservationResponse & WithTotalHourlyPrice(TotalHourlyPriceT &&value)
AWS_EC2_API PurchaseHostReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseHostReservationResponse & WithCurrencyCode(CurrencyCodeValues value)
PurchaseHostReservationResponse & WithResponseMetadata(ResponseMetadataT &&value)
PurchaseHostReservationResponse & AddPurchase(PurchaseT &&value)
PurchaseHostReservationResponse & WithClientToken(ClientTokenT &&value)
AWS_EC2_API PurchaseHostReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseHostReservationResponse & WithPurchase(PurchaseT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument