AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Order.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/model/OrderStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/outposts/model/PaymentTerm.h>
14#include <aws/outposts/model/OrderType.h>
15#include <aws/outposts/model/LineItem.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Outposts
29{
30namespace Model
31{
32
38 class Order
39 {
40 public:
41 AWS_OUTPOSTS_API Order();
42 AWS_OUTPOSTS_API Order(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OUTPOSTS_API Order& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
52 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
53 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
54 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
55 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
56 inline Order& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
57 inline Order& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
58 inline Order& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
60
62
65 inline const Aws::String& GetOrderId() const{ return m_orderId; }
66 inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; }
67 inline void SetOrderId(const Aws::String& value) { m_orderIdHasBeenSet = true; m_orderId = value; }
68 inline void SetOrderId(Aws::String&& value) { m_orderIdHasBeenSet = true; m_orderId = std::move(value); }
69 inline void SetOrderId(const char* value) { m_orderIdHasBeenSet = true; m_orderId.assign(value); }
70 inline Order& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;}
71 inline Order& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;}
72 inline Order& WithOrderId(const char* value) { SetOrderId(value); return *this;}
74
76
88 inline const OrderStatus& GetStatus() const{ return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(const OrderStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 inline void SetStatus(OrderStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 inline Order& WithStatus(const OrderStatus& value) { SetStatus(value); return *this;}
93 inline Order& WithStatus(OrderStatus&& value) { SetStatus(std::move(value)); return *this;}
95
97
100 inline const Aws::Vector<LineItem>& GetLineItems() const{ return m_lineItems; }
101 inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; }
102 inline void SetLineItems(const Aws::Vector<LineItem>& value) { m_lineItemsHasBeenSet = true; m_lineItems = value; }
103 inline void SetLineItems(Aws::Vector<LineItem>&& value) { m_lineItemsHasBeenSet = true; m_lineItems = std::move(value); }
104 inline Order& WithLineItems(const Aws::Vector<LineItem>& value) { SetLineItems(value); return *this;}
105 inline Order& WithLineItems(Aws::Vector<LineItem>&& value) { SetLineItems(std::move(value)); return *this;}
106 inline Order& AddLineItems(const LineItem& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(value); return *this; }
107 inline Order& AddLineItems(LineItem&& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(std::move(value)); return *this; }
109
111
114 inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
115 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
116 inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
117 inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
118 inline Order& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
119 inline Order& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetOrderSubmissionDate() const{ return m_orderSubmissionDate; }
127 inline bool OrderSubmissionDateHasBeenSet() const { return m_orderSubmissionDateHasBeenSet; }
128 inline void SetOrderSubmissionDate(const Aws::Utils::DateTime& value) { m_orderSubmissionDateHasBeenSet = true; m_orderSubmissionDate = value; }
129 inline void SetOrderSubmissionDate(Aws::Utils::DateTime&& value) { m_orderSubmissionDateHasBeenSet = true; m_orderSubmissionDate = std::move(value); }
130 inline Order& WithOrderSubmissionDate(const Aws::Utils::DateTime& value) { SetOrderSubmissionDate(value); return *this;}
131 inline Order& WithOrderSubmissionDate(Aws::Utils::DateTime&& value) { SetOrderSubmissionDate(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetOrderFulfilledDate() const{ return m_orderFulfilledDate; }
139 inline bool OrderFulfilledDateHasBeenSet() const { return m_orderFulfilledDateHasBeenSet; }
140 inline void SetOrderFulfilledDate(const Aws::Utils::DateTime& value) { m_orderFulfilledDateHasBeenSet = true; m_orderFulfilledDate = value; }
141 inline void SetOrderFulfilledDate(Aws::Utils::DateTime&& value) { m_orderFulfilledDateHasBeenSet = true; m_orderFulfilledDate = std::move(value); }
142 inline Order& WithOrderFulfilledDate(const Aws::Utils::DateTime& value) { SetOrderFulfilledDate(value); return *this;}
143 inline Order& WithOrderFulfilledDate(Aws::Utils::DateTime&& value) { SetOrderFulfilledDate(std::move(value)); return *this;}
145
147
150 inline const PaymentTerm& GetPaymentTerm() const{ return m_paymentTerm; }
151 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
152 inline void SetPaymentTerm(const PaymentTerm& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = value; }
153 inline void SetPaymentTerm(PaymentTerm&& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = std::move(value); }
154 inline Order& WithPaymentTerm(const PaymentTerm& value) { SetPaymentTerm(value); return *this;}
155 inline Order& WithPaymentTerm(PaymentTerm&& value) { SetPaymentTerm(std::move(value)); return *this;}
157
159
162 inline const OrderType& GetOrderType() const{ return m_orderType; }
163 inline bool OrderTypeHasBeenSet() const { return m_orderTypeHasBeenSet; }
164 inline void SetOrderType(const OrderType& value) { m_orderTypeHasBeenSet = true; m_orderType = value; }
165 inline void SetOrderType(OrderType&& value) { m_orderTypeHasBeenSet = true; m_orderType = std::move(value); }
166 inline Order& WithOrderType(const OrderType& value) { SetOrderType(value); return *this;}
167 inline Order& WithOrderType(OrderType&& value) { SetOrderType(std::move(value)); return *this;}
169 private:
170
171 Aws::String m_outpostId;
172 bool m_outpostIdHasBeenSet = false;
173
174 Aws::String m_orderId;
175 bool m_orderIdHasBeenSet = false;
176
177 OrderStatus m_status;
178 bool m_statusHasBeenSet = false;
179
180 Aws::Vector<LineItem> m_lineItems;
181 bool m_lineItemsHasBeenSet = false;
182
183 PaymentOption m_paymentOption;
184 bool m_paymentOptionHasBeenSet = false;
185
186 Aws::Utils::DateTime m_orderSubmissionDate;
187 bool m_orderSubmissionDateHasBeenSet = false;
188
189 Aws::Utils::DateTime m_orderFulfilledDate;
190 bool m_orderFulfilledDateHasBeenSet = false;
191
192 PaymentTerm m_paymentTerm;
193 bool m_paymentTermHasBeenSet = false;
194
195 OrderType m_orderType;
196 bool m_orderTypeHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Outposts
201} // namespace Aws
Order & WithOrderSubmissionDate(Aws::Utils::DateTime &&value)
Definition Order.h:131
void SetOrderId(Aws::String &&value)
Definition Order.h:68
const OrderType & GetOrderType() const
Definition Order.h:162
const Aws::Vector< LineItem > & GetLineItems() const
Definition Order.h:100
const Aws::Utils::DateTime & GetOrderSubmissionDate() const
Definition Order.h:126
Order & WithOrderId(Aws::String &&value)
Definition Order.h:71
Order & AddLineItems(LineItem &&value)
Definition Order.h:107
const OrderStatus & GetStatus() const
Definition Order.h:88
Order & WithPaymentOption(PaymentOption &&value)
Definition Order.h:119
bool OrderTypeHasBeenSet() const
Definition Order.h:163
Order & WithPaymentTerm(const PaymentTerm &value)
Definition Order.h:154
Order & WithPaymentTerm(PaymentTerm &&value)
Definition Order.h:155
bool PaymentOptionHasBeenSet() const
Definition Order.h:115
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPaymentOption(PaymentOption &&value)
Definition Order.h:117
const Aws::String & GetOutpostId() const
Definition Order.h:51
Order & WithOrderType(const OrderType &value)
Definition Order.h:166
void SetOrderType(const OrderType &value)
Definition Order.h:164
Order & WithOutpostId(const Aws::String &value)
Definition Order.h:56
Order & WithOutpostId(const char *value)
Definition Order.h:58
bool OrderFulfilledDateHasBeenSet() const
Definition Order.h:139
bool PaymentTermHasBeenSet() const
Definition Order.h:151
Order & WithLineItems(Aws::Vector< LineItem > &&value)
Definition Order.h:105
bool LineItemsHasBeenSet() const
Definition Order.h:101
const Aws::Utils::DateTime & GetOrderFulfilledDate() const
Definition Order.h:138
void SetOrderSubmissionDate(Aws::Utils::DateTime &&value)
Definition Order.h:129
void SetOrderId(const char *value)
Definition Order.h:69
void SetOrderType(OrderType &&value)
Definition Order.h:165
const PaymentOption & GetPaymentOption() const
Definition Order.h:114
void SetOrderFulfilledDate(Aws::Utils::DateTime &&value)
Definition Order.h:141
AWS_OUTPOSTS_API Order()
void SetOrderSubmissionDate(const Aws::Utils::DateTime &value)
Definition Order.h:128
void SetPaymentTerm(const PaymentTerm &value)
Definition Order.h:152
void SetOutpostId(const char *value)
Definition Order.h:55
const PaymentTerm & GetPaymentTerm() const
Definition Order.h:150
void SetOrderId(const Aws::String &value)
Definition Order.h:67
Order & WithPaymentOption(const PaymentOption &value)
Definition Order.h:118
Order & WithOutpostId(Aws::String &&value)
Definition Order.h:57
void SetStatus(OrderStatus &&value)
Definition Order.h:91
void SetOutpostId(const Aws::String &value)
Definition Order.h:53
Order & WithOrderId(const Aws::String &value)
Definition Order.h:70
void SetOrderFulfilledDate(const Aws::Utils::DateTime &value)
Definition Order.h:140
bool OrderSubmissionDateHasBeenSet() const
Definition Order.h:127
void SetPaymentTerm(PaymentTerm &&value)
Definition Order.h:153
Order & WithStatus(const OrderStatus &value)
Definition Order.h:92
Order & WithStatus(OrderStatus &&value)
Definition Order.h:93
void SetPaymentOption(const PaymentOption &value)
Definition Order.h:116
const Aws::String & GetOrderId() const
Definition Order.h:65
Order & WithOrderFulfilledDate(const Aws::Utils::DateTime &value)
Definition Order.h:142
bool StatusHasBeenSet() const
Definition Order.h:89
bool OrderIdHasBeenSet() const
Definition Order.h:66
void SetOutpostId(Aws::String &&value)
Definition Order.h:54
Order & WithOrderId(const char *value)
Definition Order.h:72
void SetLineItems(const Aws::Vector< LineItem > &value)
Definition Order.h:102
void SetStatus(const OrderStatus &value)
Definition Order.h:90
void SetLineItems(Aws::Vector< LineItem > &&value)
Definition Order.h:103
AWS_OUTPOSTS_API Order(Aws::Utils::Json::JsonView jsonValue)
Order & WithOrderFulfilledDate(Aws::Utils::DateTime &&value)
Definition Order.h:143
Order & WithOrderSubmissionDate(const Aws::Utils::DateTime &value)
Definition Order.h:130
AWS_OUTPOSTS_API Order & operator=(Aws::Utils::Json::JsonView jsonValue)
Order & AddLineItems(const LineItem &value)
Definition Order.h:106
Order & WithOrderType(OrderType &&value)
Definition Order.h:167
bool OutpostIdHasBeenSet() const
Definition Order.h:52
Order & WithLineItems(const Aws::Vector< LineItem > &value)
Definition Order.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue