AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
CreateLinkResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
12#include <aws/rtbfabric/model/ConnectivityType.h>
13#include <aws/rtbfabric/model/LinkAttributes.h>
14#include <aws/rtbfabric/model/LinkDirection.h>
15#include <aws/rtbfabric/model/LinkLogSettings.h>
16#include <aws/rtbfabric/model/LinkStatus.h>
17#include <aws/rtbfabric/model/ModuleConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace RTBFabric {
31namespace Model {
33 public:
34 AWS_RTBFABRIC_API CreateLinkResult() = default;
37
39
42 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
43 template <typename GatewayIdT = Aws::String>
44 void SetGatewayId(GatewayIdT&& value) {
45 m_gatewayIdHasBeenSet = true;
46 m_gatewayId = std::forward<GatewayIdT>(value);
47 }
48 template <typename GatewayIdT = Aws::String>
49 CreateLinkResult& WithGatewayId(GatewayIdT&& value) {
50 SetGatewayId(std::forward<GatewayIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPeerGatewayId() const { return m_peerGatewayId; }
60 template <typename PeerGatewayIdT = Aws::String>
61 void SetPeerGatewayId(PeerGatewayIdT&& value) {
62 m_peerGatewayIdHasBeenSet = true;
63 m_peerGatewayId = std::forward<PeerGatewayIdT>(value);
64 }
65 template <typename PeerGatewayIdT = Aws::String>
66 CreateLinkResult& WithPeerGatewayId(PeerGatewayIdT&& value) {
67 SetPeerGatewayId(std::forward<PeerGatewayIdT>(value));
68 return *this;
69 }
71
73
76 inline LinkStatus GetStatus() const { return m_status; }
77 inline void SetStatus(LinkStatus value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) {
94 m_createdAtHasBeenSet = true;
95 m_createdAt = std::forward<CreatedAtT>(value);
96 }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 CreateLinkResult& WithCreatedAt(CreatedAtT&& value) {
99 SetCreatedAt(std::forward<CreatedAtT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
109 template <typename UpdatedAtT = Aws::Utils::DateTime>
110 void SetUpdatedAt(UpdatedAtT&& value) {
111 m_updatedAtHasBeenSet = true;
112 m_updatedAt = std::forward<UpdatedAtT>(value);
113 }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 CreateLinkResult& WithUpdatedAt(UpdatedAtT&& value) {
116 SetUpdatedAt(std::forward<UpdatedAtT>(value));
117 return *this;
118 }
120
122
125 inline LinkDirection GetDirection() const { return m_direction; }
126 inline void SetDirection(LinkDirection value) {
127 m_directionHasBeenSet = true;
128 m_direction = value;
129 }
131 SetDirection(value);
132 return *this;
133 }
135
137
140 inline const Aws::Vector<ModuleConfiguration>& GetFlowModules() const { return m_flowModules; }
141 template <typename FlowModulesT = Aws::Vector<ModuleConfiguration>>
142 void SetFlowModules(FlowModulesT&& value) {
143 m_flowModulesHasBeenSet = true;
144 m_flowModules = std::forward<FlowModulesT>(value);
145 }
146 template <typename FlowModulesT = Aws::Vector<ModuleConfiguration>>
147 CreateLinkResult& WithFlowModules(FlowModulesT&& value) {
148 SetFlowModules(std::forward<FlowModulesT>(value));
149 return *this;
150 }
151 template <typename FlowModulesT = ModuleConfiguration>
152 CreateLinkResult& AddFlowModules(FlowModulesT&& value) {
153 m_flowModulesHasBeenSet = true;
154 m_flowModules.emplace_back(std::forward<FlowModulesT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<ModuleConfiguration>& GetPendingFlowModules() const { return m_pendingFlowModules; }
164 template <typename PendingFlowModulesT = Aws::Vector<ModuleConfiguration>>
165 void SetPendingFlowModules(PendingFlowModulesT&& value) {
166 m_pendingFlowModulesHasBeenSet = true;
167 m_pendingFlowModules = std::forward<PendingFlowModulesT>(value);
168 }
169 template <typename PendingFlowModulesT = Aws::Vector<ModuleConfiguration>>
170 CreateLinkResult& WithPendingFlowModules(PendingFlowModulesT&& value) {
171 SetPendingFlowModules(std::forward<PendingFlowModulesT>(value));
172 return *this;
173 }
174 template <typename PendingFlowModulesT = ModuleConfiguration>
175 CreateLinkResult& AddPendingFlowModules(PendingFlowModulesT&& value) {
176 m_pendingFlowModulesHasBeenSet = true;
177 m_pendingFlowModules.emplace_back(std::forward<PendingFlowModulesT>(value));
178 return *this;
179 }
181
183
186 inline const LinkAttributes& GetAttributes() const { return m_attributes; }
187 template <typename AttributesT = LinkAttributes>
188 void SetAttributes(AttributesT&& value) {
189 m_attributesHasBeenSet = true;
190 m_attributes = std::forward<AttributesT>(value);
191 }
192 template <typename AttributesT = LinkAttributes>
193 CreateLinkResult& WithAttributes(AttributesT&& value) {
194 SetAttributes(std::forward<AttributesT>(value));
195 return *this;
196 }
198
200
201 inline const LinkLogSettings& GetLogSettings() const { return m_logSettings; }
202 template <typename LogSettingsT = LinkLogSettings>
203 void SetLogSettings(LogSettingsT&& value) {
204 m_logSettingsHasBeenSet = true;
205 m_logSettings = std::forward<LogSettingsT>(value);
206 }
207 template <typename LogSettingsT = LinkLogSettings>
208 CreateLinkResult& WithLogSettings(LogSettingsT&& value) {
209 SetLogSettings(std::forward<LogSettingsT>(value));
210 return *this;
211 }
213
215
218 inline ConnectivityType GetConnectivityType() const { return m_connectivityType; }
220 m_connectivityTypeHasBeenSet = true;
221 m_connectivityType = value;
222 }
224 SetConnectivityType(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetLinkId() const { return m_linkId; }
234 template <typename LinkIdT = Aws::String>
235 void SetLinkId(LinkIdT&& value) {
236 m_linkIdHasBeenSet = true;
237 m_linkId = std::forward<LinkIdT>(value);
238 }
239 template <typename LinkIdT = Aws::String>
240 CreateLinkResult& WithLinkId(LinkIdT&& value) {
241 SetLinkId(std::forward<LinkIdT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetCustomerProvidedId() const { return m_customerProvidedId; }
251 template <typename CustomerProvidedIdT = Aws::String>
252 void SetCustomerProvidedId(CustomerProvidedIdT&& value) {
253 m_customerProvidedIdHasBeenSet = true;
254 m_customerProvidedId = std::forward<CustomerProvidedIdT>(value);
255 }
256 template <typename CustomerProvidedIdT = Aws::String>
257 CreateLinkResult& WithCustomerProvidedId(CustomerProvidedIdT&& value) {
258 SetCustomerProvidedId(std::forward<CustomerProvidedIdT>(value));
259 return *this;
260 }
262
264
265 inline const Aws::String& GetRequestId() const { return m_requestId; }
266 template <typename RequestIdT = Aws::String>
267 void SetRequestId(RequestIdT&& value) {
268 m_requestIdHasBeenSet = true;
269 m_requestId = std::forward<RequestIdT>(value);
270 }
271 template <typename RequestIdT = Aws::String>
272 CreateLinkResult& WithRequestId(RequestIdT&& value) {
273 SetRequestId(std::forward<RequestIdT>(value));
274 return *this;
275 }
277 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
278
279 private:
280 Aws::String m_gatewayId;
281
282 Aws::String m_peerGatewayId;
283
285
286 Aws::Utils::DateTime m_createdAt{};
287
288 Aws::Utils::DateTime m_updatedAt{};
289
291
293
294 Aws::Vector<ModuleConfiguration> m_pendingFlowModules;
295
296 LinkAttributes m_attributes;
297
298 LinkLogSettings m_logSettings;
299
301
302 Aws::String m_linkId;
303
304 Aws::String m_customerProvidedId;
305
306 Aws::String m_requestId;
307 Aws::Http::HttpResponseCode m_HttpResponseCode;
308 bool m_gatewayIdHasBeenSet = false;
309 bool m_peerGatewayIdHasBeenSet = false;
310 bool m_statusHasBeenSet = false;
311 bool m_createdAtHasBeenSet = false;
312 bool m_updatedAtHasBeenSet = false;
313 bool m_directionHasBeenSet = false;
314 bool m_flowModulesHasBeenSet = false;
315 bool m_pendingFlowModulesHasBeenSet = false;
316 bool m_attributesHasBeenSet = false;
317 bool m_logSettingsHasBeenSet = false;
318 bool m_connectivityTypeHasBeenSet = false;
319 bool m_linkIdHasBeenSet = false;
320 bool m_customerProvidedIdHasBeenSet = false;
321 bool m_requestIdHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace RTBFabric
326} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue