AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
Quote.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/OrderingRequirement.h>
12#include <aws/outposts/model/PaymentOption.h>
13#include <aws/outposts/model/PaymentTerm.h>
14#include <aws/outposts/model/QuoteCapacity.h>
15#include <aws/outposts/model/QuoteConstraint.h>
16#include <aws/outposts/model/QuoteOption.h>
17#include <aws/outposts/model/QuoteStatus.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Outposts {
29namespace Model {
30
37class Quote {
38 public:
39 AWS_OUTPOSTS_API Quote() = default;
40 AWS_OUTPOSTS_API Quote(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OUTPOSTS_API Quote& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetQuoteId() const { return m_quoteId; }
49 inline bool QuoteIdHasBeenSet() const { return m_quoteIdHasBeenSet; }
50 template <typename QuoteIdT = Aws::String>
51 void SetQuoteId(QuoteIdT&& value) {
52 m_quoteIdHasBeenSet = true;
53 m_quoteId = std::forward<QuoteIdT>(value);
54 }
55 template <typename QuoteIdT = Aws::String>
56 Quote& WithQuoteId(QuoteIdT&& value) {
57 SetQuoteId(std::forward<QuoteIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetAccountId() const { return m_accountId; }
67 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
68 template <typename AccountIdT = Aws::String>
69 void SetAccountId(AccountIdT&& value) {
70 m_accountIdHasBeenSet = true;
71 m_accountId = std::forward<AccountIdT>(value);
72 }
73 template <typename AccountIdT = Aws::String>
74 Quote& WithAccountId(AccountIdT&& value) {
75 SetAccountId(std::forward<AccountIdT>(value));
76 return *this;
77 }
79
81
88 inline QuoteStatus GetQuoteStatus() const { return m_quoteStatus; }
89 inline bool QuoteStatusHasBeenSet() const { return m_quoteStatusHasBeenSet; }
90 inline void SetQuoteStatus(QuoteStatus value) {
91 m_quoteStatusHasBeenSet = true;
92 m_quoteStatus = value;
93 }
95 SetQuoteStatus(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
105 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
106 template <typename StatusMessageT = Aws::String>
107 void SetStatusMessage(StatusMessageT&& value) {
108 m_statusMessageHasBeenSet = true;
109 m_statusMessage = std::forward<StatusMessageT>(value);
110 }
111 template <typename StatusMessageT = Aws::String>
112 Quote& WithStatusMessage(StatusMessageT&& value) {
113 SetStatusMessage(std::forward<StatusMessageT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
123 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
124 template <typename OutpostArnT = Aws::String>
125 void SetOutpostArn(OutpostArnT&& value) {
126 m_outpostArnHasBeenSet = true;
127 m_outpostArn = std::forward<OutpostArnT>(value);
128 }
129 template <typename OutpostArnT = Aws::String>
130 Quote& WithOutpostArn(OutpostArnT&& value) {
131 SetOutpostArn(std::forward<OutpostArnT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
141 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
142 template <typename CountryCodeT = Aws::String>
143 void SetCountryCode(CountryCodeT&& value) {
144 m_countryCodeHasBeenSet = true;
145 m_countryCode = std::forward<CountryCodeT>(value);
146 }
147 template <typename CountryCodeT = Aws::String>
148 Quote& WithCountryCode(CountryCodeT&& value) {
149 SetCountryCode(std::forward<CountryCodeT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<QuoteCapacity>& GetRequestedCapacities() const { return m_requestedCapacities; }
159 inline bool RequestedCapacitiesHasBeenSet() const { return m_requestedCapacitiesHasBeenSet; }
160 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
161 void SetRequestedCapacities(RequestedCapacitiesT&& value) {
162 m_requestedCapacitiesHasBeenSet = true;
163 m_requestedCapacities = std::forward<RequestedCapacitiesT>(value);
164 }
165 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
166 Quote& WithRequestedCapacities(RequestedCapacitiesT&& value) {
167 SetRequestedCapacities(std::forward<RequestedCapacitiesT>(value));
168 return *this;
169 }
170 template <typename RequestedCapacitiesT = QuoteCapacity>
171 Quote& AddRequestedCapacities(RequestedCapacitiesT&& value) {
172 m_requestedCapacitiesHasBeenSet = true;
173 m_requestedCapacities.emplace_back(std::forward<RequestedCapacitiesT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<QuoteConstraint>& GetRequestedConstraints() const { return m_requestedConstraints; }
183 inline bool RequestedConstraintsHasBeenSet() const { return m_requestedConstraintsHasBeenSet; }
184 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
185 void SetRequestedConstraints(RequestedConstraintsT&& value) {
186 m_requestedConstraintsHasBeenSet = true;
187 m_requestedConstraints = std::forward<RequestedConstraintsT>(value);
188 }
189 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
190 Quote& WithRequestedConstraints(RequestedConstraintsT&& value) {
191 SetRequestedConstraints(std::forward<RequestedConstraintsT>(value));
192 return *this;
193 }
194 template <typename RequestedConstraintsT = QuoteConstraint>
195 Quote& AddRequestedConstraints(RequestedConstraintsT&& value) {
196 m_requestedConstraintsHasBeenSet = true;
197 m_requestedConstraints.emplace_back(std::forward<RequestedConstraintsT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<PaymentOption>& GetRequestedPaymentOptions() const { return m_requestedPaymentOptions; }
207 inline bool RequestedPaymentOptionsHasBeenSet() const { return m_requestedPaymentOptionsHasBeenSet; }
208 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
209 void SetRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
210 m_requestedPaymentOptionsHasBeenSet = true;
211 m_requestedPaymentOptions = std::forward<RequestedPaymentOptionsT>(value);
212 }
213 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
214 Quote& WithRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
215 SetRequestedPaymentOptions(std::forward<RequestedPaymentOptionsT>(value));
216 return *this;
217 }
219 m_requestedPaymentOptionsHasBeenSet = true;
220 m_requestedPaymentOptions.push_back(value);
221 return *this;
222 }
224
226
229 inline const Aws::Vector<PaymentTerm>& GetRequestedPaymentTerms() const { return m_requestedPaymentTerms; }
230 inline bool RequestedPaymentTermsHasBeenSet() const { return m_requestedPaymentTermsHasBeenSet; }
231 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
232 void SetRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
233 m_requestedPaymentTermsHasBeenSet = true;
234 m_requestedPaymentTerms = std::forward<RequestedPaymentTermsT>(value);
235 }
236 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
237 Quote& WithRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
238 SetRequestedPaymentTerms(std::forward<RequestedPaymentTermsT>(value));
239 return *this;
240 }
242 m_requestedPaymentTermsHasBeenSet = true;
243 m_requestedPaymentTerms.push_back(value);
244 return *this;
245 }
247
249
253 inline const Aws::Vector<QuoteOption>& GetQuoteOptions() const { return m_quoteOptions; }
254 inline bool QuoteOptionsHasBeenSet() const { return m_quoteOptionsHasBeenSet; }
255 template <typename QuoteOptionsT = Aws::Vector<QuoteOption>>
256 void SetQuoteOptions(QuoteOptionsT&& value) {
257 m_quoteOptionsHasBeenSet = true;
258 m_quoteOptions = std::forward<QuoteOptionsT>(value);
259 }
260 template <typename QuoteOptionsT = Aws::Vector<QuoteOption>>
261 Quote& WithQuoteOptions(QuoteOptionsT&& value) {
262 SetQuoteOptions(std::forward<QuoteOptionsT>(value));
263 return *this;
264 }
265 template <typename QuoteOptionsT = QuoteOption>
266 Quote& AddQuoteOptions(QuoteOptionsT&& value) {
267 m_quoteOptionsHasBeenSet = true;
268 m_quoteOptions.emplace_back(std::forward<QuoteOptionsT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::Vector<OrderingRequirement>& GetOrderingRequirements() const { return m_orderingRequirements; }
279 inline bool OrderingRequirementsHasBeenSet() const { return m_orderingRequirementsHasBeenSet; }
280 template <typename OrderingRequirementsT = Aws::Vector<OrderingRequirement>>
281 void SetOrderingRequirements(OrderingRequirementsT&& value) {
282 m_orderingRequirementsHasBeenSet = true;
283 m_orderingRequirements = std::forward<OrderingRequirementsT>(value);
284 }
285 template <typename OrderingRequirementsT = Aws::Vector<OrderingRequirement>>
286 Quote& WithOrderingRequirements(OrderingRequirementsT&& value) {
287 SetOrderingRequirements(std::forward<OrderingRequirementsT>(value));
288 return *this;
289 }
290 template <typename OrderingRequirementsT = OrderingRequirement>
291 Quote& AddOrderingRequirements(OrderingRequirementsT&& value) {
292 m_orderingRequirementsHasBeenSet = true;
293 m_orderingRequirements.emplace_back(std::forward<OrderingRequirementsT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::String& GetSubmittedOrderId() const { return m_submittedOrderId; }
303 inline bool SubmittedOrderIdHasBeenSet() const { return m_submittedOrderIdHasBeenSet; }
304 template <typename SubmittedOrderIdT = Aws::String>
305 void SetSubmittedOrderId(SubmittedOrderIdT&& value) {
306 m_submittedOrderIdHasBeenSet = true;
307 m_submittedOrderId = std::forward<SubmittedOrderIdT>(value);
308 }
309 template <typename SubmittedOrderIdT = Aws::String>
310 Quote& WithSubmittedOrderId(SubmittedOrderIdT&& value) {
311 SetSubmittedOrderId(std::forward<SubmittedOrderIdT>(value));
312 return *this;
313 }
315
317
320 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
321 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
322 template <typename CreatedDateT = Aws::Utils::DateTime>
323 void SetCreatedDate(CreatedDateT&& value) {
324 m_createdDateHasBeenSet = true;
325 m_createdDate = std::forward<CreatedDateT>(value);
326 }
327 template <typename CreatedDateT = Aws::Utils::DateTime>
328 Quote& WithCreatedDate(CreatedDateT&& value) {
329 SetCreatedDate(std::forward<CreatedDateT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
339 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
340 template <typename ExpirationDateT = Aws::Utils::DateTime>
341 void SetExpirationDate(ExpirationDateT&& value) {
342 m_expirationDateHasBeenSet = true;
343 m_expirationDate = std::forward<ExpirationDateT>(value);
344 }
345 template <typename ExpirationDateT = Aws::Utils::DateTime>
346 Quote& WithExpirationDate(ExpirationDateT&& value) {
347 SetExpirationDate(std::forward<ExpirationDateT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::String& GetDescription() const { return m_description; }
357 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
358 template <typename DescriptionT = Aws::String>
359 void SetDescription(DescriptionT&& value) {
360 m_descriptionHasBeenSet = true;
361 m_description = std::forward<DescriptionT>(value);
362 }
363 template <typename DescriptionT = Aws::String>
364 Quote& WithDescription(DescriptionT&& value) {
365 SetDescription(std::forward<DescriptionT>(value));
366 return *this;
367 }
369 private:
370 Aws::String m_quoteId;
371
372 Aws::String m_accountId;
373
374 QuoteStatus m_quoteStatus{QuoteStatus::NOT_SET};
375
376 Aws::String m_statusMessage;
377
378 Aws::String m_outpostArn;
379
380 Aws::String m_countryCode;
381
382 Aws::Vector<QuoteCapacity> m_requestedCapacities;
383
384 Aws::Vector<QuoteConstraint> m_requestedConstraints;
385
386 Aws::Vector<PaymentOption> m_requestedPaymentOptions;
387
388 Aws::Vector<PaymentTerm> m_requestedPaymentTerms;
389
390 Aws::Vector<QuoteOption> m_quoteOptions;
391
392 Aws::Vector<OrderingRequirement> m_orderingRequirements;
393
394 Aws::String m_submittedOrderId;
395
396 Aws::Utils::DateTime m_createdDate{};
397
398 Aws::Utils::DateTime m_expirationDate{};
399
400 Aws::String m_description;
401 bool m_quoteIdHasBeenSet = false;
402 bool m_accountIdHasBeenSet = false;
403 bool m_quoteStatusHasBeenSet = false;
404 bool m_statusMessageHasBeenSet = false;
405 bool m_outpostArnHasBeenSet = false;
406 bool m_countryCodeHasBeenSet = false;
407 bool m_requestedCapacitiesHasBeenSet = false;
408 bool m_requestedConstraintsHasBeenSet = false;
409 bool m_requestedPaymentOptionsHasBeenSet = false;
410 bool m_requestedPaymentTermsHasBeenSet = false;
411 bool m_quoteOptionsHasBeenSet = false;
412 bool m_orderingRequirementsHasBeenSet = false;
413 bool m_submittedOrderIdHasBeenSet = false;
414 bool m_createdDateHasBeenSet = false;
415 bool m_expirationDateHasBeenSet = false;
416 bool m_descriptionHasBeenSet = false;
417};
418
419} // namespace Model
420} // namespace Outposts
421} // namespace Aws
Quote & WithQuoteOptions(QuoteOptionsT &&value)
Definition Quote.h:261
Quote & WithStatusMessage(StatusMessageT &&value)
Definition Quote.h:112
Quote & WithCreatedDate(CreatedDateT &&value)
Definition Quote.h:328
void SetRequestedCapacities(RequestedCapacitiesT &&value)
Definition Quote.h:161
bool RequestedPaymentOptionsHasBeenSet() const
Definition Quote.h:207
const Aws::Vector< PaymentOption > & GetRequestedPaymentOptions() const
Definition Quote.h:206
Quote & WithOutpostArn(OutpostArnT &&value)
Definition Quote.h:130
void SetExpirationDate(ExpirationDateT &&value)
Definition Quote.h:341
const Aws::Vector< QuoteCapacity > & GetRequestedCapacities() const
Definition Quote.h:158
Quote & WithQuoteStatus(QuoteStatus value)
Definition Quote.h:94
void SetAccountId(AccountIdT &&value)
Definition Quote.h:69
bool StatusMessageHasBeenSet() const
Definition Quote.h:105
bool QuoteIdHasBeenSet() const
Definition Quote.h:49
Quote & WithAccountId(AccountIdT &&value)
Definition Quote.h:74
void SetQuoteId(QuoteIdT &&value)
Definition Quote.h:51
bool CreatedDateHasBeenSet() const
Definition Quote.h:321
bool SubmittedOrderIdHasBeenSet() const
Definition Quote.h:303
Quote & WithOrderingRequirements(OrderingRequirementsT &&value)
Definition Quote.h:286
void SetDescription(DescriptionT &&value)
Definition Quote.h:359
const Aws::Vector< QuoteConstraint > & GetRequestedConstraints() const
Definition Quote.h:182
Quote & AddQuoteOptions(QuoteOptionsT &&value)
Definition Quote.h:266
AWS_OUTPOSTS_API Quote()=default
void SetQuoteStatus(QuoteStatus value)
Definition Quote.h:90
Quote & WithRequestedCapacities(RequestedCapacitiesT &&value)
Definition Quote.h:166
Quote & WithQuoteId(QuoteIdT &&value)
Definition Quote.h:56
void SetSubmittedOrderId(SubmittedOrderIdT &&value)
Definition Quote.h:305
bool QuoteStatusHasBeenSet() const
Definition Quote.h:89
Quote & WithRequestedPaymentTerms(RequestedPaymentTermsT &&value)
Definition Quote.h:237
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Quote.h:320
const Aws::String & GetQuoteId() const
Definition Quote.h:48
bool OutpostArnHasBeenSet() const
Definition Quote.h:123
void SetOrderingRequirements(OrderingRequirementsT &&value)
Definition Quote.h:281
const Aws::Utils::DateTime & GetExpirationDate() const
Definition Quote.h:338
bool DescriptionHasBeenSet() const
Definition Quote.h:357
Quote & WithRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
Definition Quote.h:214
bool AccountIdHasBeenSet() const
Definition Quote.h:67
const Aws::String & GetCountryCode() const
Definition Quote.h:140
Quote & WithCountryCode(CountryCodeT &&value)
Definition Quote.h:148
Quote & AddRequestedPaymentTerms(PaymentTerm value)
Definition Quote.h:241
bool RequestedConstraintsHasBeenSet() const
Definition Quote.h:183
const Aws::String & GetAccountId() const
Definition Quote.h:66
Quote & AddRequestedConstraints(RequestedConstraintsT &&value)
Definition Quote.h:195
void SetRequestedPaymentTerms(RequestedPaymentTermsT &&value)
Definition Quote.h:232
const Aws::String & GetDescription() const
Definition Quote.h:356
void SetOutpostArn(OutpostArnT &&value)
Definition Quote.h:125
void SetCreatedDate(CreatedDateT &&value)
Definition Quote.h:323
Quote & AddOrderingRequirements(OrderingRequirementsT &&value)
Definition Quote.h:291
QuoteStatus GetQuoteStatus() const
Definition Quote.h:88
bool OrderingRequirementsHasBeenSet() const
Definition Quote.h:279
void SetStatusMessage(StatusMessageT &&value)
Definition Quote.h:107
void SetCountryCode(CountryCodeT &&value)
Definition Quote.h:143
const Aws::Vector< OrderingRequirement > & GetOrderingRequirements() const
Definition Quote.h:278
Quote & AddRequestedPaymentOptions(PaymentOption value)
Definition Quote.h:218
AWS_OUTPOSTS_API Quote & operator=(Aws::Utils::Json::JsonView jsonValue)
Quote & WithDescription(DescriptionT &&value)
Definition Quote.h:364
const Aws::Vector< PaymentTerm > & GetRequestedPaymentTerms() const
Definition Quote.h:229
const Aws::String & GetStatusMessage() const
Definition Quote.h:104
bool RequestedPaymentTermsHasBeenSet() const
Definition Quote.h:230
Quote & WithRequestedConstraints(RequestedConstraintsT &&value)
Definition Quote.h:190
bool QuoteOptionsHasBeenSet() const
Definition Quote.h:254
bool CountryCodeHasBeenSet() const
Definition Quote.h:141
bool ExpirationDateHasBeenSet() const
Definition Quote.h:339
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSubmittedOrderId() const
Definition Quote.h:302
Quote & AddRequestedCapacities(RequestedCapacitiesT &&value)
Definition Quote.h:171
AWS_OUTPOSTS_API Quote(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< QuoteOption > & GetQuoteOptions() const
Definition Quote.h:253
void SetRequestedConstraints(RequestedConstraintsT &&value)
Definition Quote.h:185
void SetRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
Definition Quote.h:209
bool RequestedCapacitiesHasBeenSet() const
Definition Quote.h:159
void SetQuoteOptions(QuoteOptionsT &&value)
Definition Quote.h:256
const Aws::String & GetOutpostArn() const
Definition Quote.h:122
Quote & WithSubmittedOrderId(SubmittedOrderIdT &&value)
Definition Quote.h:310
Quote & WithExpirationDate(ExpirationDateT &&value)
Definition Quote.h:346
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue