AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CreateInterconnectResult.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/directconnect/DirectConnect_EXPORTS.h>
12#include <aws/directconnect/model/HasLogicalRedundancy.h>
13#include <aws/directconnect/model/InterconnectState.h>
14#include <aws/directconnect/model/MacSecKey.h>
15#include <aws/directconnect/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DirectConnect {
29namespace Model {
36 public:
37 AWS_DIRECTCONNECT_API CreateInterconnectResult() = default;
40
42
45 inline const Aws::String& GetInterconnectId() const { return m_interconnectId; }
46 template <typename InterconnectIdT = Aws::String>
47 void SetInterconnectId(InterconnectIdT&& value) {
48 m_interconnectIdHasBeenSet = true;
49 m_interconnectId = std::forward<InterconnectIdT>(value);
50 }
51 template <typename InterconnectIdT = Aws::String>
52 CreateInterconnectResult& WithInterconnectId(InterconnectIdT&& value) {
53 SetInterconnectId(std::forward<InterconnectIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetInterconnectName() const { return m_interconnectName; }
63 template <typename InterconnectNameT = Aws::String>
64 void SetInterconnectName(InterconnectNameT&& value) {
65 m_interconnectNameHasBeenSet = true;
66 m_interconnectName = std::forward<InterconnectNameT>(value);
67 }
68 template <typename InterconnectNameT = Aws::String>
69 CreateInterconnectResult& WithInterconnectName(InterconnectNameT&& value) {
70 SetInterconnectName(std::forward<InterconnectNameT>(value));
71 return *this;
72 }
74
76
89 inline InterconnectState GetInterconnectState() const { return m_interconnectState; }
91 m_interconnectStateHasBeenSet = true;
92 m_interconnectState = value;
93 }
96 return *this;
97 }
99
101
104 inline const Aws::String& GetRegion() const { return m_region; }
105 template <typename RegionT = Aws::String>
106 void SetRegion(RegionT&& value) {
107 m_regionHasBeenSet = true;
108 m_region = std::forward<RegionT>(value);
109 }
110 template <typename RegionT = Aws::String>
112 SetRegion(std::forward<RegionT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetLocation() const { return m_location; }
122 template <typename LocationT = Aws::String>
123 void SetLocation(LocationT&& value) {
124 m_locationHasBeenSet = true;
125 m_location = std::forward<LocationT>(value);
126 }
127 template <typename LocationT = Aws::String>
129 SetLocation(std::forward<LocationT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
139 template <typename BandwidthT = Aws::String>
140 void SetBandwidth(BandwidthT&& value) {
141 m_bandwidthHasBeenSet = true;
142 m_bandwidth = std::forward<BandwidthT>(value);
143 }
144 template <typename BandwidthT = Aws::String>
146 SetBandwidth(std::forward<BandwidthT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
157 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
158 void SetLoaIssueTime(LoaIssueTimeT&& value) {
159 m_loaIssueTimeHasBeenSet = true;
160 m_loaIssueTime = std::forward<LoaIssueTimeT>(value);
161 }
162 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
164 SetLoaIssueTime(std::forward<LoaIssueTimeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetLagId() const { return m_lagId; }
174 template <typename LagIdT = Aws::String>
175 void SetLagId(LagIdT&& value) {
176 m_lagIdHasBeenSet = true;
177 m_lagId = std::forward<LagIdT>(value);
178 }
179 template <typename LagIdT = Aws::String>
181 SetLagId(std::forward<LagIdT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
191 template <typename AwsDeviceT = Aws::String>
192 void SetAwsDevice(AwsDeviceT&& value) {
193 m_awsDeviceHasBeenSet = true;
194 m_awsDevice = std::forward<AwsDeviceT>(value);
195 }
196 template <typename AwsDeviceT = Aws::String>
198 SetAwsDevice(std::forward<AwsDeviceT>(value));
199 return *this;
200 }
202
204
207 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
208 inline void SetJumboFrameCapable(bool value) {
209 m_jumboFrameCapableHasBeenSet = true;
210 m_jumboFrameCapable = value;
211 }
214 return *this;
215 }
217
219
222 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
223 template <typename AwsDeviceV2T = Aws::String>
224 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
225 m_awsDeviceV2HasBeenSet = true;
226 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
227 }
228 template <typename AwsDeviceV2T = Aws::String>
230 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
231 return *this;
232 }
234
236
241 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
242 template <typename AwsLogicalDeviceIdT = Aws::String>
243 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
244 m_awsLogicalDeviceIdHasBeenSet = true;
245 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
246 }
247 template <typename AwsLogicalDeviceIdT = Aws::String>
248 CreateInterconnectResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
249 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
250 return *this;
251 }
253
255
259 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
261 m_hasLogicalRedundancyHasBeenSet = true;
262 m_hasLogicalRedundancy = value;
263 }
266 return *this;
267 }
269
271
274 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
275 template <typename TagsT = Aws::Vector<Tag>>
276 void SetTags(TagsT&& value) {
277 m_tagsHasBeenSet = true;
278 m_tags = std::forward<TagsT>(value);
279 }
280 template <typename TagsT = Aws::Vector<Tag>>
282 SetTags(std::forward<TagsT>(value));
283 return *this;
284 }
285 template <typename TagsT = Tag>
287 m_tagsHasBeenSet = true;
288 m_tags.emplace_back(std::forward<TagsT>(value));
289 return *this;
290 }
292
294
297 inline const Aws::String& GetProviderName() const { return m_providerName; }
298 template <typename ProviderNameT = Aws::String>
299 void SetProviderName(ProviderNameT&& value) {
300 m_providerNameHasBeenSet = true;
301 m_providerName = std::forward<ProviderNameT>(value);
302 }
303 template <typename ProviderNameT = Aws::String>
305 SetProviderName(std::forward<ProviderNameT>(value));
306 return *this;
307 }
309
311
314 inline bool GetMacSecCapable() const { return m_macSecCapable; }
315 inline void SetMacSecCapable(bool value) {
316 m_macSecCapableHasBeenSet = true;
317 m_macSecCapable = value;
318 }
320 SetMacSecCapable(value);
321 return *this;
322 }
324
326
331 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
332 template <typename PortEncryptionStatusT = Aws::String>
333 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) {
334 m_portEncryptionStatusHasBeenSet = true;
335 m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value);
336 }
337 template <typename PortEncryptionStatusT = Aws::String>
338 CreateInterconnectResult& WithPortEncryptionStatus(PortEncryptionStatusT&& value) {
339 SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value));
340 return *this;
341 }
343
345
350 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
351 template <typename EncryptionModeT = Aws::String>
352 void SetEncryptionMode(EncryptionModeT&& value) {
353 m_encryptionModeHasBeenSet = true;
354 m_encryptionMode = std::forward<EncryptionModeT>(value);
355 }
356 template <typename EncryptionModeT = Aws::String>
358 SetEncryptionMode(std::forward<EncryptionModeT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
368 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
369 void SetMacSecKeys(MacSecKeysT&& value) {
370 m_macSecKeysHasBeenSet = true;
371 m_macSecKeys = std::forward<MacSecKeysT>(value);
372 }
373 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
375 SetMacSecKeys(std::forward<MacSecKeysT>(value));
376 return *this;
377 }
378 template <typename MacSecKeysT = MacSecKey>
380 m_macSecKeysHasBeenSet = true;
381 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
382 return *this;
383 }
385
387
388 inline const Aws::String& GetRequestId() const { return m_requestId; }
389 template <typename RequestIdT = Aws::String>
390 void SetRequestId(RequestIdT&& value) {
391 m_requestIdHasBeenSet = true;
392 m_requestId = std::forward<RequestIdT>(value);
393 }
394 template <typename RequestIdT = Aws::String>
396 SetRequestId(std::forward<RequestIdT>(value));
397 return *this;
398 }
400 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
401
402 private:
403 Aws::String m_interconnectId;
404
405 Aws::String m_interconnectName;
406
408
409 Aws::String m_region;
410
411 Aws::String m_location;
412
413 Aws::String m_bandwidth;
414
415 Aws::Utils::DateTime m_loaIssueTime{};
416
417 Aws::String m_lagId;
418
419 Aws::String m_awsDevice;
420
421 bool m_jumboFrameCapable{false};
422
423 Aws::String m_awsDeviceV2;
424
425 Aws::String m_awsLogicalDeviceId;
426
428
429 Aws::Vector<Tag> m_tags;
430
431 Aws::String m_providerName;
432
433 bool m_macSecCapable{false};
434
435 Aws::String m_portEncryptionStatus;
436
437 Aws::String m_encryptionMode;
438
439 Aws::Vector<MacSecKey> m_macSecKeys;
440
441 Aws::String m_requestId;
442 Aws::Http::HttpResponseCode m_HttpResponseCode;
443 bool m_interconnectIdHasBeenSet = false;
444 bool m_interconnectNameHasBeenSet = false;
445 bool m_interconnectStateHasBeenSet = false;
446 bool m_regionHasBeenSet = false;
447 bool m_locationHasBeenSet = false;
448 bool m_bandwidthHasBeenSet = false;
449 bool m_loaIssueTimeHasBeenSet = false;
450 bool m_lagIdHasBeenSet = false;
451 bool m_awsDeviceHasBeenSet = false;
452 bool m_jumboFrameCapableHasBeenSet = false;
453 bool m_awsDeviceV2HasBeenSet = false;
454 bool m_awsLogicalDeviceIdHasBeenSet = false;
455 bool m_hasLogicalRedundancyHasBeenSet = false;
456 bool m_tagsHasBeenSet = false;
457 bool m_providerNameHasBeenSet = false;
458 bool m_macSecCapableHasBeenSet = false;
459 bool m_portEncryptionStatusHasBeenSet = false;
460 bool m_encryptionModeHasBeenSet = false;
461 bool m_macSecKeysHasBeenSet = false;
462 bool m_requestIdHasBeenSet = false;
463};
464
465} // namespace Model
466} // namespace DirectConnect
467} // namespace Aws
CreateInterconnectResult & WithAwsDevice(AwsDeviceT &&value)
CreateInterconnectResult & WithEncryptionMode(EncryptionModeT &&value)
CreateInterconnectResult & WithRequestId(RequestIdT &&value)
CreateInterconnectResult & WithInterconnectState(InterconnectState value)
CreateInterconnectResult & WithLagId(LagIdT &&value)
CreateInterconnectResult & WithProviderName(ProviderNameT &&value)
CreateInterconnectResult & AddMacSecKeys(MacSecKeysT &&value)
AWS_DIRECTCONNECT_API CreateInterconnectResult()=default
CreateInterconnectResult & WithBandwidth(BandwidthT &&value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
CreateInterconnectResult & WithTags(TagsT &&value)
CreateInterconnectResult & WithMacSecKeys(MacSecKeysT &&value)
AWS_DIRECTCONNECT_API CreateInterconnectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateInterconnectResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
AWS_DIRECTCONNECT_API CreateInterconnectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateInterconnectResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
CreateInterconnectResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
CreateInterconnectResult & WithInterconnectId(InterconnectIdT &&value)
CreateInterconnectResult & WithRegion(RegionT &&value)
CreateInterconnectResult & WithJumboFrameCapable(bool value)
CreateInterconnectResult & AddTags(TagsT &&value)
CreateInterconnectResult & WithMacSecCapable(bool value)
CreateInterconnectResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
CreateInterconnectResult & WithInterconnectName(InterconnectNameT &&value)
CreateInterconnectResult & WithLoaIssueTime(LoaIssueTimeT &&value)
CreateInterconnectResult & WithLocation(LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue