AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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/Connection.h>
12#include <aws/directconnect/model/HasLogicalRedundancy.h>
13#include <aws/directconnect/model/LagState.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 {
38 public:
39 AWS_DIRECTCONNECT_API DeleteLagResult() = default;
42
44
48 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
49 template <typename ConnectionsBandwidthT = Aws::String>
50 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) {
51 m_connectionsBandwidthHasBeenSet = true;
52 m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value);
53 }
54 template <typename ConnectionsBandwidthT = Aws::String>
55 DeleteLagResult& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) {
56 SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value));
57 return *this;
58 }
60
62
68 inline int GetNumberOfConnections() const { return m_numberOfConnections; }
69 inline void SetNumberOfConnections(int value) {
70 m_numberOfConnectionsHasBeenSet = true;
71 m_numberOfConnections = value;
72 }
75 return *this;
76 }
78
80
83 inline const Aws::String& GetLagId() const { return m_lagId; }
84 template <typename LagIdT = Aws::String>
85 void SetLagId(LagIdT&& value) {
86 m_lagIdHasBeenSet = true;
87 m_lagId = std::forward<LagIdT>(value);
88 }
89 template <typename LagIdT = Aws::String>
90 DeleteLagResult& WithLagId(LagIdT&& value) {
91 SetLagId(std::forward<LagIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
101 template <typename OwnerAccountT = Aws::String>
102 void SetOwnerAccount(OwnerAccountT&& value) {
103 m_ownerAccountHasBeenSet = true;
104 m_ownerAccount = std::forward<OwnerAccountT>(value);
105 }
106 template <typename OwnerAccountT = Aws::String>
107 DeleteLagResult& WithOwnerAccount(OwnerAccountT&& value) {
108 SetOwnerAccount(std::forward<OwnerAccountT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetLagName() const { return m_lagName; }
118 template <typename LagNameT = Aws::String>
119 void SetLagName(LagNameT&& value) {
120 m_lagNameHasBeenSet = true;
121 m_lagName = std::forward<LagNameT>(value);
122 }
123 template <typename LagNameT = Aws::String>
124 DeleteLagResult& WithLagName(LagNameT&& value) {
125 SetLagName(std::forward<LagNameT>(value));
126 return *this;
127 }
129
131
143 inline LagState GetLagState() const { return m_lagState; }
144 inline void SetLagState(LagState value) {
145 m_lagStateHasBeenSet = true;
146 m_lagState = value;
147 }
149 SetLagState(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetLocation() const { return m_location; }
159 template <typename LocationT = Aws::String>
160 void SetLocation(LocationT&& value) {
161 m_locationHasBeenSet = true;
162 m_location = std::forward<LocationT>(value);
163 }
164 template <typename LocationT = Aws::String>
165 DeleteLagResult& WithLocation(LocationT&& value) {
166 SetLocation(std::forward<LocationT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetRegion() const { return m_region; }
176 template <typename RegionT = Aws::String>
177 void SetRegion(RegionT&& value) {
178 m_regionHasBeenSet = true;
179 m_region = std::forward<RegionT>(value);
180 }
181 template <typename RegionT = Aws::String>
182 DeleteLagResult& WithRegion(RegionT&& value) {
183 SetRegion(std::forward<RegionT>(value));
184 return *this;
185 }
187
189
193 inline int GetMinimumLinks() const { return m_minimumLinks; }
194 inline void SetMinimumLinks(int value) {
195 m_minimumLinksHasBeenSet = true;
196 m_minimumLinks = value;
197 }
199 SetMinimumLinks(value);
200 return *this;
201 }
203
205
208 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
209 template <typename AwsDeviceT = Aws::String>
210 void SetAwsDevice(AwsDeviceT&& value) {
211 m_awsDeviceHasBeenSet = true;
212 m_awsDevice = std::forward<AwsDeviceT>(value);
213 }
214 template <typename AwsDeviceT = Aws::String>
215 DeleteLagResult& WithAwsDevice(AwsDeviceT&& value) {
216 SetAwsDevice(std::forward<AwsDeviceT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
226 template <typename AwsDeviceV2T = Aws::String>
227 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
228 m_awsDeviceV2HasBeenSet = true;
229 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
230 }
231 template <typename AwsDeviceV2T = Aws::String>
232 DeleteLagResult& WithAwsDeviceV2(AwsDeviceV2T&& value) {
233 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
234 return *this;
235 }
237
239
244 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
245 template <typename AwsLogicalDeviceIdT = Aws::String>
246 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
247 m_awsLogicalDeviceIdHasBeenSet = true;
248 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
249 }
250 template <typename AwsLogicalDeviceIdT = Aws::String>
251 DeleteLagResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
252 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Vector<Connection>& GetConnections() const { return m_connections; }
262 template <typename ConnectionsT = Aws::Vector<Connection>>
263 void SetConnections(ConnectionsT&& value) {
264 m_connectionsHasBeenSet = true;
265 m_connections = std::forward<ConnectionsT>(value);
266 }
267 template <typename ConnectionsT = Aws::Vector<Connection>>
268 DeleteLagResult& WithConnections(ConnectionsT&& value) {
269 SetConnections(std::forward<ConnectionsT>(value));
270 return *this;
271 }
272 template <typename ConnectionsT = Connection>
273 DeleteLagResult& AddConnections(ConnectionsT&& value) {
274 m_connectionsHasBeenSet = true;
275 m_connections.emplace_back(std::forward<ConnectionsT>(value));
276 return *this;
277 }
279
281
284 inline bool GetAllowsHostedConnections() const { return m_allowsHostedConnections; }
285 inline void SetAllowsHostedConnections(bool value) {
286 m_allowsHostedConnectionsHasBeenSet = true;
287 m_allowsHostedConnections = value;
288 }
291 return *this;
292 }
294
296
299 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
300 inline void SetJumboFrameCapable(bool value) {
301 m_jumboFrameCapableHasBeenSet = true;
302 m_jumboFrameCapable = value;
303 }
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>>
337 DeleteLagResult& WithTags(TagsT&& value) {
338 SetTags(std::forward<TagsT>(value));
339 return *this;
340 }
341 template <typename TagsT = Tag>
342 DeleteLagResult& AddTags(TagsT&& value) {
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>
360 DeleteLagResult& WithProviderName(ProviderNameT&& value) {
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 }
375 inline DeleteLagResult& WithMacSecCapable(bool value) {
376 SetMacSecCapable(value);
377 return *this;
378 }
380
382
387 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
388 template <typename EncryptionModeT = Aws::String>
389 void SetEncryptionMode(EncryptionModeT&& value) {
390 m_encryptionModeHasBeenSet = true;
391 m_encryptionMode = std::forward<EncryptionModeT>(value);
392 }
393 template <typename EncryptionModeT = Aws::String>
394 DeleteLagResult& WithEncryptionMode(EncryptionModeT&& value) {
395 SetEncryptionMode(std::forward<EncryptionModeT>(value));
396 return *this;
397 }
399
401
404 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
405 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
406 void SetMacSecKeys(MacSecKeysT&& value) {
407 m_macSecKeysHasBeenSet = true;
408 m_macSecKeys = std::forward<MacSecKeysT>(value);
409 }
410 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
411 DeleteLagResult& WithMacSecKeys(MacSecKeysT&& value) {
412 SetMacSecKeys(std::forward<MacSecKeysT>(value));
413 return *this;
414 }
415 template <typename MacSecKeysT = MacSecKey>
416 DeleteLagResult& AddMacSecKeys(MacSecKeysT&& value) {
417 m_macSecKeysHasBeenSet = true;
418 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
419 return *this;
420 }
422
424
428 inline const RateLimiterStatus& GetRateLimiterStatus() const { return m_rateLimiterStatus; }
429 template <typename RateLimiterStatusT = RateLimiterStatus>
430 void SetRateLimiterStatus(RateLimiterStatusT&& value) {
431 m_rateLimiterStatusHasBeenSet = true;
432 m_rateLimiterStatus = std::forward<RateLimiterStatusT>(value);
433 }
434 template <typename RateLimiterStatusT = RateLimiterStatus>
435 DeleteLagResult& WithRateLimiterStatus(RateLimiterStatusT&& value) {
436 SetRateLimiterStatus(std::forward<RateLimiterStatusT>(value));
437 return *this;
438 }
440
442
443 inline const Aws::String& GetRequestId() const { return m_requestId; }
444 template <typename RequestIdT = Aws::String>
445 void SetRequestId(RequestIdT&& value) {
446 m_requestIdHasBeenSet = true;
447 m_requestId = std::forward<RequestIdT>(value);
448 }
449 template <typename RequestIdT = Aws::String>
450 DeleteLagResult& WithRequestId(RequestIdT&& value) {
451 SetRequestId(std::forward<RequestIdT>(value));
452 return *this;
453 }
455 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
456
457 private:
458 Aws::String m_connectionsBandwidth;
459
460 int m_numberOfConnections{0};
461
462 Aws::String m_lagId;
463
464 Aws::String m_ownerAccount;
465
466 Aws::String m_lagName;
467
468 LagState m_lagState{LagState::NOT_SET};
469
470 Aws::String m_location;
471
472 Aws::String m_region;
473
474 int m_minimumLinks{0};
475
476 Aws::String m_awsDevice;
477
478 Aws::String m_awsDeviceV2;
479
480 Aws::String m_awsLogicalDeviceId;
481
482 Aws::Vector<Connection> m_connections;
483
484 bool m_allowsHostedConnections{false};
485
486 bool m_jumboFrameCapable{false};
487
489
490 Aws::Vector<Tag> m_tags;
491
492 Aws::String m_providerName;
493
494 bool m_macSecCapable{false};
495
496 Aws::String m_encryptionMode;
497
498 Aws::Vector<MacSecKey> m_macSecKeys;
499
500 RateLimiterStatus m_rateLimiterStatus;
501
502 Aws::String m_requestId;
503 Aws::Http::HttpResponseCode m_HttpResponseCode;
504 bool m_connectionsBandwidthHasBeenSet = false;
505 bool m_numberOfConnectionsHasBeenSet = false;
506 bool m_lagIdHasBeenSet = false;
507 bool m_ownerAccountHasBeenSet = false;
508 bool m_lagNameHasBeenSet = false;
509 bool m_lagStateHasBeenSet = false;
510 bool m_locationHasBeenSet = false;
511 bool m_regionHasBeenSet = false;
512 bool m_minimumLinksHasBeenSet = false;
513 bool m_awsDeviceHasBeenSet = false;
514 bool m_awsDeviceV2HasBeenSet = false;
515 bool m_awsLogicalDeviceIdHasBeenSet = false;
516 bool m_connectionsHasBeenSet = false;
517 bool m_allowsHostedConnectionsHasBeenSet = false;
518 bool m_jumboFrameCapableHasBeenSet = false;
519 bool m_hasLogicalRedundancyHasBeenSet = false;
520 bool m_tagsHasBeenSet = false;
521 bool m_providerNameHasBeenSet = false;
522 bool m_macSecCapableHasBeenSet = false;
523 bool m_encryptionModeHasBeenSet = false;
524 bool m_macSecKeysHasBeenSet = false;
525 bool m_rateLimiterStatusHasBeenSet = false;
526 bool m_requestIdHasBeenSet = false;
527};
528
529} // namespace Model
530} // namespace DirectConnect
531} // 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 & 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 & 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 & 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 & 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