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/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/privatenetworks/model/AcknowledgmentStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/privatenetworks/model/Address.h>
13#include <aws/privatenetworks/model/OrderedResourceDefinition.h>
14#include <aws/privatenetworks/model/TrackingInformation.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace PrivateNetworks
28{
29namespace Model
30{
31
37 class Order
38 {
39 public:
40 AWS_PRIVATENETWORKS_API Order();
41 AWS_PRIVATENETWORKS_API Order(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PRIVATENETWORKS_API Order& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const AcknowledgmentStatus& GetAcknowledgmentStatus() const{ return m_acknowledgmentStatus; }
51 inline bool AcknowledgmentStatusHasBeenSet() const { return m_acknowledgmentStatusHasBeenSet; }
52 inline void SetAcknowledgmentStatus(const AcknowledgmentStatus& value) { m_acknowledgmentStatusHasBeenSet = true; m_acknowledgmentStatus = value; }
53 inline void SetAcknowledgmentStatus(AcknowledgmentStatus&& value) { m_acknowledgmentStatusHasBeenSet = true; m_acknowledgmentStatus = std::move(value); }
54 inline Order& WithAcknowledgmentStatus(const AcknowledgmentStatus& value) { SetAcknowledgmentStatus(value); return *this;}
55 inline Order& WithAcknowledgmentStatus(AcknowledgmentStatus&& value) { SetAcknowledgmentStatus(std::move(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
63 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
64 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
65 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
66 inline Order& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
67 inline Order& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetNetworkArn() const{ return m_networkArn; }
75 inline bool NetworkArnHasBeenSet() const { return m_networkArnHasBeenSet; }
76 inline void SetNetworkArn(const Aws::String& value) { m_networkArnHasBeenSet = true; m_networkArn = value; }
77 inline void SetNetworkArn(Aws::String&& value) { m_networkArnHasBeenSet = true; m_networkArn = std::move(value); }
78 inline void SetNetworkArn(const char* value) { m_networkArnHasBeenSet = true; m_networkArn.assign(value); }
79 inline Order& WithNetworkArn(const Aws::String& value) { SetNetworkArn(value); return *this;}
80 inline Order& WithNetworkArn(Aws::String&& value) { SetNetworkArn(std::move(value)); return *this;}
81 inline Order& WithNetworkArn(const char* value) { SetNetworkArn(value); return *this;}
83
85
89 inline const Aws::String& GetNetworkSiteArn() const{ return m_networkSiteArn; }
90 inline bool NetworkSiteArnHasBeenSet() const { return m_networkSiteArnHasBeenSet; }
91 inline void SetNetworkSiteArn(const Aws::String& value) { m_networkSiteArnHasBeenSet = true; m_networkSiteArn = value; }
92 inline void SetNetworkSiteArn(Aws::String&& value) { m_networkSiteArnHasBeenSet = true; m_networkSiteArn = std::move(value); }
93 inline void SetNetworkSiteArn(const char* value) { m_networkSiteArnHasBeenSet = true; m_networkSiteArn.assign(value); }
94 inline Order& WithNetworkSiteArn(const Aws::String& value) { SetNetworkSiteArn(value); return *this;}
95 inline Order& WithNetworkSiteArn(Aws::String&& value) { SetNetworkSiteArn(std::move(value)); return *this;}
96 inline Order& WithNetworkSiteArn(const char* value) { SetNetworkSiteArn(value); return *this;}
98
100
103 inline const Aws::String& GetOrderArn() const{ return m_orderArn; }
104 inline bool OrderArnHasBeenSet() const { return m_orderArnHasBeenSet; }
105 inline void SetOrderArn(const Aws::String& value) { m_orderArnHasBeenSet = true; m_orderArn = value; }
106 inline void SetOrderArn(Aws::String&& value) { m_orderArnHasBeenSet = true; m_orderArn = std::move(value); }
107 inline void SetOrderArn(const char* value) { m_orderArnHasBeenSet = true; m_orderArn.assign(value); }
108 inline Order& WithOrderArn(const Aws::String& value) { SetOrderArn(value); return *this;}
109 inline Order& WithOrderArn(Aws::String&& value) { SetOrderArn(std::move(value)); return *this;}
110 inline Order& WithOrderArn(const char* value) { SetOrderArn(value); return *this;}
112
114
117 inline const Aws::Vector<OrderedResourceDefinition>& GetOrderedResources() const{ return m_orderedResources; }
118 inline bool OrderedResourcesHasBeenSet() const { return m_orderedResourcesHasBeenSet; }
119 inline void SetOrderedResources(const Aws::Vector<OrderedResourceDefinition>& value) { m_orderedResourcesHasBeenSet = true; m_orderedResources = value; }
120 inline void SetOrderedResources(Aws::Vector<OrderedResourceDefinition>&& value) { m_orderedResourcesHasBeenSet = true; m_orderedResources = std::move(value); }
123 inline Order& AddOrderedResources(const OrderedResourceDefinition& value) { m_orderedResourcesHasBeenSet = true; m_orderedResources.push_back(value); return *this; }
124 inline Order& AddOrderedResources(OrderedResourceDefinition&& value) { m_orderedResourcesHasBeenSet = true; m_orderedResources.push_back(std::move(value)); return *this; }
126
128
131 inline const Address& GetShippingAddress() const{ return m_shippingAddress; }
132 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
133 inline void SetShippingAddress(const Address& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = value; }
134 inline void SetShippingAddress(Address&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::move(value); }
135 inline Order& WithShippingAddress(const Address& value) { SetShippingAddress(value); return *this;}
136 inline Order& WithShippingAddress(Address&& value) { SetShippingAddress(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<TrackingInformation>& GetTrackingInformation() const{ return m_trackingInformation; }
144 inline bool TrackingInformationHasBeenSet() const { return m_trackingInformationHasBeenSet; }
145 inline void SetTrackingInformation(const Aws::Vector<TrackingInformation>& value) { m_trackingInformationHasBeenSet = true; m_trackingInformation = value; }
146 inline void SetTrackingInformation(Aws::Vector<TrackingInformation>&& value) { m_trackingInformationHasBeenSet = true; m_trackingInformation = std::move(value); }
149 inline Order& AddTrackingInformation(const TrackingInformation& value) { m_trackingInformationHasBeenSet = true; m_trackingInformation.push_back(value); return *this; }
150 inline Order& AddTrackingInformation(TrackingInformation&& value) { m_trackingInformationHasBeenSet = true; m_trackingInformation.push_back(std::move(value)); return *this; }
152 private:
153
154 AcknowledgmentStatus m_acknowledgmentStatus;
155 bool m_acknowledgmentStatusHasBeenSet = false;
156
157 Aws::Utils::DateTime m_createdAt;
158 bool m_createdAtHasBeenSet = false;
159
160 Aws::String m_networkArn;
161 bool m_networkArnHasBeenSet = false;
162
163 Aws::String m_networkSiteArn;
164 bool m_networkSiteArnHasBeenSet = false;
165
166 Aws::String m_orderArn;
167 bool m_orderArnHasBeenSet = false;
168
170 bool m_orderedResourcesHasBeenSet = false;
171
172 Address m_shippingAddress;
173 bool m_shippingAddressHasBeenSet = false;
174
175 Aws::Vector<TrackingInformation> m_trackingInformation;
176 bool m_trackingInformationHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace PrivateNetworks
181} // namespace Aws
Order & WithNetworkArn(const Aws::String &value)
Definition Order.h:79
void SetNetworkSiteArn(const Aws::String &value)
Definition Order.h:91
AWS_PRIVATENETWORKS_API Order & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkArn(const Aws::String &value)
Definition Order.h:76
Order & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Order.h:66
Order & WithNetworkSiteArn(Aws::String &&value)
Definition Order.h:95
bool AcknowledgmentStatusHasBeenSet() const
Definition Order.h:51
void SetAcknowledgmentStatus(const AcknowledgmentStatus &value)
Definition Order.h:52
bool ShippingAddressHasBeenSet() const
Definition Order.h:132
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Order & WithNetworkSiteArn(const char *value)
Definition Order.h:96
void SetNetworkArn(const char *value)
Definition Order.h:78
void SetNetworkSiteArn(Aws::String &&value)
Definition Order.h:92
bool TrackingInformationHasBeenSet() const
Definition Order.h:144
Order & WithNetworkSiteArn(const Aws::String &value)
Definition Order.h:94
const AcknowledgmentStatus & GetAcknowledgmentStatus() const
Definition Order.h:50
Order & WithShippingAddress(const Address &value)
Definition Order.h:135
void SetOrderArn(Aws::String &&value)
Definition Order.h:106
Order & WithTrackingInformation(Aws::Vector< TrackingInformation > &&value)
Definition Order.h:148
Order & WithAcknowledgmentStatus(AcknowledgmentStatus &&value)
Definition Order.h:55
const Aws::String & GetNetworkArn() const
Definition Order.h:74
bool OrderedResourcesHasBeenSet() const
Definition Order.h:118
Order & WithOrderArn(const Aws::String &value)
Definition Order.h:108
void SetShippingAddress(Address &&value)
Definition Order.h:134
Order & WithOrderArn(const char *value)
Definition Order.h:110
Order & WithAcknowledgmentStatus(const AcknowledgmentStatus &value)
Definition Order.h:54
const Aws::Vector< TrackingInformation > & GetTrackingInformation() const
Definition Order.h:143
Order & AddTrackingInformation(TrackingInformation &&value)
Definition Order.h:150
void SetAcknowledgmentStatus(AcknowledgmentStatus &&value)
Definition Order.h:53
void SetOrderArn(const Aws::String &value)
Definition Order.h:105
Order & WithNetworkArn(Aws::String &&value)
Definition Order.h:80
void SetTrackingInformation(const Aws::Vector< TrackingInformation > &value)
Definition Order.h:145
const Address & GetShippingAddress() const
Definition Order.h:131
void SetOrderedResources(const Aws::Vector< OrderedResourceDefinition > &value)
Definition Order.h:119
Order & WithOrderedResources(Aws::Vector< OrderedResourceDefinition > &&value)
Definition Order.h:122
const Aws::Vector< OrderedResourceDefinition > & GetOrderedResources() const
Definition Order.h:117
bool NetworkArnHasBeenSet() const
Definition Order.h:75
Order & AddOrderedResources(OrderedResourceDefinition &&value)
Definition Order.h:124
AWS_PRIVATENETWORKS_API Order(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkArn(Aws::String &&value)
Definition Order.h:77
Order & AddTrackingInformation(const TrackingInformation &value)
Definition Order.h:149
Order & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Order.h:67
Order & WithTrackingInformation(const Aws::Vector< TrackingInformation > &value)
Definition Order.h:147
AWS_PRIVATENETWORKS_API Order()
void SetOrderedResources(Aws::Vector< OrderedResourceDefinition > &&value)
Definition Order.h:120
Order & WithOrderArn(Aws::String &&value)
Definition Order.h:109
const Aws::String & GetOrderArn() const
Definition Order.h:103
void SetTrackingInformation(Aws::Vector< TrackingInformation > &&value)
Definition Order.h:146
Order & WithNetworkArn(const char *value)
Definition Order.h:81
const Aws::String & GetNetworkSiteArn() const
Definition Order.h:89
void SetNetworkSiteArn(const char *value)
Definition Order.h:93
void SetShippingAddress(const Address &value)
Definition Order.h:133
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Order.h:62
void SetOrderArn(const char *value)
Definition Order.h:107
Order & WithShippingAddress(Address &&value)
Definition Order.h:136
Order & WithOrderedResources(const Aws::Vector< OrderedResourceDefinition > &value)
Definition Order.h:121
Order & AddOrderedResources(const OrderedResourceDefinition &value)
Definition Order.h:123
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Order.h:64
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Order.h:65
bool NetworkSiteArnHasBeenSet() const
Definition Order.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue