AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
GetLinkResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
13#include <aws/rtbfabric/model/ConnectivityType.h>
14#include <aws/rtbfabric/model/LinkAttributes.h>
15#include <aws/rtbfabric/model/LinkDirection.h>
16#include <aws/rtbfabric/model/LinkLogSettings.h>
17#include <aws/rtbfabric/model/LinkStatus.h>
18#include <aws/rtbfabric/model/ModuleConfiguration.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace RTBFabric {
32namespace Model {
34 public:
35 AWS_RTBFABRIC_API GetLinkResult() = default;
38
40
43 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
44 template <typename GatewayIdT = Aws::String>
45 void SetGatewayId(GatewayIdT&& value) {
46 m_gatewayIdHasBeenSet = true;
47 m_gatewayId = std::forward<GatewayIdT>(value);
48 }
49 template <typename GatewayIdT = Aws::String>
50 GetLinkResult& WithGatewayId(GatewayIdT&& value) {
51 SetGatewayId(std::forward<GatewayIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPeerGatewayId() const { return m_peerGatewayId; }
61 template <typename PeerGatewayIdT = Aws::String>
62 void SetPeerGatewayId(PeerGatewayIdT&& value) {
63 m_peerGatewayIdHasBeenSet = true;
64 m_peerGatewayId = std::forward<PeerGatewayIdT>(value);
65 }
66 template <typename PeerGatewayIdT = Aws::String>
67 GetLinkResult& WithPeerGatewayId(PeerGatewayIdT&& value) {
68 SetPeerGatewayId(std::forward<PeerGatewayIdT>(value));
69 return *this;
70 }
72
74
77 inline LinkStatus GetStatus() const { return m_status; }
78 inline void SetStatus(LinkStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
94 void SetCreatedAt(CreatedAtT&& value) {
95 m_createdAtHasBeenSet = true;
96 m_createdAt = std::forward<CreatedAtT>(value);
97 }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 GetLinkResult& WithCreatedAt(CreatedAtT&& value) {
100 SetCreatedAt(std::forward<CreatedAtT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
110 template <typename UpdatedAtT = Aws::Utils::DateTime>
111 void SetUpdatedAt(UpdatedAtT&& value) {
112 m_updatedAtHasBeenSet = true;
113 m_updatedAt = std::forward<UpdatedAtT>(value);
114 }
115 template <typename UpdatedAtT = Aws::Utils::DateTime>
116 GetLinkResult& WithUpdatedAt(UpdatedAtT&& value) {
117 SetUpdatedAt(std::forward<UpdatedAtT>(value));
118 return *this;
119 }
121
123
126 inline LinkDirection GetDirection() const { return m_direction; }
127 inline void SetDirection(LinkDirection value) {
128 m_directionHasBeenSet = true;
129 m_direction = value;
130 }
132 SetDirection(value);
133 return *this;
134 }
136
138
141 inline const Aws::Vector<ModuleConfiguration>& GetFlowModules() const { return m_flowModules; }
142 template <typename FlowModulesT = Aws::Vector<ModuleConfiguration>>
143 void SetFlowModules(FlowModulesT&& value) {
144 m_flowModulesHasBeenSet = true;
145 m_flowModules = std::forward<FlowModulesT>(value);
146 }
147 template <typename FlowModulesT = Aws::Vector<ModuleConfiguration>>
148 GetLinkResult& WithFlowModules(FlowModulesT&& value) {
149 SetFlowModules(std::forward<FlowModulesT>(value));
150 return *this;
151 }
152 template <typename FlowModulesT = ModuleConfiguration>
153 GetLinkResult& AddFlowModules(FlowModulesT&& value) {
154 m_flowModulesHasBeenSet = true;
155 m_flowModules.emplace_back(std::forward<FlowModulesT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<ModuleConfiguration>& GetPendingFlowModules() const { return m_pendingFlowModules; }
165 template <typename PendingFlowModulesT = Aws::Vector<ModuleConfiguration>>
166 void SetPendingFlowModules(PendingFlowModulesT&& value) {
167 m_pendingFlowModulesHasBeenSet = true;
168 m_pendingFlowModules = std::forward<PendingFlowModulesT>(value);
169 }
170 template <typename PendingFlowModulesT = Aws::Vector<ModuleConfiguration>>
171 GetLinkResult& WithPendingFlowModules(PendingFlowModulesT&& value) {
172 SetPendingFlowModules(std::forward<PendingFlowModulesT>(value));
173 return *this;
174 }
175 template <typename PendingFlowModulesT = ModuleConfiguration>
176 GetLinkResult& AddPendingFlowModules(PendingFlowModulesT&& value) {
177 m_pendingFlowModulesHasBeenSet = true;
178 m_pendingFlowModules.emplace_back(std::forward<PendingFlowModulesT>(value));
179 return *this;
180 }
182
184
187 inline const LinkAttributes& GetAttributes() const { return m_attributes; }
188 template <typename AttributesT = LinkAttributes>
189 void SetAttributes(AttributesT&& value) {
190 m_attributesHasBeenSet = true;
191 m_attributes = std::forward<AttributesT>(value);
192 }
193 template <typename AttributesT = LinkAttributes>
194 GetLinkResult& WithAttributes(AttributesT&& value) {
195 SetAttributes(std::forward<AttributesT>(value));
196 return *this;
197 }
199
201
204 inline const LinkLogSettings& GetLogSettings() const { return m_logSettings; }
205 template <typename LogSettingsT = LinkLogSettings>
206 void SetLogSettings(LogSettingsT&& value) {
207 m_logSettingsHasBeenSet = true;
208 m_logSettings = std::forward<LogSettingsT>(value);
209 }
210 template <typename LogSettingsT = LinkLogSettings>
211 GetLinkResult& WithLogSettings(LogSettingsT&& value) {
212 SetLogSettings(std::forward<LogSettingsT>(value));
213 return *this;
214 }
216
218
221 inline ConnectivityType GetConnectivityType() const { return m_connectivityType; }
223 m_connectivityTypeHasBeenSet = true;
224 m_connectivityType = value;
225 }
227 SetConnectivityType(value);
228 return *this;
229 }
231
233
236 inline const Aws::String& GetLinkId() const { return m_linkId; }
237 template <typename LinkIdT = Aws::String>
238 void SetLinkId(LinkIdT&& value) {
239 m_linkIdHasBeenSet = true;
240 m_linkId = std::forward<LinkIdT>(value);
241 }
242 template <typename LinkIdT = Aws::String>
243 GetLinkResult& WithLinkId(LinkIdT&& value) {
244 SetLinkId(std::forward<LinkIdT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
255 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
256 void SetTags(TagsT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags = std::forward<TagsT>(value);
259 }
260 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
261 GetLinkResult& WithTags(TagsT&& value) {
262 SetTags(std::forward<TagsT>(value));
263 return *this;
264 }
265 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
266 GetLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
269 return *this;
270 }
272
274
277 inline bool GetHttpResponderAllowed() const { return m_httpResponderAllowed; }
278 inline void SetHttpResponderAllowed(bool value) {
279 m_httpResponderAllowedHasBeenSet = true;
280 m_httpResponderAllowed = value;
281 }
284 return *this;
285 }
287
289
292 inline long long GetTimeoutInMillis() const { return m_timeoutInMillis; }
293 inline void SetTimeoutInMillis(long long value) {
294 m_timeoutInMillisHasBeenSet = true;
295 m_timeoutInMillis = value;
296 }
297 inline GetLinkResult& WithTimeoutInMillis(long long value) {
298 SetTimeoutInMillis(value);
299 return *this;
300 }
302
304
305 inline const Aws::String& GetRequestId() const { return m_requestId; }
306 template <typename RequestIdT = Aws::String>
307 void SetRequestId(RequestIdT&& value) {
308 m_requestIdHasBeenSet = true;
309 m_requestId = std::forward<RequestIdT>(value);
310 }
311 template <typename RequestIdT = Aws::String>
312 GetLinkResult& WithRequestId(RequestIdT&& value) {
313 SetRequestId(std::forward<RequestIdT>(value));
314 return *this;
315 }
317 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
318
319 private:
320 Aws::String m_gatewayId;
321
322 Aws::String m_peerGatewayId;
323
325
326 Aws::Utils::DateTime m_createdAt{};
327
328 Aws::Utils::DateTime m_updatedAt{};
329
331
333
334 Aws::Vector<ModuleConfiguration> m_pendingFlowModules;
335
336 LinkAttributes m_attributes;
337
338 LinkLogSettings m_logSettings;
339
341
342 Aws::String m_linkId;
343
345
346 bool m_httpResponderAllowed{false};
347
348 long long m_timeoutInMillis{0};
349
350 Aws::String m_requestId;
351 Aws::Http::HttpResponseCode m_HttpResponseCode;
352 bool m_gatewayIdHasBeenSet = false;
353 bool m_peerGatewayIdHasBeenSet = false;
354 bool m_statusHasBeenSet = false;
355 bool m_createdAtHasBeenSet = false;
356 bool m_updatedAtHasBeenSet = false;
357 bool m_directionHasBeenSet = false;
358 bool m_flowModulesHasBeenSet = false;
359 bool m_pendingFlowModulesHasBeenSet = false;
360 bool m_attributesHasBeenSet = false;
361 bool m_logSettingsHasBeenSet = false;
362 bool m_connectivityTypeHasBeenSet = false;
363 bool m_linkIdHasBeenSet = false;
364 bool m_tagsHasBeenSet = false;
365 bool m_httpResponderAllowedHasBeenSet = false;
366 bool m_timeoutInMillisHasBeenSet = false;
367 bool m_requestIdHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace RTBFabric
372} // namespace Aws
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue