AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrderSummary.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/OrderType.h>
10#include <aws/outposts/model/OrderStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/outposts/model/LineItemStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Outposts
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_OUTPOSTS_API OrderSummary();
40 AWS_OUTPOSTS_API OrderSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
50 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
51 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
52 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
53 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
54 inline OrderSummary& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
55 inline OrderSummary& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
56 inline OrderSummary& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
58
60
63 inline const Aws::String& GetOrderId() const{ return m_orderId; }
64 inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; }
65 inline void SetOrderId(const Aws::String& value) { m_orderIdHasBeenSet = true; m_orderId = value; }
66 inline void SetOrderId(Aws::String&& value) { m_orderIdHasBeenSet = true; m_orderId = std::move(value); }
67 inline void SetOrderId(const char* value) { m_orderIdHasBeenSet = true; m_orderId.assign(value); }
68 inline OrderSummary& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;}
69 inline OrderSummary& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;}
70 inline OrderSummary& WithOrderId(const char* value) { SetOrderId(value); return *this;}
72
74
77 inline const OrderType& GetOrderType() const{ return m_orderType; }
78 inline bool OrderTypeHasBeenSet() const { return m_orderTypeHasBeenSet; }
79 inline void SetOrderType(const OrderType& value) { m_orderTypeHasBeenSet = true; m_orderType = value; }
80 inline void SetOrderType(OrderType&& value) { m_orderTypeHasBeenSet = true; m_orderType = std::move(value); }
81 inline OrderSummary& WithOrderType(const OrderType& value) { SetOrderType(value); return *this;}
82 inline OrderSummary& WithOrderType(OrderType&& value) { SetOrderType(std::move(value)); return *this;}
84
86
97 inline const OrderStatus& GetStatus() const{ return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(const OrderStatus& value) { m_statusHasBeenSet = true; m_status = value; }
100 inline void SetStatus(OrderStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
101 inline OrderSummary& WithStatus(const OrderStatus& value) { SetStatus(value); return *this;}
102 inline OrderSummary& WithStatus(OrderStatus&& value) { SetStatus(std::move(value)); return *this;}
104
106
109 inline const Aws::Map<LineItemStatus, int>& GetLineItemCountsByStatus() const{ return m_lineItemCountsByStatus; }
110 inline bool LineItemCountsByStatusHasBeenSet() const { return m_lineItemCountsByStatusHasBeenSet; }
111 inline void SetLineItemCountsByStatus(const Aws::Map<LineItemStatus, int>& value) { m_lineItemCountsByStatusHasBeenSet = true; m_lineItemCountsByStatus = value; }
112 inline void SetLineItemCountsByStatus(Aws::Map<LineItemStatus, int>&& value) { m_lineItemCountsByStatusHasBeenSet = true; m_lineItemCountsByStatus = std::move(value); }
115 inline OrderSummary& AddLineItemCountsByStatus(const LineItemStatus& key, int value) { m_lineItemCountsByStatusHasBeenSet = true; m_lineItemCountsByStatus.emplace(key, value); return *this; }
116 inline OrderSummary& AddLineItemCountsByStatus(LineItemStatus&& key, int value) { m_lineItemCountsByStatusHasBeenSet = true; m_lineItemCountsByStatus.emplace(std::move(key), value); return *this; }
118
120
123 inline const Aws::Utils::DateTime& GetOrderSubmissionDate() const{ return m_orderSubmissionDate; }
124 inline bool OrderSubmissionDateHasBeenSet() const { return m_orderSubmissionDateHasBeenSet; }
125 inline void SetOrderSubmissionDate(const Aws::Utils::DateTime& value) { m_orderSubmissionDateHasBeenSet = true; m_orderSubmissionDate = value; }
126 inline void SetOrderSubmissionDate(Aws::Utils::DateTime&& value) { m_orderSubmissionDateHasBeenSet = true; m_orderSubmissionDate = std::move(value); }
128 inline OrderSummary& WithOrderSubmissionDate(Aws::Utils::DateTime&& value) { SetOrderSubmissionDate(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetOrderFulfilledDate() const{ return m_orderFulfilledDate; }
136 inline bool OrderFulfilledDateHasBeenSet() const { return m_orderFulfilledDateHasBeenSet; }
137 inline void SetOrderFulfilledDate(const Aws::Utils::DateTime& value) { m_orderFulfilledDateHasBeenSet = true; m_orderFulfilledDate = value; }
138 inline void SetOrderFulfilledDate(Aws::Utils::DateTime&& value) { m_orderFulfilledDateHasBeenSet = true; m_orderFulfilledDate = std::move(value); }
140 inline OrderSummary& WithOrderFulfilledDate(Aws::Utils::DateTime&& value) { SetOrderFulfilledDate(std::move(value)); return *this;}
142 private:
143
144 Aws::String m_outpostId;
145 bool m_outpostIdHasBeenSet = false;
146
147 Aws::String m_orderId;
148 bool m_orderIdHasBeenSet = false;
149
150 OrderType m_orderType;
151 bool m_orderTypeHasBeenSet = false;
152
153 OrderStatus m_status;
154 bool m_statusHasBeenSet = false;
155
156 Aws::Map<LineItemStatus, int> m_lineItemCountsByStatus;
157 bool m_lineItemCountsByStatusHasBeenSet = false;
158
159 Aws::Utils::DateTime m_orderSubmissionDate;
160 bool m_orderSubmissionDateHasBeenSet = false;
161
162 Aws::Utils::DateTime m_orderFulfilledDate;
163 bool m_orderFulfilledDateHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Outposts
168} // namespace Aws
OrderSummary & WithLineItemCountsByStatus(Aws::Map< LineItemStatus, int > &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOutpostId(Aws::String &&value)
OrderSummary & WithOutpostId(const char *value)
void SetLineItemCountsByStatus(Aws::Map< LineItemStatus, int > &&value)
void SetOrderSubmissionDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetOrderFulfilledDate() const
void SetOrderSubmissionDate(Aws::Utils::DateTime &&value)
OrderSummary & WithStatus(OrderStatus &&value)
AWS_OUTPOSTS_API OrderSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLineItemCountsByStatus(const Aws::Map< LineItemStatus, int > &value)
void SetOutpostId(const char *value)
void SetOrderFulfilledDate(const Aws::Utils::DateTime &value)
AWS_OUTPOSTS_API OrderSummary(Aws::Utils::Json::JsonView jsonValue)
const OrderStatus & GetStatus() const
void SetStatus(const OrderStatus &value)
void SetOrderId(const Aws::String &value)
void SetOrderType(const OrderType &value)
OrderSummary & AddLineItemCountsByStatus(LineItemStatus &&key, int value)
void SetStatus(OrderStatus &&value)
OrderSummary & WithOutpostId(Aws::String &&value)
OrderSummary & WithOrderId(const char *value)
const Aws::String & GetOutpostId() const
OrderSummary & WithOrderId(const Aws::String &value)
OrderSummary & WithStatus(const OrderStatus &value)
const Aws::Map< LineItemStatus, int > & GetLineItemCountsByStatus() const
void SetOrderFulfilledDate(Aws::Utils::DateTime &&value)
OrderSummary & WithOrderType(const OrderType &value)
void SetOrderId(Aws::String &&value)
OrderSummary & AddLineItemCountsByStatus(const LineItemStatus &key, int value)
const Aws::String & GetOrderId() const
OrderSummary & WithOrderType(OrderType &&value)
OrderSummary & WithOrderFulfilledDate(const Aws::Utils::DateTime &value)
const OrderType & GetOrderType() const
void SetOrderType(OrderType &&value)
OrderSummary & WithOrderSubmissionDate(Aws::Utils::DateTime &&value)
OrderSummary & WithOrderFulfilledDate(Aws::Utils::DateTime &&value)
OrderSummary & WithOrderId(Aws::String &&value)
OrderSummary & WithOutpostId(const Aws::String &value)
OrderSummary & WithLineItemCountsByStatus(const Aws::Map< LineItemStatus, int > &value)
void SetOutpostId(const Aws::String &value)
OrderSummary & WithOrderSubmissionDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetOrderSubmissionDate() const
void SetOrderId(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue