AWS SDK for C++

AWS SDK for C++ Version 1.11.825

Loading...
Searching...
No Matches
UpdateQuoteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/outposts/model/PaymentTerm.h>
13#include <aws/outposts/model/QuoteCapacity.h>
14#include <aws/outposts/model/QuoteConstraint.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Outposts {
20namespace Model {
21
25 public:
26 AWS_OUTPOSTS_API UpdateQuoteRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateQuote"; }
33
34 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetQuoteIdentifier() const { return m_quoteIdentifier; }
41 inline bool QuoteIdentifierHasBeenSet() const { return m_quoteIdentifierHasBeenSet; }
42 template <typename QuoteIdentifierT = Aws::String>
43 void SetQuoteIdentifier(QuoteIdentifierT&& value) {
44 m_quoteIdentifierHasBeenSet = true;
45 m_quoteIdentifier = std::forward<QuoteIdentifierT>(value);
46 }
47 template <typename QuoteIdentifierT = Aws::String>
48 UpdateQuoteRequest& WithQuoteIdentifier(QuoteIdentifierT&& value) {
49 SetQuoteIdentifier(std::forward<QuoteIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
60 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
61 template <typename OutpostIdentifierT = Aws::String>
62 void SetOutpostIdentifier(OutpostIdentifierT&& value) {
63 m_outpostIdentifierHasBeenSet = true;
64 m_outpostIdentifier = std::forward<OutpostIdentifierT>(value);
65 }
66 template <typename OutpostIdentifierT = Aws::String>
67 UpdateQuoteRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) {
68 SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
78 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
79 template <typename CountryCodeT = Aws::String>
80 void SetCountryCode(CountryCodeT&& value) {
81 m_countryCodeHasBeenSet = true;
82 m_countryCode = std::forward<CountryCodeT>(value);
83 }
84 template <typename CountryCodeT = Aws::String>
85 UpdateQuoteRequest& WithCountryCode(CountryCodeT&& value) {
86 SetCountryCode(std::forward<CountryCodeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<QuoteCapacity>& GetRequestedCapacities() const { return m_requestedCapacities; }
96 inline bool RequestedCapacitiesHasBeenSet() const { return m_requestedCapacitiesHasBeenSet; }
97 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
98 void SetRequestedCapacities(RequestedCapacitiesT&& value) {
99 m_requestedCapacitiesHasBeenSet = true;
100 m_requestedCapacities = std::forward<RequestedCapacitiesT>(value);
101 }
102 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
103 UpdateQuoteRequest& WithRequestedCapacities(RequestedCapacitiesT&& value) {
104 SetRequestedCapacities(std::forward<RequestedCapacitiesT>(value));
105 return *this;
106 }
107 template <typename RequestedCapacitiesT = QuoteCapacity>
108 UpdateQuoteRequest& AddRequestedCapacities(RequestedCapacitiesT&& value) {
109 m_requestedCapacitiesHasBeenSet = true;
110 m_requestedCapacities.emplace_back(std::forward<RequestedCapacitiesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<QuoteConstraint>& GetRequestedConstraints() const { return m_requestedConstraints; }
120 inline bool RequestedConstraintsHasBeenSet() const { return m_requestedConstraintsHasBeenSet; }
121 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
122 void SetRequestedConstraints(RequestedConstraintsT&& value) {
123 m_requestedConstraintsHasBeenSet = true;
124 m_requestedConstraints = std::forward<RequestedConstraintsT>(value);
125 }
126 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
127 UpdateQuoteRequest& WithRequestedConstraints(RequestedConstraintsT&& value) {
128 SetRequestedConstraints(std::forward<RequestedConstraintsT>(value));
129 return *this;
130 }
131 template <typename RequestedConstraintsT = QuoteConstraint>
132 UpdateQuoteRequest& AddRequestedConstraints(RequestedConstraintsT&& value) {
133 m_requestedConstraintsHasBeenSet = true;
134 m_requestedConstraints.emplace_back(std::forward<RequestedConstraintsT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<PaymentOption>& GetRequestedPaymentOptions() const { return m_requestedPaymentOptions; }
144 inline bool RequestedPaymentOptionsHasBeenSet() const { return m_requestedPaymentOptionsHasBeenSet; }
145 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
146 void SetRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
147 m_requestedPaymentOptionsHasBeenSet = true;
148 m_requestedPaymentOptions = std::forward<RequestedPaymentOptionsT>(value);
149 }
150 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
151 UpdateQuoteRequest& WithRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
152 SetRequestedPaymentOptions(std::forward<RequestedPaymentOptionsT>(value));
153 return *this;
154 }
156 m_requestedPaymentOptionsHasBeenSet = true;
157 m_requestedPaymentOptions.push_back(value);
158 return *this;
159 }
161
163
166 inline const Aws::Vector<PaymentTerm>& GetRequestedPaymentTerms() const { return m_requestedPaymentTerms; }
167 inline bool RequestedPaymentTermsHasBeenSet() const { return m_requestedPaymentTermsHasBeenSet; }
168 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
169 void SetRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
170 m_requestedPaymentTermsHasBeenSet = true;
171 m_requestedPaymentTerms = std::forward<RequestedPaymentTermsT>(value);
172 }
173 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
174 UpdateQuoteRequest& WithRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
175 SetRequestedPaymentTerms(std::forward<RequestedPaymentTermsT>(value));
176 return *this;
177 }
179 m_requestedPaymentTermsHasBeenSet = true;
180 m_requestedPaymentTerms.push_back(value);
181 return *this;
182 }
184
186
189 inline const Aws::String& GetDescription() const { return m_description; }
190 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
191 template <typename DescriptionT = Aws::String>
192 void SetDescription(DescriptionT&& value) {
193 m_descriptionHasBeenSet = true;
194 m_description = std::forward<DescriptionT>(value);
195 }
196 template <typename DescriptionT = Aws::String>
197 UpdateQuoteRequest& WithDescription(DescriptionT&& value) {
198 SetDescription(std::forward<DescriptionT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_quoteIdentifier;
204
205 Aws::String m_outpostIdentifier;
206
207 Aws::String m_countryCode;
208
209 Aws::Vector<QuoteCapacity> m_requestedCapacities;
210
211 Aws::Vector<QuoteConstraint> m_requestedConstraints;
212
213 Aws::Vector<PaymentOption> m_requestedPaymentOptions;
214
215 Aws::Vector<PaymentTerm> m_requestedPaymentTerms;
216
217 Aws::String m_description;
218 bool m_quoteIdentifierHasBeenSet = false;
219 bool m_outpostIdentifierHasBeenSet = false;
220 bool m_countryCodeHasBeenSet = false;
221 bool m_requestedCapacitiesHasBeenSet = false;
222 bool m_requestedConstraintsHasBeenSet = false;
223 bool m_requestedPaymentOptionsHasBeenSet = false;
224 bool m_requestedPaymentTermsHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace Outposts
230} // namespace Aws
UpdateQuoteRequest & AddRequestedConstraints(RequestedConstraintsT &&value)
UpdateQuoteRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
const Aws::String & GetCountryCode() const
UpdateQuoteRequest & WithQuoteIdentifier(QuoteIdentifierT &&value)
void SetQuoteIdentifier(QuoteIdentifierT &&value)
void SetRequestedCapacities(RequestedCapacitiesT &&value)
void SetRequestedPaymentTerms(RequestedPaymentTermsT &&value)
UpdateQuoteRequest & WithRequestedPaymentTerms(RequestedPaymentTermsT &&value)
const Aws::Vector< PaymentTerm > & GetRequestedPaymentTerms() const
UpdateQuoteRequest & WithRequestedConstraints(RequestedConstraintsT &&value)
AWS_OUTPOSTS_API UpdateQuoteRequest()=default
void SetRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
void SetRequestedConstraints(RequestedConstraintsT &&value)
UpdateQuoteRequest & WithRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
const Aws::Vector< PaymentOption > & GetRequestedPaymentOptions() const
void SetOutpostIdentifier(OutpostIdentifierT &&value)
const Aws::String & GetQuoteIdentifier() const
virtual const char * GetServiceRequestName() const override
UpdateQuoteRequest & AddRequestedPaymentTerms(PaymentTerm value)
UpdateQuoteRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< QuoteCapacity > & GetRequestedCapacities() const
UpdateQuoteRequest & WithCountryCode(CountryCodeT &&value)
const Aws::String & GetOutpostIdentifier() const
const Aws::Vector< QuoteConstraint > & GetRequestedConstraints() const
UpdateQuoteRequest & AddRequestedCapacities(RequestedCapacitiesT &&value)
UpdateQuoteRequest & AddRequestedPaymentOptions(PaymentOption value)
UpdateQuoteRequest & WithRequestedCapacities(RequestedCapacitiesT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector