AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
DeleteLagResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/BillingMode.h>
12#include <aws/directconnect/model/Connection.h>
13#include <aws/directconnect/model/HasLogicalRedundancy.h>
14#include <aws/directconnect/model/LagState.h>
15#include <aws/directconnect/model/MacSecKey.h>
16#include <aws/directconnect/model/RateLimiterStatus.h>
17#include <aws/directconnect/model/Tag.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 DirectConnect {
31namespace Model {
39 public:
40 AWS_DIRECTCONNECT_API DeleteLagResult() = default;
43
45
49 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
50 template <typename ConnectionsBandwidthT = Aws::String>
51 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) {
52 m_connectionsBandwidthHasBeenSet = true;
53 m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value);
54 }
55 template <typename ConnectionsBandwidthT = Aws::String>
56 DeleteLagResult& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) {
57 SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value));
58 return *this;
59 }
61
63
69 inline int GetNumberOfConnections() const { return m_numberOfConnections; }
70 inline void SetNumberOfConnections(int value) {
71 m_numberOfConnectionsHasBeenSet = true;
72 m_numberOfConnections = value;
73 }
76 return *this;
77 }
79
81
84 inline const Aws::String& GetLagId() const { return m_lagId; }
85 template <typename LagIdT = Aws::String>
86 void SetLagId(LagIdT&& value) {
87 m_lagIdHasBeenSet = true;
88 m_lagId = std::forward<LagIdT>(value);
89 }
90 template <typename LagIdT = Aws::String>
91 DeleteLagResult& WithLagId(LagIdT&& value) {
92 SetLagId(std::forward<LagIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
102 template <typename OwnerAccountT = Aws::String>
103 void SetOwnerAccount(OwnerAccountT&& value) {
104 m_ownerAccountHasBeenSet = true;
105 m_ownerAccount = std::forward<OwnerAccountT>(value);
106 }
107 template <typename OwnerAccountT = Aws::String>
108 DeleteLagResult& WithOwnerAccount(OwnerAccountT&& value) {
109 SetOwnerAccount(std::forward<OwnerAccountT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetLagName() const { return m_lagName; }
119 template <typename LagNameT = Aws::String>
120 void SetLagName(LagNameT&& value) {
121 m_lagNameHasBeenSet = true;
122 m_lagName = std::forward<LagNameT>(value);
123 }
124 template <typename LagNameT = Aws::String>
125 DeleteLagResult& WithLagName(LagNameT&& value) {
126 SetLagName(std::forward<LagNameT>(value));
127 return *this;
128 }
130
132
144 inline LagState GetLagState() const { return m_lagState; }
145 inline void SetLagState(LagState value) {
146 m_lagStateHasBeenSet = true;
147 m_lagState = value;
148 }
150 SetLagState(value);
151 return *this;
152 }
154
156
159 inline const Aws::String& GetLocation() const { return m_location; }
160 template <typename LocationT = Aws::String>
161 void SetLocation(LocationT&& value) {
162 m_locationHasBeenSet = true;
163 m_location = std::forward<LocationT>(value);
164 }
165 template <typename LocationT = Aws::String>
166 DeleteLagResult& WithLocation(LocationT&& value) {
167 SetLocation(std::forward<LocationT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetRegion() const { return m_region; }
177 template <typename RegionT = Aws::String>
178 void SetRegion(RegionT&& value) {
179 m_regionHasBeenSet = true;
180 m_region = std::forward<RegionT>(value);
181 }
182 template <typename RegionT = Aws::String>
183 DeleteLagResult& WithRegion(RegionT&& value) {
184 SetRegion(std::forward<RegionT>(value));
185 return *this;
186 }
188
190
194 inline int GetMinimumLinks() const { return m_minimumLinks; }
195 inline void SetMinimumLinks(int value) {
196 m_minimumLinksHasBeenSet = true;
197 m_minimumLinks = value;
198 }
200 SetMinimumLinks(value);
201 return *this;
202 }
204
206
209 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
210 template <typename AwsDeviceT = Aws::String>
211 void SetAwsDevice(AwsDeviceT&& value) {
212 m_awsDeviceHasBeenSet = true;
213 m_awsDevice = std::forward<AwsDeviceT>(value);
214 }
215 template <typename AwsDeviceT = Aws::String>
216 DeleteLagResult& WithAwsDevice(AwsDeviceT&& value) {
217 SetAwsDevice(std::forward<AwsDeviceT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
227 template <typename AwsDeviceV2T = Aws::String>
228 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
229 m_awsDeviceV2HasBeenSet = true;
230 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
231 }
232 template <typename AwsDeviceV2T = Aws::String>
233 DeleteLagResult& WithAwsDeviceV2(AwsDeviceV2T&& value) {
234 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
235 return *this;
236 }
238
240
245 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
246 template <typename AwsLogicalDeviceIdT = Aws::String>
247 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
248 m_awsLogicalDeviceIdHasBeenSet = true;
249 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
250 }
251 template <typename AwsLogicalDeviceIdT = Aws::String>
252 DeleteLagResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
253 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Vector<Connection>& GetConnections() const { return m_connections; }
263 template <typename ConnectionsT = Aws::Vector<Connection>>
264 void SetConnections(ConnectionsT&& value) {
265 m_connectionsHasBeenSet = true;
266 m_connections = std::forward<ConnectionsT>(value);
267 }
268 template <typename ConnectionsT = Aws::Vector<Connection>>
269 DeleteLagResult& WithConnections(ConnectionsT&& value) {
270 SetConnections(std::forward<ConnectionsT>(value));
271 return *this;
272 }
273 template <typename ConnectionsT = Connection>
274 DeleteLagResult& AddConnections(ConnectionsT&& value) {
275 m_connectionsHasBeenSet = true;
276 m_connections.emplace_back(std::forward<ConnectionsT>(value));
277 return *this;
278 }
280
282
285 inline bool GetAllowsHostedConnections() const { return m_allowsHostedConnections; }
286 inline void SetAllowsHostedConnections(bool value) {
287 m_allowsHostedConnectionsHasBeenSet = true;
288 m_allowsHostedConnections = value;
289 }
292 return *this;
293 }
295
297
300 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
301 inline void SetJumboFrameCapable(bool value) {
302 m_jumboFrameCapableHasBeenSet = true;
303 m_jumboFrameCapable = value;
304 }
307 return *this;
308 }
310
312
316 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
318 m_hasLogicalRedundancyHasBeenSet = true;
319 m_hasLogicalRedundancy = value;
320 }
323 return *this;
324 }
326
328
331 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
332 template <typename TagsT = Aws::Vector<Tag>>
333 void SetTags(TagsT&& value) {
334 m_tagsHasBeenSet = true;
335 m_tags = std::forward<TagsT>(value);
336 }
337 template <typename TagsT = Aws::Vector<Tag>>
338 DeleteLagResult& WithTags(TagsT&& value) {
339 SetTags(std::forward<TagsT>(value));
340 return *this;
341 }
342 template <typename TagsT = Tag>
343 DeleteLagResult& AddTags(TagsT&& value) {
344 m_tagsHasBeenSet = true;
345 m_tags.emplace_back(std::forward<TagsT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::String& GetProviderName() const { return m_providerName; }
355 template <typename ProviderNameT = Aws::String>
356 void SetProviderName(ProviderNameT&& value) {
357 m_providerNameHasBeenSet = true;
358 m_providerName = std::forward<ProviderNameT>(value);
359 }
360 template <typename ProviderNameT = Aws::String>
361 DeleteLagResult& WithProviderName(ProviderNameT&& value) {
362 SetProviderName(std::forward<ProviderNameT>(value));
363 return *this;
364 }
366
368
371 inline bool GetMacSecCapable() const { return m_macSecCapable; }
372 inline void SetMacSecCapable(bool value) {
373 m_macSecCapableHasBeenSet = true;
374 m_macSecCapable = value;
375 }
376 inline DeleteLagResult& WithMacSecCapable(bool value) {
377 SetMacSecCapable(value);
378 return *this;
379 }
381
383
388 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
389 template <typename EncryptionModeT = Aws::String>
390 void SetEncryptionMode(EncryptionModeT&& value) {
391 m_encryptionModeHasBeenSet = true;
392 m_encryptionMode = std::forward<EncryptionModeT>(value);
393 }
394 template <typename EncryptionModeT = Aws::String>
395 DeleteLagResult& WithEncryptionMode(EncryptionModeT&& value) {
396 SetEncryptionMode(std::forward<EncryptionModeT>(value));
397 return *this;
398 }
400
402
405 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
406 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
407 void SetMacSecKeys(MacSecKeysT&& value) {
408 m_macSecKeysHasBeenSet = true;
409 m_macSecKeys = std::forward<MacSecKeysT>(value);
410 }
411 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
412 DeleteLagResult& WithMacSecKeys(MacSecKeysT&& value) {
413 SetMacSecKeys(std::forward<MacSecKeysT>(value));
414 return *this;
415 }
416 template <typename MacSecKeysT = MacSecKey>
417 DeleteLagResult& AddMacSecKeys(MacSecKeysT&& value) {
418 m_macSecKeysHasBeenSet = true;
419 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
420 return *this;
421 }
423
425
430 inline int GetPrefixPoolSizeIpv4() const { return m_prefixPoolSizeIpv4; }
431 inline void SetPrefixPoolSizeIpv4(int value) {
432 m_prefixPoolSizeIpv4HasBeenSet = true;
433 m_prefixPoolSizeIpv4 = value;
434 }
437 return *this;
438 }
440
442
447 inline int GetPrefixPoolSizeIpv6() const { return m_prefixPoolSizeIpv6; }
448 inline void SetPrefixPoolSizeIpv6(int value) {
449 m_prefixPoolSizeIpv6HasBeenSet = true;
450 m_prefixPoolSizeIpv6 = value;
451 }
454 return *this;
455 }
457
459
464 inline int GetPrefixPoolUnallocatedCountIpv4() const { return m_prefixPoolUnallocatedCountIpv4; }
465 inline void SetPrefixPoolUnallocatedCountIpv4(int value) {
466 m_prefixPoolUnallocatedCountIpv4HasBeenSet = true;
467 m_prefixPoolUnallocatedCountIpv4 = value;
468 }
471 return *this;
472 }
474
476
481 inline int GetPrefixPoolUnallocatedCountIpv6() const { return m_prefixPoolUnallocatedCountIpv6; }
482 inline void SetPrefixPoolUnallocatedCountIpv6(int value) {
483 m_prefixPoolUnallocatedCountIpv6HasBeenSet = true;
484 m_prefixPoolUnallocatedCountIpv6 = value;
485 }
488 return *this;
489 }
491
493
497 inline const RateLimiterStatus& GetRateLimiterStatus() const { return m_rateLimiterStatus; }
498 template <typename RateLimiterStatusT = RateLimiterStatus>
499 void SetRateLimiterStatus(RateLimiterStatusT&& value) {
500 m_rateLimiterStatusHasBeenSet = true;
501 m_rateLimiterStatus = std::forward<RateLimiterStatusT>(value);
502 }
503 template <typename RateLimiterStatusT = RateLimiterStatus>
504 DeleteLagResult& WithRateLimiterStatus(RateLimiterStatusT&& value) {
505 SetRateLimiterStatus(std::forward<RateLimiterStatusT>(value));
506 return *this;
507 }
509
511
514 inline BillingMode GetBillingMode() const { return m_billingMode; }
515 inline void SetBillingMode(BillingMode value) {
516 m_billingModeHasBeenSet = true;
517 m_billingMode = value;
518 }
520 SetBillingMode(value);
521 return *this;
522 }
524
526
527 inline const Aws::String& GetRequestId() const { return m_requestId; }
528 template <typename RequestIdT = Aws::String>
529 void SetRequestId(RequestIdT&& value) {
530 m_requestIdHasBeenSet = true;
531 m_requestId = std::forward<RequestIdT>(value);
532 }
533 template <typename RequestIdT = Aws::String>
534 DeleteLagResult& WithRequestId(RequestIdT&& value) {
535 SetRequestId(std::forward<RequestIdT>(value));
536 return *this;
537 }
539 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
540
541 private:
542 Aws::String m_connectionsBandwidth;
543
544 int m_numberOfConnections{0};
545
546 Aws::String m_lagId;
547
548 Aws::String m_ownerAccount;
549
550 Aws::String m_lagName;
551
552 LagState m_lagState{LagState::NOT_SET};
553
554 Aws::String m_location;
555
556 Aws::String m_region;
557
558 int m_minimumLinks{0};
559
560 Aws::String m_awsDevice;
561
562 Aws::String m_awsDeviceV2;
563
564 Aws::String m_awsLogicalDeviceId;
565
566 Aws::Vector<Connection> m_connections;
567
568 bool m_allowsHostedConnections{false};
569
570 bool m_jumboFrameCapable{false};
571
573
574 Aws::Vector<Tag> m_tags;
575
576 Aws::String m_providerName;
577
578 bool m_macSecCapable{false};
579
580 Aws::String m_encryptionMode;
581
582 Aws::Vector<MacSecKey> m_macSecKeys;
583
584 int m_prefixPoolSizeIpv4{0};
585
586 int m_prefixPoolSizeIpv6{0};
587
588 int m_prefixPoolUnallocatedCountIpv4{0};
589
590 int m_prefixPoolUnallocatedCountIpv6{0};
591
592 RateLimiterStatus m_rateLimiterStatus;
593
594 BillingMode m_billingMode{BillingMode::NOT_SET};
595
596 Aws::String m_requestId;
597 Aws::Http::HttpResponseCode m_HttpResponseCode;
598 bool m_connectionsBandwidthHasBeenSet = false;
599 bool m_numberOfConnectionsHasBeenSet = false;
600 bool m_lagIdHasBeenSet = false;
601 bool m_ownerAccountHasBeenSet = false;
602 bool m_lagNameHasBeenSet = false;
603 bool m_lagStateHasBeenSet = false;
604 bool m_locationHasBeenSet = false;
605 bool m_regionHasBeenSet = false;
606 bool m_minimumLinksHasBeenSet = false;
607 bool m_awsDeviceHasBeenSet = false;
608 bool m_awsDeviceV2HasBeenSet = false;
609 bool m_awsLogicalDeviceIdHasBeenSet = false;
610 bool m_connectionsHasBeenSet = false;
611 bool m_allowsHostedConnectionsHasBeenSet = false;
612 bool m_jumboFrameCapableHasBeenSet = false;
613 bool m_hasLogicalRedundancyHasBeenSet = false;
614 bool m_tagsHasBeenSet = false;
615 bool m_providerNameHasBeenSet = false;
616 bool m_macSecCapableHasBeenSet = false;
617 bool m_encryptionModeHasBeenSet = false;
618 bool m_macSecKeysHasBeenSet = false;
619 bool m_prefixPoolSizeIpv4HasBeenSet = false;
620 bool m_prefixPoolSizeIpv6HasBeenSet = false;
621 bool m_prefixPoolUnallocatedCountIpv4HasBeenSet = false;
622 bool m_prefixPoolUnallocatedCountIpv6HasBeenSet = false;
623 bool m_rateLimiterStatusHasBeenSet = false;
624 bool m_billingModeHasBeenSet = false;
625 bool m_requestIdHasBeenSet = false;
626};
627
628} // namespace Model
629} // namespace DirectConnect
630} // namespace Aws
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
DeleteLagResult & WithLagName(LagNameT &&value)
DeleteLagResult & WithRegion(RegionT &&value)
const Aws::String & GetConnectionsBandwidth() const
DeleteLagResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
DeleteLagResult & WithMacSecCapable(bool value)
const RateLimiterStatus & GetRateLimiterStatus() const
HasLogicalRedundancy GetHasLogicalRedundancy() const
DeleteLagResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
DeleteLagResult & WithRequestId(RequestIdT &&value)
void SetConnectionsBandwidth(ConnectionsBandwidthT &&value)
void SetOwnerAccount(OwnerAccountT &&value)
DeleteLagResult & WithPrefixPoolSizeIpv6(int value)
DeleteLagResult & WithAllowsHostedConnections(bool value)
DeleteLagResult & WithRateLimiterStatus(RateLimiterStatusT &&value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
const Aws::String & GetOwnerAccount() const
DeleteLagResult & WithLagId(LagIdT &&value)
DeleteLagResult & WithOwnerAccount(OwnerAccountT &&value)
const Aws::String & GetEncryptionMode() const
DeleteLagResult & WithPrefixPoolSizeIpv4(int value)
DeleteLagResult & WithConnections(ConnectionsT &&value)
AWS_DIRECTCONNECT_API DeleteLagResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteLagResult & WithMinimumLinks(int value)
const Aws::String & GetProviderName() const
DeleteLagResult & WithBillingMode(BillingMode value)
DeleteLagResult & WithPrefixPoolUnallocatedCountIpv6(int value)
DeleteLagResult & AddConnections(ConnectionsT &&value)
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
DeleteLagResult & AddMacSecKeys(MacSecKeysT &&value)
DeleteLagResult & WithNumberOfConnections(int value)
void SetEncryptionMode(EncryptionModeT &&value)
const Aws::Vector< Tag > & GetTags() const
DeleteLagResult & WithProviderName(ProviderNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DeleteLagResult & AddTags(TagsT &&value)
DeleteLagResult & WithJumboFrameCapable(bool value)
DeleteLagResult & WithEncryptionMode(EncryptionModeT &&value)
AWS_DIRECTCONNECT_API DeleteLagResult()=default
DeleteLagResult & WithPrefixPoolUnallocatedCountIpv4(int value)
DeleteLagResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
DeleteLagResult & WithLocation(LocationT &&value)
const Aws::Vector< Connection > & GetConnections() const
const Aws::String & GetAwsLogicalDeviceId() const
const Aws::String & GetAwsDeviceV2() const
void SetRateLimiterStatus(RateLimiterStatusT &&value)
void SetProviderName(ProviderNameT &&value)
DeleteLagResult & WithConnectionsBandwidth(ConnectionsBandwidthT &&value)
DeleteLagResult & WithAwsDevice(AwsDeviceT &&value)
DeleteLagResult & WithMacSecKeys(MacSecKeysT &&value)
DeleteLagResult & WithTags(TagsT &&value)
DeleteLagResult & WithLagState(LagState value)
AWS_DIRECTCONNECT_API DeleteLagResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue