AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Lag.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/Connection.h>
11#include <aws/directconnect/model/HasLogicalRedundancy.h>
12#include <aws/directconnect/model/LagState.h>
13#include <aws/directconnect/model/MacSecKey.h>
14#include <aws/directconnect/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DirectConnect {
26namespace Model {
27
34class Lag {
35 public:
36 AWS_DIRECTCONNECT_API Lag() = default;
37 AWS_DIRECTCONNECT_API Lag(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTCONNECT_API Lag& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
47 inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; }
48 template <typename ConnectionsBandwidthT = Aws::String>
49 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) {
50 m_connectionsBandwidthHasBeenSet = true;
51 m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value);
52 }
53 template <typename ConnectionsBandwidthT = Aws::String>
54 Lag& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) {
55 SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value));
56 return *this;
57 }
59
61
67 inline int GetNumberOfConnections() const { return m_numberOfConnections; }
68 inline bool NumberOfConnectionsHasBeenSet() const { return m_numberOfConnectionsHasBeenSet; }
69 inline void SetNumberOfConnections(int value) {
70 m_numberOfConnectionsHasBeenSet = true;
71 m_numberOfConnections = value;
72 }
73 inline Lag& WithNumberOfConnections(int value) {
75 return *this;
76 }
78
80
83 inline const Aws::String& GetLagId() const { return m_lagId; }
84 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
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 Lag& 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 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
103 template <typename OwnerAccountT = Aws::String>
104 void SetOwnerAccount(OwnerAccountT&& value) {
105 m_ownerAccountHasBeenSet = true;
106 m_ownerAccount = std::forward<OwnerAccountT>(value);
107 }
108 template <typename OwnerAccountT = Aws::String>
109 Lag& WithOwnerAccount(OwnerAccountT&& value) {
110 SetOwnerAccount(std::forward<OwnerAccountT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetLagName() const { return m_lagName; }
120 inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; }
121 template <typename LagNameT = Aws::String>
122 void SetLagName(LagNameT&& value) {
123 m_lagNameHasBeenSet = true;
124 m_lagName = std::forward<LagNameT>(value);
125 }
126 template <typename LagNameT = Aws::String>
127 Lag& WithLagName(LagNameT&& value) {
128 SetLagName(std::forward<LagNameT>(value));
129 return *this;
130 }
132
134
146 inline LagState GetLagState() const { return m_lagState; }
147 inline bool LagStateHasBeenSet() const { return m_lagStateHasBeenSet; }
148 inline void SetLagState(LagState value) {
149 m_lagStateHasBeenSet = true;
150 m_lagState = value;
151 }
152 inline Lag& WithLagState(LagState value) {
153 SetLagState(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetLocation() const { return m_location; }
163 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
164 template <typename LocationT = Aws::String>
165 void SetLocation(LocationT&& value) {
166 m_locationHasBeenSet = true;
167 m_location = std::forward<LocationT>(value);
168 }
169 template <typename LocationT = Aws::String>
170 Lag& WithLocation(LocationT&& value) {
171 SetLocation(std::forward<LocationT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetRegion() const { return m_region; }
181 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
182 template <typename RegionT = Aws::String>
183 void SetRegion(RegionT&& value) {
184 m_regionHasBeenSet = true;
185 m_region = std::forward<RegionT>(value);
186 }
187 template <typename RegionT = Aws::String>
188 Lag& WithRegion(RegionT&& value) {
189 SetRegion(std::forward<RegionT>(value));
190 return *this;
191 }
193
195
199 inline int GetMinimumLinks() const { return m_minimumLinks; }
200 inline bool MinimumLinksHasBeenSet() const { return m_minimumLinksHasBeenSet; }
201 inline void SetMinimumLinks(int value) {
202 m_minimumLinksHasBeenSet = true;
203 m_minimumLinks = value;
204 }
205 inline Lag& WithMinimumLinks(int value) {
206 SetMinimumLinks(value);
207 return *this;
208 }
210
212
215 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
216 inline bool AwsDeviceHasBeenSet() const { return m_awsDeviceHasBeenSet; }
217 template <typename AwsDeviceT = Aws::String>
218 void SetAwsDevice(AwsDeviceT&& value) {
219 m_awsDeviceHasBeenSet = true;
220 m_awsDevice = std::forward<AwsDeviceT>(value);
221 }
222 template <typename AwsDeviceT = Aws::String>
223 Lag& WithAwsDevice(AwsDeviceT&& value) {
224 SetAwsDevice(std::forward<AwsDeviceT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
234 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
235 template <typename AwsDeviceV2T = Aws::String>
236 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
237 m_awsDeviceV2HasBeenSet = true;
238 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
239 }
240 template <typename AwsDeviceV2T = Aws::String>
241 Lag& WithAwsDeviceV2(AwsDeviceV2T&& value) {
242 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
243 return *this;
244 }
246
248
253 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
254 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
255 template <typename AwsLogicalDeviceIdT = Aws::String>
256 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
257 m_awsLogicalDeviceIdHasBeenSet = true;
258 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
259 }
260 template <typename AwsLogicalDeviceIdT = Aws::String>
261 Lag& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
262 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<Connection>& GetConnections() const { return m_connections; }
272 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
273 template <typename ConnectionsT = Aws::Vector<Connection>>
274 void SetConnections(ConnectionsT&& value) {
275 m_connectionsHasBeenSet = true;
276 m_connections = std::forward<ConnectionsT>(value);
277 }
278 template <typename ConnectionsT = Aws::Vector<Connection>>
279 Lag& WithConnections(ConnectionsT&& value) {
280 SetConnections(std::forward<ConnectionsT>(value));
281 return *this;
282 }
283 template <typename ConnectionsT = Connection>
284 Lag& AddConnections(ConnectionsT&& value) {
285 m_connectionsHasBeenSet = true;
286 m_connections.emplace_back(std::forward<ConnectionsT>(value));
287 return *this;
288 }
290
292
295 inline bool GetAllowsHostedConnections() const { return m_allowsHostedConnections; }
296 inline bool AllowsHostedConnectionsHasBeenSet() const { return m_allowsHostedConnectionsHasBeenSet; }
297 inline void SetAllowsHostedConnections(bool value) {
298 m_allowsHostedConnectionsHasBeenSet = true;
299 m_allowsHostedConnections = value;
300 }
301 inline Lag& WithAllowsHostedConnections(bool value) {
303 return *this;
304 }
306
308
311 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
312 inline bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; }
313 inline void SetJumboFrameCapable(bool value) {
314 m_jumboFrameCapableHasBeenSet = true;
315 m_jumboFrameCapable = value;
316 }
317 inline Lag& WithJumboFrameCapable(bool value) {
319 return *this;
320 }
322
324
328 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
329 inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; }
331 m_hasLogicalRedundancyHasBeenSet = true;
332 m_hasLogicalRedundancy = value;
333 }
336 return *this;
337 }
339
341
344 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
345 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
346 template <typename TagsT = Aws::Vector<Tag>>
347 void SetTags(TagsT&& value) {
348 m_tagsHasBeenSet = true;
349 m_tags = std::forward<TagsT>(value);
350 }
351 template <typename TagsT = Aws::Vector<Tag>>
352 Lag& WithTags(TagsT&& value) {
353 SetTags(std::forward<TagsT>(value));
354 return *this;
355 }
356 template <typename TagsT = Tag>
357 Lag& AddTags(TagsT&& value) {
358 m_tagsHasBeenSet = true;
359 m_tags.emplace_back(std::forward<TagsT>(value));
360 return *this;
361 }
363
365
368 inline const Aws::String& GetProviderName() const { return m_providerName; }
369 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
370 template <typename ProviderNameT = Aws::String>
371 void SetProviderName(ProviderNameT&& value) {
372 m_providerNameHasBeenSet = true;
373 m_providerName = std::forward<ProviderNameT>(value);
374 }
375 template <typename ProviderNameT = Aws::String>
376 Lag& WithProviderName(ProviderNameT&& value) {
377 SetProviderName(std::forward<ProviderNameT>(value));
378 return *this;
379 }
381
383
386 inline bool GetMacSecCapable() const { return m_macSecCapable; }
387 inline bool MacSecCapableHasBeenSet() const { return m_macSecCapableHasBeenSet; }
388 inline void SetMacSecCapable(bool value) {
389 m_macSecCapableHasBeenSet = true;
390 m_macSecCapable = value;
391 }
392 inline Lag& WithMacSecCapable(bool value) {
393 SetMacSecCapable(value);
394 return *this;
395 }
397
399
404 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
405 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
406 template <typename EncryptionModeT = Aws::String>
407 void SetEncryptionMode(EncryptionModeT&& value) {
408 m_encryptionModeHasBeenSet = true;
409 m_encryptionMode = std::forward<EncryptionModeT>(value);
410 }
411 template <typename EncryptionModeT = Aws::String>
412 Lag& WithEncryptionMode(EncryptionModeT&& value) {
413 SetEncryptionMode(std::forward<EncryptionModeT>(value));
414 return *this;
415 }
417
419
422 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
423 inline bool MacSecKeysHasBeenSet() const { return m_macSecKeysHasBeenSet; }
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>>
430 Lag& WithMacSecKeys(MacSecKeysT&& value) {
431 SetMacSecKeys(std::forward<MacSecKeysT>(value));
432 return *this;
433 }
434 template <typename MacSecKeysT = MacSecKey>
435 Lag& AddMacSecKeys(MacSecKeysT&& value) {
436 m_macSecKeysHasBeenSet = true;
437 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
438 return *this;
439 }
441
443
444 inline const Aws::String& GetRequestId() const { return m_requestId; }
445 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
446 template <typename RequestIdT = Aws::String>
447 void SetRequestId(RequestIdT&& value) {
448 m_requestIdHasBeenSet = true;
449 m_requestId = std::forward<RequestIdT>(value);
450 }
451 template <typename RequestIdT = Aws::String>
452 Lag& WithRequestId(RequestIdT&& value) {
453 SetRequestId(std::forward<RequestIdT>(value));
454 return *this;
455 }
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 Aws::String m_requestId;
501 bool m_connectionsBandwidthHasBeenSet = false;
502 bool m_numberOfConnectionsHasBeenSet = false;
503 bool m_lagIdHasBeenSet = false;
504 bool m_ownerAccountHasBeenSet = false;
505 bool m_lagNameHasBeenSet = false;
506 bool m_lagStateHasBeenSet = false;
507 bool m_locationHasBeenSet = false;
508 bool m_regionHasBeenSet = false;
509 bool m_minimumLinksHasBeenSet = false;
510 bool m_awsDeviceHasBeenSet = false;
511 bool m_awsDeviceV2HasBeenSet = false;
512 bool m_awsLogicalDeviceIdHasBeenSet = false;
513 bool m_connectionsHasBeenSet = false;
514 bool m_allowsHostedConnectionsHasBeenSet = false;
515 bool m_jumboFrameCapableHasBeenSet = false;
516 bool m_hasLogicalRedundancyHasBeenSet = false;
517 bool m_tagsHasBeenSet = false;
518 bool m_providerNameHasBeenSet = false;
519 bool m_macSecCapableHasBeenSet = false;
520 bool m_encryptionModeHasBeenSet = false;
521 bool m_macSecKeysHasBeenSet = false;
522 bool m_requestIdHasBeenSet = false;
523};
524
525} // namespace Model
526} // namespace DirectConnect
527} // namespace Aws
const Aws::String & GetLagName() const
Definition Lag.h:119
bool GetJumboFrameCapable() const
Definition Lag.h:311
Lag & WithJumboFrameCapable(bool value)
Definition Lag.h:317
Lag & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Lag.h:261
bool ConnectionsHasBeenSet() const
Definition Lag.h:272
Lag & WithLagState(LagState value)
Definition Lag.h:152
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition Lag.h:236
void SetLagState(LagState value)
Definition Lag.h:148
const Aws::Vector< Tag > & GetTags() const
Definition Lag.h:344
bool MacSecCapableHasBeenSet() const
Definition Lag.h:387
const Aws::String & GetLagId() const
Definition Lag.h:83
void SetJumboFrameCapable(bool value)
Definition Lag.h:313
bool LagNameHasBeenSet() const
Definition Lag.h:120
Lag & WithNumberOfConnections(int value)
Definition Lag.h:73
bool AwsDeviceHasBeenSet() const
Definition Lag.h:216
const Aws::String & GetConnectionsBandwidth() const
Definition Lag.h:46
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Lag.h:330
Lag & AddMacSecKeys(MacSecKeysT &&value)
Definition Lag.h:435
void SetMinimumLinks(int value)
Definition Lag.h:201
const Aws::Vector< Connection > & GetConnections() const
Definition Lag.h:271
AWS_DIRECTCONNECT_API Lag()=default
const Aws::String & GetRegion() const
Definition Lag.h:180
const Aws::String & GetAwsLogicalDeviceId() const
Definition Lag.h:253
bool MacSecKeysHasBeenSet() const
Definition Lag.h:423
Lag & WithLocation(LocationT &&value)
Definition Lag.h:170
HasLogicalRedundancy GetHasLogicalRedundancy() const
Definition Lag.h:328
const Aws::String & GetLocation() const
Definition Lag.h:162
void SetMacSecCapable(bool value)
Definition Lag.h:388
bool EncryptionModeHasBeenSet() const
Definition Lag.h:405
Lag & WithRequestId(RequestIdT &&value)
Definition Lag.h:452
bool TagsHasBeenSet() const
Definition Lag.h:345
AWS_DIRECTCONNECT_API Lag & operator=(Aws::Utils::Json::JsonView jsonValue)
Lag & AddConnections(ConnectionsT &&value)
Definition Lag.h:284
Lag & WithMacSecCapable(bool value)
Definition Lag.h:392
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Lag & WithOwnerAccount(OwnerAccountT &&value)
Definition Lag.h:109
Lag & WithMinimumLinks(int value)
Definition Lag.h:205
bool RequestIdHasBeenSet() const
Definition Lag.h:445
bool LagStateHasBeenSet() const
Definition Lag.h:147
Lag & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition Lag.h:241
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
Definition Lag.h:422
void SetAllowsHostedConnections(bool value)
Definition Lag.h:297
const Aws::String & GetRequestId() const
Definition Lag.h:444
bool LocationHasBeenSet() const
Definition Lag.h:163
bool GetMacSecCapable() const
Definition Lag.h:386
bool AwsLogicalDeviceIdHasBeenSet() const
Definition Lag.h:254
const Aws::String & GetOwnerAccount() const
Definition Lag.h:101
Lag & WithEncryptionMode(EncryptionModeT &&value)
Definition Lag.h:412
void SetAwsDevice(AwsDeviceT &&value)
Definition Lag.h:218
const Aws::String & GetAwsDeviceV2() const
Definition Lag.h:233
bool RegionHasBeenSet() const
Definition Lag.h:181
Lag & WithLagId(LagIdT &&value)
Definition Lag.h:91
bool AllowsHostedConnectionsHasBeenSet() const
Definition Lag.h:296
const Aws::String & GetAwsDevice() const
Definition Lag.h:215
void SetNumberOfConnections(int value)
Definition Lag.h:69
Lag & WithLagName(LagNameT &&value)
Definition Lag.h:127
Lag & WithConnections(ConnectionsT &&value)
Definition Lag.h:279
Lag & WithTags(TagsT &&value)
Definition Lag.h:352
LagState GetLagState() const
Definition Lag.h:146
bool LagIdHasBeenSet() const
Definition Lag.h:84
void SetMacSecKeys(MacSecKeysT &&value)
Definition Lag.h:425
void SetConnectionsBandwidth(ConnectionsBandwidthT &&value)
Definition Lag.h:49
void SetLocation(LocationT &&value)
Definition Lag.h:165
bool NumberOfConnectionsHasBeenSet() const
Definition Lag.h:68
void SetTags(TagsT &&value)
Definition Lag.h:347
void SetRequestId(RequestIdT &&value)
Definition Lag.h:447
Lag & WithConnectionsBandwidth(ConnectionsBandwidthT &&value)
Definition Lag.h:54
const Aws::String & GetEncryptionMode() const
Definition Lag.h:404
int GetNumberOfConnections() const
Definition Lag.h:67
Lag & WithProviderName(ProviderNameT &&value)
Definition Lag.h:376
const Aws::String & GetProviderName() const
Definition Lag.h:368
void SetOwnerAccount(OwnerAccountT &&value)
Definition Lag.h:104
Lag & WithAwsDevice(AwsDeviceT &&value)
Definition Lag.h:223
Lag & WithAllowsHostedConnections(bool value)
Definition Lag.h:301
void SetLagId(LagIdT &&value)
Definition Lag.h:86
bool MinimumLinksHasBeenSet() const
Definition Lag.h:200
void SetRegion(RegionT &&value)
Definition Lag.h:183
bool AwsDeviceV2HasBeenSet() const
Definition Lag.h:234
void SetConnections(ConnectionsT &&value)
Definition Lag.h:274
AWS_DIRECTCONNECT_API Lag(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionMode(EncryptionModeT &&value)
Definition Lag.h:407
bool OwnerAccountHasBeenSet() const
Definition Lag.h:102
Lag & WithMacSecKeys(MacSecKeysT &&value)
Definition Lag.h:430
Lag & AddTags(TagsT &&value)
Definition Lag.h:357
Lag & WithRegion(RegionT &&value)
Definition Lag.h:188
int GetMinimumLinks() const
Definition Lag.h:199
bool GetAllowsHostedConnections() const
Definition Lag.h:295
bool ConnectionsBandwidthHasBeenSet() const
Definition Lag.h:47
Lag & WithHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Lag.h:334
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Lag.h:256
bool HasLogicalRedundancyHasBeenSet() const
Definition Lag.h:329
void SetProviderName(ProviderNameT &&value)
Definition Lag.h:371
void SetLagName(LagNameT &&value)
Definition Lag.h:122
bool JumboFrameCapableHasBeenSet() const
Definition Lag.h:312
bool ProviderNameHasBeenSet() const
Definition Lag.h:369
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue