AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LineItem.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/LineItemStatus.h>
10#include <aws/outposts/model/ShipmentInformation.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/outposts/model/LineItemAssetInformation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Outposts
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_OUTPOSTS_API LineItem();
39 AWS_OUTPOSTS_API LineItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OUTPOSTS_API LineItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCatalogItemId() const{ return m_catalogItemId; }
49 inline bool CatalogItemIdHasBeenSet() const { return m_catalogItemIdHasBeenSet; }
50 inline void SetCatalogItemId(const Aws::String& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = value; }
51 inline void SetCatalogItemId(Aws::String&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::move(value); }
52 inline void SetCatalogItemId(const char* value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId.assign(value); }
53 inline LineItem& WithCatalogItemId(const Aws::String& value) { SetCatalogItemId(value); return *this;}
54 inline LineItem& WithCatalogItemId(Aws::String&& value) { SetCatalogItemId(std::move(value)); return *this;}
55 inline LineItem& WithCatalogItemId(const char* value) { SetCatalogItemId(value); return *this;}
57
59
62 inline const Aws::String& GetLineItemId() const{ return m_lineItemId; }
63 inline bool LineItemIdHasBeenSet() const { return m_lineItemIdHasBeenSet; }
64 inline void SetLineItemId(const Aws::String& value) { m_lineItemIdHasBeenSet = true; m_lineItemId = value; }
65 inline void SetLineItemId(Aws::String&& value) { m_lineItemIdHasBeenSet = true; m_lineItemId = std::move(value); }
66 inline void SetLineItemId(const char* value) { m_lineItemIdHasBeenSet = true; m_lineItemId.assign(value); }
67 inline LineItem& WithLineItemId(const Aws::String& value) { SetLineItemId(value); return *this;}
68 inline LineItem& WithLineItemId(Aws::String&& value) { SetLineItemId(std::move(value)); return *this;}
69 inline LineItem& WithLineItemId(const char* value) { SetLineItemId(value); return *this;}
71
73
76 inline int GetQuantity() const{ return m_quantity; }
77 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
78 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
79 inline LineItem& WithQuantity(int value) { SetQuantity(value); return *this;}
81
83
86 inline const LineItemStatus& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const LineItemStatus& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(LineItemStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline LineItem& WithStatus(const LineItemStatus& value) { SetStatus(value); return *this;}
91 inline LineItem& WithStatus(LineItemStatus&& value) { SetStatus(std::move(value)); return *this;}
93
95
98 inline const ShipmentInformation& GetShipmentInformation() const{ return m_shipmentInformation; }
99 inline bool ShipmentInformationHasBeenSet() const { return m_shipmentInformationHasBeenSet; }
100 inline void SetShipmentInformation(const ShipmentInformation& value) { m_shipmentInformationHasBeenSet = true; m_shipmentInformation = value; }
101 inline void SetShipmentInformation(ShipmentInformation&& value) { m_shipmentInformationHasBeenSet = true; m_shipmentInformation = std::move(value); }
102 inline LineItem& WithShipmentInformation(const ShipmentInformation& value) { SetShipmentInformation(value); return *this;}
103 inline LineItem& WithShipmentInformation(ShipmentInformation&& value) { SetShipmentInformation(std::move(value)); return *this;}
105
107
110 inline const Aws::Vector<LineItemAssetInformation>& GetAssetInformationList() const{ return m_assetInformationList; }
111 inline bool AssetInformationListHasBeenSet() const { return m_assetInformationListHasBeenSet; }
112 inline void SetAssetInformationList(const Aws::Vector<LineItemAssetInformation>& value) { m_assetInformationListHasBeenSet = true; m_assetInformationList = value; }
113 inline void SetAssetInformationList(Aws::Vector<LineItemAssetInformation>&& value) { m_assetInformationListHasBeenSet = true; m_assetInformationList = std::move(value); }
116 inline LineItem& AddAssetInformationList(const LineItemAssetInformation& value) { m_assetInformationListHasBeenSet = true; m_assetInformationList.push_back(value); return *this; }
117 inline LineItem& AddAssetInformationList(LineItemAssetInformation&& value) { m_assetInformationListHasBeenSet = true; m_assetInformationList.push_back(std::move(value)); return *this; }
119
121
124 inline const Aws::String& GetPreviousLineItemId() const{ return m_previousLineItemId; }
125 inline bool PreviousLineItemIdHasBeenSet() const { return m_previousLineItemIdHasBeenSet; }
126 inline void SetPreviousLineItemId(const Aws::String& value) { m_previousLineItemIdHasBeenSet = true; m_previousLineItemId = value; }
127 inline void SetPreviousLineItemId(Aws::String&& value) { m_previousLineItemIdHasBeenSet = true; m_previousLineItemId = std::move(value); }
128 inline void SetPreviousLineItemId(const char* value) { m_previousLineItemIdHasBeenSet = true; m_previousLineItemId.assign(value); }
129 inline LineItem& WithPreviousLineItemId(const Aws::String& value) { SetPreviousLineItemId(value); return *this;}
130 inline LineItem& WithPreviousLineItemId(Aws::String&& value) { SetPreviousLineItemId(std::move(value)); return *this;}
131 inline LineItem& WithPreviousLineItemId(const char* value) { SetPreviousLineItemId(value); return *this;}
133
135
138 inline const Aws::String& GetPreviousOrderId() const{ return m_previousOrderId; }
139 inline bool PreviousOrderIdHasBeenSet() const { return m_previousOrderIdHasBeenSet; }
140 inline void SetPreviousOrderId(const Aws::String& value) { m_previousOrderIdHasBeenSet = true; m_previousOrderId = value; }
141 inline void SetPreviousOrderId(Aws::String&& value) { m_previousOrderIdHasBeenSet = true; m_previousOrderId = std::move(value); }
142 inline void SetPreviousOrderId(const char* value) { m_previousOrderIdHasBeenSet = true; m_previousOrderId.assign(value); }
143 inline LineItem& WithPreviousOrderId(const Aws::String& value) { SetPreviousOrderId(value); return *this;}
144 inline LineItem& WithPreviousOrderId(Aws::String&& value) { SetPreviousOrderId(std::move(value)); return *this;}
145 inline LineItem& WithPreviousOrderId(const char* value) { SetPreviousOrderId(value); return *this;}
147 private:
148
149 Aws::String m_catalogItemId;
150 bool m_catalogItemIdHasBeenSet = false;
151
152 Aws::String m_lineItemId;
153 bool m_lineItemIdHasBeenSet = false;
154
155 int m_quantity;
156 bool m_quantityHasBeenSet = false;
157
158 LineItemStatus m_status;
159 bool m_statusHasBeenSet = false;
160
161 ShipmentInformation m_shipmentInformation;
162 bool m_shipmentInformationHasBeenSet = false;
163
164 Aws::Vector<LineItemAssetInformation> m_assetInformationList;
165 bool m_assetInformationListHasBeenSet = false;
166
167 Aws::String m_previousLineItemId;
168 bool m_previousLineItemIdHasBeenSet = false;
169
170 Aws::String m_previousOrderId;
171 bool m_previousOrderIdHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Outposts
176} // namespace Aws
const Aws::Vector< LineItemAssetInformation > & GetAssetInformationList() const
Definition LineItem.h:110
LineItem & WithLineItemId(const Aws::String &value)
Definition LineItem.h:67
void SetPreviousOrderId(const char *value)
Definition LineItem.h:142
void SetPreviousLineItemId(const char *value)
Definition LineItem.h:128
bool PreviousOrderIdHasBeenSet() const
Definition LineItem.h:139
LineItem & WithPreviousOrderId(const Aws::String &value)
Definition LineItem.h:143
void SetLineItemId(const Aws::String &value)
Definition LineItem.h:64
LineItem & WithShipmentInformation(const ShipmentInformation &value)
Definition LineItem.h:102
LineItem & WithCatalogItemId(Aws::String &&value)
Definition LineItem.h:54
bool CatalogItemIdHasBeenSet() const
Definition LineItem.h:49
void SetStatus(const LineItemStatus &value)
Definition LineItem.h:88
bool AssetInformationListHasBeenSet() const
Definition LineItem.h:111
void SetAssetInformationList(const Aws::Vector< LineItemAssetInformation > &value)
Definition LineItem.h:112
void SetPreviousLineItemId(const Aws::String &value)
Definition LineItem.h:126
void SetPreviousOrderId(const Aws::String &value)
Definition LineItem.h:140
LineItem & WithAssetInformationList(const Aws::Vector< LineItemAssetInformation > &value)
Definition LineItem.h:114
void SetLineItemId(Aws::String &&value)
Definition LineItem.h:65
LineItem & WithLineItemId(const char *value)
Definition LineItem.h:69
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
LineItem & WithStatus(LineItemStatus &&value)
Definition LineItem.h:91
bool ShipmentInformationHasBeenSet() const
Definition LineItem.h:99
void SetCatalogItemId(const Aws::String &value)
Definition LineItem.h:50
AWS_OUTPOSTS_API LineItem(Aws::Utils::Json::JsonView jsonValue)
LineItem & WithLineItemId(Aws::String &&value)
Definition LineItem.h:68
AWS_OUTPOSTS_API LineItem()
LineItem & WithCatalogItemId(const Aws::String &value)
Definition LineItem.h:53
const Aws::String & GetCatalogItemId() const
Definition LineItem.h:48
LineItem & WithPreviousOrderId(const char *value)
Definition LineItem.h:145
bool LineItemIdHasBeenSet() const
Definition LineItem.h:63
const LineItemStatus & GetStatus() const
Definition LineItem.h:86
void SetAssetInformationList(Aws::Vector< LineItemAssetInformation > &&value)
Definition LineItem.h:113
AWS_OUTPOSTS_API LineItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLineItemId() const
Definition LineItem.h:62
bool QuantityHasBeenSet() const
Definition LineItem.h:77
void SetCatalogItemId(Aws::String &&value)
Definition LineItem.h:51
LineItem & WithShipmentInformation(ShipmentInformation &&value)
Definition LineItem.h:103
LineItem & WithStatus(const LineItemStatus &value)
Definition LineItem.h:90
LineItem & WithPreviousLineItemId(Aws::String &&value)
Definition LineItem.h:130
LineItem & AddAssetInformationList(LineItemAssetInformation &&value)
Definition LineItem.h:117
void SetCatalogItemId(const char *value)
Definition LineItem.h:52
const ShipmentInformation & GetShipmentInformation() const
Definition LineItem.h:98
LineItem & WithAssetInformationList(Aws::Vector< LineItemAssetInformation > &&value)
Definition LineItem.h:115
LineItem & WithPreviousLineItemId(const Aws::String &value)
Definition LineItem.h:129
void SetQuantity(int value)
Definition LineItem.h:78
const Aws::String & GetPreviousOrderId() const
Definition LineItem.h:138
bool PreviousLineItemIdHasBeenSet() const
Definition LineItem.h:125
LineItem & WithQuantity(int value)
Definition LineItem.h:79
void SetLineItemId(const char *value)
Definition LineItem.h:66
LineItem & WithPreviousOrderId(Aws::String &&value)
Definition LineItem.h:144
void SetPreviousLineItemId(Aws::String &&value)
Definition LineItem.h:127
void SetPreviousOrderId(Aws::String &&value)
Definition LineItem.h:141
const Aws::String & GetPreviousLineItemId() const
Definition LineItem.h:124
LineItem & WithPreviousLineItemId(const char *value)
Definition LineItem.h:131
void SetShipmentInformation(ShipmentInformation &&value)
Definition LineItem.h:101
void SetStatus(LineItemStatus &&value)
Definition LineItem.h:89
LineItem & AddAssetInformationList(const LineItemAssetInformation &value)
Definition LineItem.h:116
LineItem & WithCatalogItemId(const char *value)
Definition LineItem.h:55
void SetShipmentInformation(const ShipmentInformation &value)
Definition LineItem.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue