AWS SDK for C++

AWS SDK for C++ Version 1.11.840

Loading...
Searching...
No Matches
CreateOrderRequest.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/LineItemRequest.h>
12#include <aws/outposts/model/PaymentOption.h>
13#include <aws/outposts/model/PaymentTerm.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Outposts {
19namespace Model {
20
24 public:
25 AWS_OUTPOSTS_API CreateOrderRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateOrder"; }
32
33 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
40 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
41 template <typename OutpostIdentifierT = Aws::String>
42 void SetOutpostIdentifier(OutpostIdentifierT&& value) {
43 m_outpostIdentifierHasBeenSet = true;
44 m_outpostIdentifier = std::forward<OutpostIdentifierT>(value);
45 }
46 template <typename OutpostIdentifierT = Aws::String>
47 CreateOrderRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) {
48 SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetQuoteIdentifier() const { return m_quoteIdentifier; }
58 inline bool QuoteIdentifierHasBeenSet() const { return m_quoteIdentifierHasBeenSet; }
59 template <typename QuoteIdentifierT = Aws::String>
60 void SetQuoteIdentifier(QuoteIdentifierT&& value) {
61 m_quoteIdentifierHasBeenSet = true;
62 m_quoteIdentifier = std::forward<QuoteIdentifierT>(value);
63 }
64 template <typename QuoteIdentifierT = Aws::String>
65 CreateOrderRequest& WithQuoteIdentifier(QuoteIdentifierT&& value) {
66 SetQuoteIdentifier(std::forward<QuoteIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetQuoteOptionIdentifier() const { return m_quoteOptionIdentifier; }
76 inline bool QuoteOptionIdentifierHasBeenSet() const { return m_quoteOptionIdentifierHasBeenSet; }
77 template <typename QuoteOptionIdentifierT = Aws::String>
78 void SetQuoteOptionIdentifier(QuoteOptionIdentifierT&& value) {
79 m_quoteOptionIdentifierHasBeenSet = true;
80 m_quoteOptionIdentifier = std::forward<QuoteOptionIdentifierT>(value);
81 }
82 template <typename QuoteOptionIdentifierT = Aws::String>
83 CreateOrderRequest& WithQuoteOptionIdentifier(QuoteOptionIdentifierT&& value) {
84 SetQuoteOptionIdentifier(std::forward<QuoteOptionIdentifierT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<LineItemRequest>& GetLineItems() const { return m_lineItems; }
94 inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; }
95 template <typename LineItemsT = Aws::Vector<LineItemRequest>>
96 void SetLineItems(LineItemsT&& value) {
97 m_lineItemsHasBeenSet = true;
98 m_lineItems = std::forward<LineItemsT>(value);
99 }
100 template <typename LineItemsT = Aws::Vector<LineItemRequest>>
101 CreateOrderRequest& WithLineItems(LineItemsT&& value) {
102 SetLineItems(std::forward<LineItemsT>(value));
103 return *this;
104 }
105 template <typename LineItemsT = LineItemRequest>
106 CreateOrderRequest& AddLineItems(LineItemsT&& value) {
107 m_lineItemsHasBeenSet = true;
108 m_lineItems.emplace_back(std::forward<LineItemsT>(value));
109 return *this;
110 }
112
114
117 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
118 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
119 inline void SetPaymentOption(PaymentOption value) {
120 m_paymentOptionHasBeenSet = true;
121 m_paymentOption = value;
122 }
124 SetPaymentOption(value);
125 return *this;
126 }
128
130
133 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
134 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
135 inline void SetPaymentTerm(PaymentTerm value) {
136 m_paymentTermHasBeenSet = true;
137 m_paymentTerm = value;
138 }
140 SetPaymentTerm(value);
141 return *this;
142 }
144 private:
145 Aws::String m_outpostIdentifier;
146
147 Aws::String m_quoteIdentifier;
148
149 Aws::String m_quoteOptionIdentifier;
150
152
153 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
154
155 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
156 bool m_outpostIdentifierHasBeenSet = false;
157 bool m_quoteIdentifierHasBeenSet = false;
158 bool m_quoteOptionIdentifierHasBeenSet = false;
159 bool m_lineItemsHasBeenSet = false;
160 bool m_paymentOptionHasBeenSet = false;
161 bool m_paymentTermHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Outposts
166} // namespace Aws
const Aws::String & GetOutpostIdentifier() const
AWS_OUTPOSTS_API CreateOrderRequest()=default
virtual const char * GetServiceRequestName() const override
void SetQuoteOptionIdentifier(QuoteOptionIdentifierT &&value)
void SetOutpostIdentifier(OutpostIdentifierT &&value)
CreateOrderRequest & WithPaymentTerm(PaymentTerm value)
const Aws::String & GetQuoteIdentifier() const
CreateOrderRequest & WithPaymentOption(PaymentOption value)
CreateOrderRequest & WithQuoteOptionIdentifier(QuoteOptionIdentifierT &&value)
CreateOrderRequest & WithQuoteIdentifier(QuoteIdentifierT &&value)
void SetQuoteIdentifier(QuoteIdentifierT &&value)
CreateOrderRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
CreateOrderRequest & AddLineItems(LineItemsT &&value)
const Aws::Vector< LineItemRequest > & GetLineItems() const
CreateOrderRequest & WithLineItems(LineItemsT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
const Aws::String & GetQuoteOptionIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector