AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
46 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
49
51
55 inline const Aws::Vector<Purchase>& GetPurchase() const { return m_purchase; }
56 template<typename PurchaseT = Aws::Vector<Purchase>>
57 void SetPurchase(PurchaseT&& value) { m_purchaseHasBeenSet = true; m_purchase = std::forward<PurchaseT>(value); }
58 template<typename PurchaseT = Aws::Vector<Purchase>>
59 GetHostReservationPurchasePreviewResponse& WithPurchase(PurchaseT&& value) { SetPurchase(std::forward<PurchaseT>(value)); return *this;}
60 template<typename PurchaseT = Purchase>
61 GetHostReservationPurchasePreviewResponse& AddPurchase(PurchaseT&& value) { m_purchaseHasBeenSet = true; m_purchase.emplace_back(std::forward<PurchaseT>(value)); return *this; }
63
65
68 inline const Aws::String& GetTotalHourlyPrice() const { return m_totalHourlyPrice; }
69 template<typename TotalHourlyPriceT = Aws::String>
70 void SetTotalHourlyPrice(TotalHourlyPriceT&& value) { m_totalHourlyPriceHasBeenSet = true; m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value); }
71 template<typename TotalHourlyPriceT = Aws::String>
72 GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(TotalHourlyPriceT&& value) { SetTotalHourlyPrice(std::forward<TotalHourlyPriceT>(value)); return *this;}
74
76
79 inline const Aws::String& GetTotalUpfrontPrice() const { return m_totalUpfrontPrice; }
80 template<typename TotalUpfrontPriceT = Aws::String>
81 void SetTotalUpfrontPrice(TotalUpfrontPriceT&& value) { m_totalUpfrontPriceHasBeenSet = true; m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value); }
82 template<typename TotalUpfrontPriceT = Aws::String>
83 GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(TotalUpfrontPriceT&& value) { SetTotalUpfrontPrice(std::forward<TotalUpfrontPriceT>(value)); return *this;}
85
87
88 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
89 template<typename ResponseMetadataT = ResponseMetadata>
90 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
91 template<typename ResponseMetadataT = ResponseMetadata>
92 GetHostReservationPurchasePreviewResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
94 private:
95
97 bool m_currencyCodeHasBeenSet = false;
98
99 Aws::Vector<Purchase> m_purchase;
100 bool m_purchaseHasBeenSet = false;
101
102 Aws::String m_totalHourlyPrice;
103 bool m_totalHourlyPriceHasBeenSet = false;
104
105 Aws::String m_totalUpfrontPrice;
106 bool m_totalUpfrontPriceHasBeenSet = false;
107
108 ResponseMetadata m_responseMetadata;
109 bool m_responseMetadataHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(TotalUpfrontPriceT &&value)
GetHostReservationPurchasePreviewResponse & WithResponseMetadata(ResponseMetadataT &&value)
GetHostReservationPurchasePreviewResponse & AddPurchase(PurchaseT &&value)
GetHostReservationPurchasePreviewResponse & WithPurchase(PurchaseT &&value)
GetHostReservationPurchasePreviewResponse & WithCurrencyCode(CurrencyCodeValues value)
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(TotalHourlyPriceT &&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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument