AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
37
38
40
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
50 inline PurchaseHostReservationResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline PurchaseHostReservationResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline PurchaseHostReservationResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
61 inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
62 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCode = value; }
63 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCode = std::move(value); }
65 inline PurchaseHostReservationResponse& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<Purchase>& GetPurchase() const{ return m_purchase; }
73 inline void SetPurchase(const Aws::Vector<Purchase>& value) { m_purchase = value; }
74 inline void SetPurchase(Aws::Vector<Purchase>&& value) { m_purchase = std::move(value); }
76 inline PurchaseHostReservationResponse& WithPurchase(Aws::Vector<Purchase>&& value) { SetPurchase(std::move(value)); return *this;}
77 inline PurchaseHostReservationResponse& AddPurchase(const Purchase& value) { m_purchase.push_back(value); return *this; }
78 inline PurchaseHostReservationResponse& AddPurchase(Purchase&& value) { m_purchase.push_back(std::move(value)); return *this; }
80
82
85 inline const Aws::String& GetTotalHourlyPrice() const{ return m_totalHourlyPrice; }
86 inline void SetTotalHourlyPrice(const Aws::String& value) { m_totalHourlyPrice = value; }
87 inline void SetTotalHourlyPrice(Aws::String&& value) { m_totalHourlyPrice = std::move(value); }
88 inline void SetTotalHourlyPrice(const char* value) { m_totalHourlyPrice.assign(value); }
90 inline PurchaseHostReservationResponse& WithTotalHourlyPrice(Aws::String&& value) { SetTotalHourlyPrice(std::move(value)); return *this;}
91 inline PurchaseHostReservationResponse& WithTotalHourlyPrice(const char* value) { SetTotalHourlyPrice(value); return *this;}
93
95
99 inline const Aws::String& GetTotalUpfrontPrice() const{ return m_totalUpfrontPrice; }
100 inline void SetTotalUpfrontPrice(const Aws::String& value) { m_totalUpfrontPrice = value; }
101 inline void SetTotalUpfrontPrice(Aws::String&& value) { m_totalUpfrontPrice = std::move(value); }
102 inline void SetTotalUpfrontPrice(const char* value) { m_totalUpfrontPrice.assign(value); }
105 inline PurchaseHostReservationResponse& WithTotalUpfrontPrice(const char* value) { SetTotalUpfrontPrice(value); return *this;}
107
109
110 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
111 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
112 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
116 private:
117
118 Aws::String m_clientToken;
119
120 CurrencyCodeValues m_currencyCode;
121
122 Aws::Vector<Purchase> m_purchase;
123
124 Aws::String m_totalHourlyPrice;
125
126 Aws::String m_totalUpfrontPrice;
127
128 ResponseMetadata m_responseMetadata;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
PurchaseHostReservationResponse & WithResponseMetadata(ResponseMetadata &&value)
PurchaseHostReservationResponse & WithTotalHourlyPrice(const char *value)
PurchaseHostReservationResponse & AddPurchase(Purchase &&value)
PurchaseHostReservationResponse & WithClientToken(const char *value)
PurchaseHostReservationResponse & AddPurchase(const Purchase &value)
PurchaseHostReservationResponse & WithClientToken(Aws::String &&value)
AWS_EC2_API PurchaseHostReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseHostReservationResponse & WithTotalHourlyPrice(Aws::String &&value)
PurchaseHostReservationResponse & WithCurrencyCode(CurrencyCodeValues &&value)
PurchaseHostReservationResponse & WithClientToken(const Aws::String &value)
PurchaseHostReservationResponse & WithPurchase(Aws::Vector< Purchase > &&value)
void SetPurchase(const Aws::Vector< Purchase > &value)
PurchaseHostReservationResponse & WithTotalHourlyPrice(const Aws::String &value)
PurchaseHostReservationResponse & WithTotalUpfrontPrice(const char *value)
PurchaseHostReservationResponse & WithPurchase(const Aws::Vector< Purchase > &value)
PurchaseHostReservationResponse & WithCurrencyCode(const CurrencyCodeValues &value)
PurchaseHostReservationResponse & WithResponseMetadata(const ResponseMetadata &value)
PurchaseHostReservationResponse & WithTotalUpfrontPrice(const Aws::String &value)
PurchaseHostReservationResponse & WithTotalUpfrontPrice(Aws::String &&value)
AWS_EC2_API PurchaseHostReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument