AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PurchaseHostReservationResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/CurrencyCodeValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/Purchase.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
32 {
33 public:
34 AWS_EC2_API PurchaseHostReservationResponse() = default;
37
38
40
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 PurchaseHostReservationResponse& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
59 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
60 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
63
65
68 inline const Aws::Vector<Purchase>& GetPurchase() const { return m_purchase; }
69 template<typename PurchaseT = Aws::Vector<Purchase>>
70 void SetPurchase(PurchaseT&& value) { m_purchaseHasBeenSet = true; m_purchase = std::forward<PurchaseT>(value); }
71 template<typename PurchaseT = Aws::Vector<Purchase>>
72 PurchaseHostReservationResponse& WithPurchase(PurchaseT&& value) { SetPurchase(std::forward<PurchaseT>(value)); return *this;}
73 template<typename PurchaseT = Purchase>
74 PurchaseHostReservationResponse& AddPurchase(PurchaseT&& value) { m_purchaseHasBeenSet = true; m_purchase.emplace_back(std::forward<PurchaseT>(value)); return *this; }
76
78
81 inline const Aws::String& GetTotalHourlyPrice() const { return m_totalHourlyPrice; }
82 template<typename TotalHourlyPriceT = Aws::String>
83 void SetTotalHourlyPrice(TotalHourlyPriceT&& value) { m_totalHourlyPriceHasBeenSet = true; m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value); }
84 template<typename TotalHourlyPriceT = Aws::String>
85 PurchaseHostReservationResponse& WithTotalHourlyPrice(TotalHourlyPriceT&& value) { SetTotalHourlyPrice(std::forward<TotalHourlyPriceT>(value)); return *this;}
87
89
93 inline const Aws::String& GetTotalUpfrontPrice() const { return m_totalUpfrontPrice; }
94 template<typename TotalUpfrontPriceT = Aws::String>
95 void SetTotalUpfrontPrice(TotalUpfrontPriceT&& value) { m_totalUpfrontPriceHasBeenSet = true; m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value); }
96 template<typename TotalUpfrontPriceT = Aws::String>
97 PurchaseHostReservationResponse& WithTotalUpfrontPrice(TotalUpfrontPriceT&& value) { SetTotalUpfrontPrice(std::forward<TotalUpfrontPriceT>(value)); return *this;}
99
101
102 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
103 template<typename ResponseMetadataT = ResponseMetadata>
104 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
105 template<typename ResponseMetadataT = ResponseMetadata>
106 PurchaseHostReservationResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
108 private:
109
110 Aws::String m_clientToken;
111 bool m_clientTokenHasBeenSet = false;
112
114 bool m_currencyCodeHasBeenSet = false;
115
116 Aws::Vector<Purchase> m_purchase;
117 bool m_purchaseHasBeenSet = false;
118
119 Aws::String m_totalHourlyPrice;
120 bool m_totalHourlyPriceHasBeenSet = false;
121
122 Aws::String m_totalUpfrontPrice;
123 bool m_totalUpfrontPriceHasBeenSet = false;
124
125 ResponseMetadata m_responseMetadata;
126 bool m_responseMetadataHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // 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