AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AssociateHostedConnectionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/ConnectionState.h>
12#include <aws/directconnect/model/HasLogicalRedundancy.h>
13#include <aws/directconnect/model/MacSecKey.h>
14#include <aws/directconnect/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DirectConnect {
28namespace Model {
35 public:
36 AWS_DIRECTCONNECT_API AssociateHostedConnectionResult() = default;
39
41
44 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
45 template <typename OwnerAccountT = Aws::String>
46 void SetOwnerAccount(OwnerAccountT&& value) {
47 m_ownerAccountHasBeenSet = true;
48 m_ownerAccount = std::forward<OwnerAccountT>(value);
49 }
50 template <typename OwnerAccountT = Aws::String>
52 SetOwnerAccount(std::forward<OwnerAccountT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
62 template <typename ConnectionIdT = Aws::String>
63 void SetConnectionId(ConnectionIdT&& value) {
64 m_connectionIdHasBeenSet = true;
65 m_connectionId = std::forward<ConnectionIdT>(value);
66 }
67 template <typename ConnectionIdT = Aws::String>
69 SetConnectionId(std::forward<ConnectionIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
79 template <typename ConnectionNameT = Aws::String>
80 void SetConnectionName(ConnectionNameT&& value) {
81 m_connectionNameHasBeenSet = true;
82 m_connectionName = std::forward<ConnectionNameT>(value);
83 }
84 template <typename ConnectionNameT = Aws::String>
86 SetConnectionName(std::forward<ConnectionNameT>(value));
87 return *this;
88 }
90
92
110 inline ConnectionState GetConnectionState() const { return m_connectionState; }
112 m_connectionStateHasBeenSet = true;
113 m_connectionState = value;
114 }
116 SetConnectionState(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetRegion() const { return m_region; }
126 template <typename RegionT = Aws::String>
127 void SetRegion(RegionT&& value) {
128 m_regionHasBeenSet = true;
129 m_region = std::forward<RegionT>(value);
130 }
131 template <typename RegionT = Aws::String>
133 SetRegion(std::forward<RegionT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetLocation() const { return m_location; }
143 template <typename LocationT = Aws::String>
144 void SetLocation(LocationT&& value) {
145 m_locationHasBeenSet = true;
146 m_location = std::forward<LocationT>(value);
147 }
148 template <typename LocationT = Aws::String>
150 SetLocation(std::forward<LocationT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
160 template <typename BandwidthT = Aws::String>
161 void SetBandwidth(BandwidthT&& value) {
162 m_bandwidthHasBeenSet = true;
163 m_bandwidth = std::forward<BandwidthT>(value);
164 }
165 template <typename BandwidthT = Aws::String>
167 SetBandwidth(std::forward<BandwidthT>(value));
168 return *this;
169 }
171
173
176 inline int GetVlan() const { return m_vlan; }
177 inline void SetVlan(int value) {
178 m_vlanHasBeenSet = true;
179 m_vlan = value;
180 }
182 SetVlan(value);
183 return *this;
184 }
186
188
192 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
193 template <typename PartnerNameT = Aws::String>
194 void SetPartnerName(PartnerNameT&& value) {
195 m_partnerNameHasBeenSet = true;
196 m_partnerName = std::forward<PartnerNameT>(value);
197 }
198 template <typename PartnerNameT = Aws::String>
200 SetPartnerName(std::forward<PartnerNameT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
211 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
212 void SetLoaIssueTime(LoaIssueTimeT&& value) {
213 m_loaIssueTimeHasBeenSet = true;
214 m_loaIssueTime = std::forward<LoaIssueTimeT>(value);
215 }
216 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
218 SetLoaIssueTime(std::forward<LoaIssueTimeT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetLagId() const { return m_lagId; }
228 template <typename LagIdT = Aws::String>
229 void SetLagId(LagIdT&& value) {
230 m_lagIdHasBeenSet = true;
231 m_lagId = std::forward<LagIdT>(value);
232 }
233 template <typename LagIdT = Aws::String>
235 SetLagId(std::forward<LagIdT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
245 template <typename AwsDeviceT = Aws::String>
246 void SetAwsDevice(AwsDeviceT&& value) {
247 m_awsDeviceHasBeenSet = true;
248 m_awsDevice = std::forward<AwsDeviceT>(value);
249 }
250 template <typename AwsDeviceT = Aws::String>
252 SetAwsDevice(std::forward<AwsDeviceT>(value));
253 return *this;
254 }
256
258
261 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
262 inline void SetJumboFrameCapable(bool value) {
263 m_jumboFrameCapableHasBeenSet = true;
264 m_jumboFrameCapable = value;
265 }
268 return *this;
269 }
271
273
276 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
277 template <typename AwsDeviceV2T = Aws::String>
278 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
279 m_awsDeviceV2HasBeenSet = true;
280 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
281 }
282 template <typename AwsDeviceV2T = Aws::String>
284 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
285 return *this;
286 }
288
290
295 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
296 template <typename AwsLogicalDeviceIdT = Aws::String>
297 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
298 m_awsLogicalDeviceIdHasBeenSet = true;
299 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
300 }
301 template <typename AwsLogicalDeviceIdT = Aws::String>
303 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
304 return *this;
305 }
307
309
313 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
315 m_hasLogicalRedundancyHasBeenSet = true;
316 m_hasLogicalRedundancy = value;
317 }
320 return *this;
321 }
323
325
328 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
329 template <typename TagsT = Aws::Vector<Tag>>
330 void SetTags(TagsT&& value) {
331 m_tagsHasBeenSet = true;
332 m_tags = std::forward<TagsT>(value);
333 }
334 template <typename TagsT = Aws::Vector<Tag>>
336 SetTags(std::forward<TagsT>(value));
337 return *this;
338 }
339 template <typename TagsT = Tag>
341 m_tagsHasBeenSet = true;
342 m_tags.emplace_back(std::forward<TagsT>(value));
343 return *this;
344 }
346
348
351 inline const Aws::String& GetProviderName() const { return m_providerName; }
352 template <typename ProviderNameT = Aws::String>
353 void SetProviderName(ProviderNameT&& value) {
354 m_providerNameHasBeenSet = true;
355 m_providerName = std::forward<ProviderNameT>(value);
356 }
357 template <typename ProviderNameT = Aws::String>
359 SetProviderName(std::forward<ProviderNameT>(value));
360 return *this;
361 }
363
365
368 inline bool GetMacSecCapable() const { return m_macSecCapable; }
369 inline void SetMacSecCapable(bool value) {
370 m_macSecCapableHasBeenSet = true;
371 m_macSecCapable = value;
372 }
374 SetMacSecCapable(value);
375 return *this;
376 }
378
380
385 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
386 template <typename PortEncryptionStatusT = Aws::String>
387 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) {
388 m_portEncryptionStatusHasBeenSet = true;
389 m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value);
390 }
391 template <typename PortEncryptionStatusT = Aws::String>
393 SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value));
394 return *this;
395 }
397
399
404 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
405 template <typename EncryptionModeT = Aws::String>
406 void SetEncryptionMode(EncryptionModeT&& value) {
407 m_encryptionModeHasBeenSet = true;
408 m_encryptionMode = std::forward<EncryptionModeT>(value);
409 }
410 template <typename EncryptionModeT = Aws::String>
412 SetEncryptionMode(std::forward<EncryptionModeT>(value));
413 return *this;
414 }
416
418
421 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
422 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
423 void SetMacSecKeys(MacSecKeysT&& value) {
424 m_macSecKeysHasBeenSet = true;
425 m_macSecKeys = std::forward<MacSecKeysT>(value);
426 }
427 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
429 SetMacSecKeys(std::forward<MacSecKeysT>(value));
430 return *this;
431 }
432 template <typename MacSecKeysT = MacSecKey>
434 m_macSecKeysHasBeenSet = true;
435 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
436 return *this;
437 }
439
441
445 inline bool GetPartnerInterconnectMacSecCapable() const { return m_partnerInterconnectMacSecCapable; }
446 inline void SetPartnerInterconnectMacSecCapable(bool value) {
447 m_partnerInterconnectMacSecCapableHasBeenSet = true;
448 m_partnerInterconnectMacSecCapable = value;
449 }
452 return *this;
453 }
455
457
458 inline const Aws::String& GetRequestId() const { return m_requestId; }
459 template <typename RequestIdT = Aws::String>
460 void SetRequestId(RequestIdT&& value) {
461 m_requestIdHasBeenSet = true;
462 m_requestId = std::forward<RequestIdT>(value);
463 }
464 template <typename RequestIdT = Aws::String>
466 SetRequestId(std::forward<RequestIdT>(value));
467 return *this;
468 }
470 private:
471 Aws::String m_ownerAccount;
472
473 Aws::String m_connectionId;
474
475 Aws::String m_connectionName;
476
477 ConnectionState m_connectionState{ConnectionState::NOT_SET};
478
479 Aws::String m_region;
480
481 Aws::String m_location;
482
483 Aws::String m_bandwidth;
484
485 int m_vlan{0};
486
487 Aws::String m_partnerName;
488
489 Aws::Utils::DateTime m_loaIssueTime{};
490
491 Aws::String m_lagId;
492
493 Aws::String m_awsDevice;
494
495 bool m_jumboFrameCapable{false};
496
497 Aws::String m_awsDeviceV2;
498
499 Aws::String m_awsLogicalDeviceId;
500
502
503 Aws::Vector<Tag> m_tags;
504
505 Aws::String m_providerName;
506
507 bool m_macSecCapable{false};
508
509 Aws::String m_portEncryptionStatus;
510
511 Aws::String m_encryptionMode;
512
513 Aws::Vector<MacSecKey> m_macSecKeys;
514
515 bool m_partnerInterconnectMacSecCapable{false};
516
517 Aws::String m_requestId;
518 bool m_ownerAccountHasBeenSet = false;
519 bool m_connectionIdHasBeenSet = false;
520 bool m_connectionNameHasBeenSet = false;
521 bool m_connectionStateHasBeenSet = false;
522 bool m_regionHasBeenSet = false;
523 bool m_locationHasBeenSet = false;
524 bool m_bandwidthHasBeenSet = false;
525 bool m_vlanHasBeenSet = false;
526 bool m_partnerNameHasBeenSet = false;
527 bool m_loaIssueTimeHasBeenSet = false;
528 bool m_lagIdHasBeenSet = false;
529 bool m_awsDeviceHasBeenSet = false;
530 bool m_jumboFrameCapableHasBeenSet = false;
531 bool m_awsDeviceV2HasBeenSet = false;
532 bool m_awsLogicalDeviceIdHasBeenSet = false;
533 bool m_hasLogicalRedundancyHasBeenSet = false;
534 bool m_tagsHasBeenSet = false;
535 bool m_providerNameHasBeenSet = false;
536 bool m_macSecCapableHasBeenSet = false;
537 bool m_portEncryptionStatusHasBeenSet = false;
538 bool m_encryptionModeHasBeenSet = false;
539 bool m_macSecKeysHasBeenSet = false;
540 bool m_partnerInterconnectMacSecCapableHasBeenSet = false;
541 bool m_requestIdHasBeenSet = false;
542};
543
544} // namespace Model
545} // namespace DirectConnect
546} // namespace Aws
AssociateHostedConnectionResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
AWS_DIRECTCONNECT_API AssociateHostedConnectionResult()=default
AssociateHostedConnectionResult & WithRegion(RegionT &&value)
AssociateHostedConnectionResult & WithRequestId(RequestIdT &&value)
AssociateHostedConnectionResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
AWS_DIRECTCONNECT_API AssociateHostedConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateHostedConnectionResult & WithBandwidth(BandwidthT &&value)
AssociateHostedConnectionResult & WithLoaIssueTime(LoaIssueTimeT &&value)
AssociateHostedConnectionResult & WithLocation(LocationT &&value)
AssociateHostedConnectionResult & WithEncryptionMode(EncryptionModeT &&value)
AssociateHostedConnectionResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AssociateHostedConnectionResult & WithConnectionName(ConnectionNameT &&value)
AssociateHostedConnectionResult & WithPartnerName(PartnerNameT &&value)
AssociateHostedConnectionResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AssociateHostedConnectionResult & WithConnectionState(ConnectionState value)
AssociateHostedConnectionResult & WithProviderName(ProviderNameT &&value)
AssociateHostedConnectionResult & WithPartnerInterconnectMacSecCapable(bool value)
AWS_DIRECTCONNECT_API AssociateHostedConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateHostedConnectionResult & WithAwsDevice(AwsDeviceT &&value)
AssociateHostedConnectionResult & AddMacSecKeys(MacSecKeysT &&value)
AssociateHostedConnectionResult & WithMacSecKeys(MacSecKeysT &&value)
AssociateHostedConnectionResult & WithOwnerAccount(OwnerAccountT &&value)
AssociateHostedConnectionResult & WithConnectionId(ConnectionIdT &&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