AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
AllocateHostedConnectionResult.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/ConnectionState.h>
13#include <aws/directconnect/model/HasLogicalRedundancy.h>
14#include <aws/directconnect/model/MacSecKey.h>
15#include <aws/directconnect/model/RateLimiterStatus.h>
16#include <aws/directconnect/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DirectConnect {
30namespace Model {
37 public:
38 AWS_DIRECTCONNECT_API AllocateHostedConnectionResult() = default;
41
43
46 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
47 template <typename OwnerAccountT = Aws::String>
48 void SetOwnerAccount(OwnerAccountT&& value) {
49 m_ownerAccountHasBeenSet = true;
50 m_ownerAccount = std::forward<OwnerAccountT>(value);
51 }
52 template <typename OwnerAccountT = Aws::String>
54 SetOwnerAccount(std::forward<OwnerAccountT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
64 template <typename ConnectionIdT = Aws::String>
65 void SetConnectionId(ConnectionIdT&& value) {
66 m_connectionIdHasBeenSet = true;
67 m_connectionId = std::forward<ConnectionIdT>(value);
68 }
69 template <typename ConnectionIdT = Aws::String>
71 SetConnectionId(std::forward<ConnectionIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
81 template <typename ConnectionNameT = Aws::String>
82 void SetConnectionName(ConnectionNameT&& value) {
83 m_connectionNameHasBeenSet = true;
84 m_connectionName = std::forward<ConnectionNameT>(value);
85 }
86 template <typename ConnectionNameT = Aws::String>
88 SetConnectionName(std::forward<ConnectionNameT>(value));
89 return *this;
90 }
92
94
112 inline ConnectionState GetConnectionState() const { return m_connectionState; }
114 m_connectionStateHasBeenSet = true;
115 m_connectionState = value;
116 }
118 SetConnectionState(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetRegion() const { return m_region; }
128 template <typename RegionT = Aws::String>
129 void SetRegion(RegionT&& value) {
130 m_regionHasBeenSet = true;
131 m_region = std::forward<RegionT>(value);
132 }
133 template <typename RegionT = Aws::String>
135 SetRegion(std::forward<RegionT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetLocation() const { return m_location; }
145 template <typename LocationT = Aws::String>
146 void SetLocation(LocationT&& value) {
147 m_locationHasBeenSet = true;
148 m_location = std::forward<LocationT>(value);
149 }
150 template <typename LocationT = Aws::String>
152 SetLocation(std::forward<LocationT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
162 template <typename BandwidthT = Aws::String>
163 void SetBandwidth(BandwidthT&& value) {
164 m_bandwidthHasBeenSet = true;
165 m_bandwidth = std::forward<BandwidthT>(value);
166 }
167 template <typename BandwidthT = Aws::String>
169 SetBandwidth(std::forward<BandwidthT>(value));
170 return *this;
171 }
173
175
178 inline int GetVlan() const { return m_vlan; }
179 inline void SetVlan(int value) {
180 m_vlanHasBeenSet = true;
181 m_vlan = value;
182 }
184 SetVlan(value);
185 return *this;
186 }
188
190
194 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
195 template <typename PartnerNameT = Aws::String>
196 void SetPartnerName(PartnerNameT&& value) {
197 m_partnerNameHasBeenSet = true;
198 m_partnerName = std::forward<PartnerNameT>(value);
199 }
200 template <typename PartnerNameT = Aws::String>
202 SetPartnerName(std::forward<PartnerNameT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
213 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
214 void SetLoaIssueTime(LoaIssueTimeT&& value) {
215 m_loaIssueTimeHasBeenSet = true;
216 m_loaIssueTime = std::forward<LoaIssueTimeT>(value);
217 }
218 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
220 SetLoaIssueTime(std::forward<LoaIssueTimeT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetLagId() const { return m_lagId; }
230 template <typename LagIdT = Aws::String>
231 void SetLagId(LagIdT&& value) {
232 m_lagIdHasBeenSet = true;
233 m_lagId = std::forward<LagIdT>(value);
234 }
235 template <typename LagIdT = Aws::String>
237 SetLagId(std::forward<LagIdT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
247 template <typename AwsDeviceT = Aws::String>
248 void SetAwsDevice(AwsDeviceT&& value) {
249 m_awsDeviceHasBeenSet = true;
250 m_awsDevice = std::forward<AwsDeviceT>(value);
251 }
252 template <typename AwsDeviceT = Aws::String>
254 SetAwsDevice(std::forward<AwsDeviceT>(value));
255 return *this;
256 }
258
260
263 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
264 inline void SetJumboFrameCapable(bool value) {
265 m_jumboFrameCapableHasBeenSet = true;
266 m_jumboFrameCapable = value;
267 }
270 return *this;
271 }
273
275
278 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
279 template <typename AwsDeviceV2T = Aws::String>
280 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
281 m_awsDeviceV2HasBeenSet = true;
282 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
283 }
284 template <typename AwsDeviceV2T = Aws::String>
286 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
287 return *this;
288 }
290
292
297 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
298 template <typename AwsLogicalDeviceIdT = Aws::String>
299 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
300 m_awsLogicalDeviceIdHasBeenSet = true;
301 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
302 }
303 template <typename AwsLogicalDeviceIdT = Aws::String>
305 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
306 return *this;
307 }
309
311
315 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
317 m_hasLogicalRedundancyHasBeenSet = true;
318 m_hasLogicalRedundancy = value;
319 }
322 return *this;
323 }
325
327
330 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
331 template <typename TagsT = Aws::Vector<Tag>>
332 void SetTags(TagsT&& value) {
333 m_tagsHasBeenSet = true;
334 m_tags = std::forward<TagsT>(value);
335 }
336 template <typename TagsT = Aws::Vector<Tag>>
338 SetTags(std::forward<TagsT>(value));
339 return *this;
340 }
341 template <typename TagsT = Tag>
343 m_tagsHasBeenSet = true;
344 m_tags.emplace_back(std::forward<TagsT>(value));
345 return *this;
346 }
348
350
353 inline const Aws::String& GetProviderName() const { return m_providerName; }
354 template <typename ProviderNameT = Aws::String>
355 void SetProviderName(ProviderNameT&& value) {
356 m_providerNameHasBeenSet = true;
357 m_providerName = std::forward<ProviderNameT>(value);
358 }
359 template <typename ProviderNameT = Aws::String>
361 SetProviderName(std::forward<ProviderNameT>(value));
362 return *this;
363 }
365
367
370 inline bool GetMacSecCapable() const { return m_macSecCapable; }
371 inline void SetMacSecCapable(bool value) {
372 m_macSecCapableHasBeenSet = true;
373 m_macSecCapable = value;
374 }
376 SetMacSecCapable(value);
377 return *this;
378 }
380
382
387 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
388 template <typename PortEncryptionStatusT = Aws::String>
389 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) {
390 m_portEncryptionStatusHasBeenSet = true;
391 m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value);
392 }
393 template <typename PortEncryptionStatusT = Aws::String>
395 SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value));
396 return *this;
397 }
399
401
406 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
407 template <typename EncryptionModeT = Aws::String>
408 void SetEncryptionMode(EncryptionModeT&& value) {
409 m_encryptionModeHasBeenSet = true;
410 m_encryptionMode = std::forward<EncryptionModeT>(value);
411 }
412 template <typename EncryptionModeT = Aws::String>
414 SetEncryptionMode(std::forward<EncryptionModeT>(value));
415 return *this;
416 }
418
420
423 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
424 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
425 void SetMacSecKeys(MacSecKeysT&& value) {
426 m_macSecKeysHasBeenSet = true;
427 m_macSecKeys = std::forward<MacSecKeysT>(value);
428 }
429 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
431 SetMacSecKeys(std::forward<MacSecKeysT>(value));
432 return *this;
433 }
434 template <typename MacSecKeysT = MacSecKey>
436 m_macSecKeysHasBeenSet = true;
437 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
438 return *this;
439 }
441
443
447 inline const RateLimiterStatus& GetRateLimiterStatus() const { return m_rateLimiterStatus; }
448 template <typename RateLimiterStatusT = RateLimiterStatus>
449 void SetRateLimiterStatus(RateLimiterStatusT&& value) {
450 m_rateLimiterStatusHasBeenSet = true;
451 m_rateLimiterStatus = std::forward<RateLimiterStatusT>(value);
452 }
453 template <typename RateLimiterStatusT = RateLimiterStatus>
455 SetRateLimiterStatus(std::forward<RateLimiterStatusT>(value));
456 return *this;
457 }
459
461
465 inline bool GetPartnerInterconnectMacSecCapable() const { return m_partnerInterconnectMacSecCapable; }
466 inline void SetPartnerInterconnectMacSecCapable(bool value) {
467 m_partnerInterconnectMacSecCapableHasBeenSet = true;
468 m_partnerInterconnectMacSecCapable = value;
469 }
472 return *this;
473 }
475
477
478 inline const Aws::String& GetRequestId() const { return m_requestId; }
479 template <typename RequestIdT = Aws::String>
480 void SetRequestId(RequestIdT&& value) {
481 m_requestIdHasBeenSet = true;
482 m_requestId = std::forward<RequestIdT>(value);
483 }
484 template <typename RequestIdT = Aws::String>
486 SetRequestId(std::forward<RequestIdT>(value));
487 return *this;
488 }
490 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
491
492 private:
493 Aws::String m_ownerAccount;
494
495 Aws::String m_connectionId;
496
497 Aws::String m_connectionName;
498
499 ConnectionState m_connectionState{ConnectionState::NOT_SET};
500
501 Aws::String m_region;
502
503 Aws::String m_location;
504
505 Aws::String m_bandwidth;
506
507 int m_vlan{0};
508
509 Aws::String m_partnerName;
510
511 Aws::Utils::DateTime m_loaIssueTime{};
512
513 Aws::String m_lagId;
514
515 Aws::String m_awsDevice;
516
517 bool m_jumboFrameCapable{false};
518
519 Aws::String m_awsDeviceV2;
520
521 Aws::String m_awsLogicalDeviceId;
522
524
525 Aws::Vector<Tag> m_tags;
526
527 Aws::String m_providerName;
528
529 bool m_macSecCapable{false};
530
531 Aws::String m_portEncryptionStatus;
532
533 Aws::String m_encryptionMode;
534
535 Aws::Vector<MacSecKey> m_macSecKeys;
536
537 RateLimiterStatus m_rateLimiterStatus;
538
539 bool m_partnerInterconnectMacSecCapable{false};
540
541 Aws::String m_requestId;
542 Aws::Http::HttpResponseCode m_HttpResponseCode;
543 bool m_ownerAccountHasBeenSet = false;
544 bool m_connectionIdHasBeenSet = false;
545 bool m_connectionNameHasBeenSet = false;
546 bool m_connectionStateHasBeenSet = false;
547 bool m_regionHasBeenSet = false;
548 bool m_locationHasBeenSet = false;
549 bool m_bandwidthHasBeenSet = false;
550 bool m_vlanHasBeenSet = false;
551 bool m_partnerNameHasBeenSet = false;
552 bool m_loaIssueTimeHasBeenSet = false;
553 bool m_lagIdHasBeenSet = false;
554 bool m_awsDeviceHasBeenSet = false;
555 bool m_jumboFrameCapableHasBeenSet = false;
556 bool m_awsDeviceV2HasBeenSet = false;
557 bool m_awsLogicalDeviceIdHasBeenSet = false;
558 bool m_hasLogicalRedundancyHasBeenSet = false;
559 bool m_tagsHasBeenSet = false;
560 bool m_providerNameHasBeenSet = false;
561 bool m_macSecCapableHasBeenSet = false;
562 bool m_portEncryptionStatusHasBeenSet = false;
563 bool m_encryptionModeHasBeenSet = false;
564 bool m_macSecKeysHasBeenSet = false;
565 bool m_rateLimiterStatusHasBeenSet = false;
566 bool m_partnerInterconnectMacSecCapableHasBeenSet = false;
567 bool m_requestIdHasBeenSet = false;
568};
569
570} // namespace Model
571} // namespace DirectConnect
572} // namespace Aws
AllocateHostedConnectionResult & WithOwnerAccount(OwnerAccountT &&value)
AllocateHostedConnectionResult & WithPartnerName(PartnerNameT &&value)
AllocateHostedConnectionResult & WithRateLimiterStatus(RateLimiterStatusT &&value)
AllocateHostedConnectionResult & WithBandwidth(BandwidthT &&value)
AllocateHostedConnectionResult & WithConnectionId(ConnectionIdT &&value)
AllocateHostedConnectionResult & WithEncryptionMode(EncryptionModeT &&value)
AllocateHostedConnectionResult & WithConnectionName(ConnectionNameT &&value)
AllocateHostedConnectionResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
AllocateHostedConnectionResult & WithRegion(RegionT &&value)
AllocateHostedConnectionResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocateHostedConnectionResult & WithLoaIssueTime(LoaIssueTimeT &&value)
AllocateHostedConnectionResult & WithAwsDevice(AwsDeviceT &&value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult()=default
AllocateHostedConnectionResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
AllocateHostedConnectionResult & WithConnectionState(ConnectionState value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocateHostedConnectionResult & AddMacSecKeys(MacSecKeysT &&value)
AllocateHostedConnectionResult & WithMacSecKeys(MacSecKeysT &&value)
AllocateHostedConnectionResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AllocateHostedConnectionResult & WithRequestId(RequestIdT &&value)
AllocateHostedConnectionResult & WithLocation(LocationT &&value)
AllocateHostedConnectionResult & WithPartnerInterconnectMacSecCapable(bool value)
AllocateHostedConnectionResult & WithProviderName(ProviderNameT &&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