AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetHostReservationPurchasePreviewResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/model/CurrencyCodeValues.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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
45 inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
46 inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCode = value; }
47 inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCode = std::move(value); }
51
53
57 inline const Aws::Vector<Purchase>& GetPurchase() const{ return m_purchase; }
58 inline void SetPurchase(const Aws::Vector<Purchase>& value) { m_purchase = value; }
59 inline void SetPurchase(Aws::Vector<Purchase>&& value) { m_purchase = std::move(value); }
62 inline GetHostReservationPurchasePreviewResponse& AddPurchase(const Purchase& value) { m_purchase.push_back(value); return *this; }
63 inline GetHostReservationPurchasePreviewResponse& AddPurchase(Purchase&& value) { m_purchase.push_back(std::move(value)); return *this; }
65
67
70 inline const Aws::String& GetTotalHourlyPrice() const{ return m_totalHourlyPrice; }
71 inline void SetTotalHourlyPrice(const Aws::String& value) { m_totalHourlyPrice = value; }
72 inline void SetTotalHourlyPrice(Aws::String&& value) { m_totalHourlyPrice = std::move(value); }
73 inline void SetTotalHourlyPrice(const char* value) { m_totalHourlyPrice.assign(value); }
78
80
83 inline const Aws::String& GetTotalUpfrontPrice() const{ return m_totalUpfrontPrice; }
84 inline void SetTotalUpfrontPrice(const Aws::String& value) { m_totalUpfrontPrice = value; }
85 inline void SetTotalUpfrontPrice(Aws::String&& value) { m_totalUpfrontPrice = std::move(value); }
86 inline void SetTotalUpfrontPrice(const char* value) { m_totalUpfrontPrice.assign(value); }
91
93
94 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
95 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
96 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
100 private:
101
102 CurrencyCodeValues m_currencyCode;
103
104 Aws::Vector<Purchase> m_purchase;
105
106 Aws::String m_totalHourlyPrice;
107
108 Aws::String m_totalUpfrontPrice;
109
110 ResponseMetadata m_responseMetadata;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(Aws::String &&value)
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(const char *value)
GetHostReservationPurchasePreviewResponse & WithCurrencyCode(const CurrencyCodeValues &value)
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(const char *value)
GetHostReservationPurchasePreviewResponse & AddPurchase(const Purchase &value)
GetHostReservationPurchasePreviewResponse & WithCurrencyCode(CurrencyCodeValues &&value)
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(const Aws::String &value)
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(const Aws::String &value)
GetHostReservationPurchasePreviewResponse & AddPurchase(Purchase &&value)
GetHostReservationPurchasePreviewResponse & WithResponseMetadata(ResponseMetadata &&value)
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(Aws::String &&value)
GetHostReservationPurchasePreviewResponse & WithResponseMetadata(const ResponseMetadata &value)
GetHostReservationPurchasePreviewResponse & WithPurchase(const Aws::Vector< Purchase > &value)
AWS_EC2_API GetHostReservationPurchasePreviewResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API GetHostReservationPurchasePreviewResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetHostReservationPurchasePreviewResponse & WithPurchase(Aws::Vector< Purchase > &&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