AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PurchaseHostReservationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CurrencyCodeValues.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API PurchaseHostReservationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PurchaseHostReservation"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template<typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
53 template<typename ClientTokenT = Aws::String>
54 PurchaseHostReservationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
56
58
63 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
64 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
65 inline void SetCurrencyCode(CurrencyCodeValues value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
68
70
74 inline const Aws::Vector<Aws::String>& GetHostIdSet() const { return m_hostIdSet; }
75 inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; }
76 template<typename HostIdSetT = Aws::Vector<Aws::String>>
77 void SetHostIdSet(HostIdSetT&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = std::forward<HostIdSetT>(value); }
78 template<typename HostIdSetT = Aws::Vector<Aws::String>>
79 PurchaseHostReservationRequest& WithHostIdSet(HostIdSetT&& value) { SetHostIdSet(std::forward<HostIdSetT>(value)); return *this;}
80 template<typename HostIdSetT = Aws::String>
81 PurchaseHostReservationRequest& AddHostIdSet(HostIdSetT&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.emplace_back(std::forward<HostIdSetT>(value)); return *this; }
83
85
94 inline const Aws::String& GetLimitPrice() const { return m_limitPrice; }
95 inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; }
96 template<typename LimitPriceT = Aws::String>
97 void SetLimitPrice(LimitPriceT&& value) { m_limitPriceHasBeenSet = true; m_limitPrice = std::forward<LimitPriceT>(value); }
98 template<typename LimitPriceT = Aws::String>
99 PurchaseHostReservationRequest& WithLimitPrice(LimitPriceT&& value) { SetLimitPrice(std::forward<LimitPriceT>(value)); return *this;}
101
103
106 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
107 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
108 template<typename OfferingIdT = Aws::String>
109 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::forward<OfferingIdT>(value); }
110 template<typename OfferingIdT = Aws::String>
111 PurchaseHostReservationRequest& WithOfferingId(OfferingIdT&& value) { SetOfferingId(std::forward<OfferingIdT>(value)); return *this;}
113
115
118 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
119 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
120 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
121 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
122 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
123 PurchaseHostReservationRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
124 template<typename TagSpecificationsT = TagSpecification>
125 PurchaseHostReservationRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
127 private:
128
129 Aws::String m_clientToken;
130 bool m_clientTokenHasBeenSet = false;
131
133 bool m_currencyCodeHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_hostIdSet;
136 bool m_hostIdSetHasBeenSet = false;
137
138 Aws::String m_limitPrice;
139 bool m_limitPriceHasBeenSet = false;
140
141 Aws::String m_offeringId;
142 bool m_offeringIdHasBeenSet = false;
143
144 Aws::Vector<TagSpecification> m_tagSpecifications;
145 bool m_tagSpecificationsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
PurchaseHostReservationRequest & WithCurrencyCode(CurrencyCodeValues value)
PurchaseHostReservationRequest & WithLimitPrice(LimitPriceT &&value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
PurchaseHostReservationRequest & AddHostIdSet(HostIdSetT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
PurchaseHostReservationRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseHostReservationRequest & WithHostIdSet(HostIdSetT &&value)
PurchaseHostReservationRequest & WithClientToken(ClientTokenT &&value)
PurchaseHostReservationRequest & AddTagSpecifications(TagSpecificationsT &&value)
PurchaseHostReservationRequest & WithOfferingId(OfferingIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector