AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CreateLagResult.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/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DirectConnect {
29namespace Model {
37 public:
38 AWS_DIRECTCONNECT_API CreateLagResult() = default;
41
43
47 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
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 CreateLagResult& 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 void SetNumberOfConnections(int value) {
69 m_numberOfConnectionsHasBeenSet = true;
70 m_numberOfConnections = value;
71 }
74 return *this;
75 }
77
79
82 inline const Aws::String& GetLagId() const { return m_lagId; }
83 template <typename LagIdT = Aws::String>
84 void SetLagId(LagIdT&& value) {
85 m_lagIdHasBeenSet = true;
86 m_lagId = std::forward<LagIdT>(value);
87 }
88 template <typename LagIdT = Aws::String>
89 CreateLagResult& WithLagId(LagIdT&& value) {
90 SetLagId(std::forward<LagIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
100 template <typename OwnerAccountT = Aws::String>
101 void SetOwnerAccount(OwnerAccountT&& value) {
102 m_ownerAccountHasBeenSet = true;
103 m_ownerAccount = std::forward<OwnerAccountT>(value);
104 }
105 template <typename OwnerAccountT = Aws::String>
106 CreateLagResult& WithOwnerAccount(OwnerAccountT&& value) {
107 SetOwnerAccount(std::forward<OwnerAccountT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetLagName() const { return m_lagName; }
117 template <typename LagNameT = Aws::String>
118 void SetLagName(LagNameT&& value) {
119 m_lagNameHasBeenSet = true;
120 m_lagName = std::forward<LagNameT>(value);
121 }
122 template <typename LagNameT = Aws::String>
123 CreateLagResult& WithLagName(LagNameT&& value) {
124 SetLagName(std::forward<LagNameT>(value));
125 return *this;
126 }
128
130
142 inline LagState GetLagState() const { return m_lagState; }
143 inline void SetLagState(LagState value) {
144 m_lagStateHasBeenSet = true;
145 m_lagState = value;
146 }
148 SetLagState(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetLocation() const { return m_location; }
158 template <typename LocationT = Aws::String>
159 void SetLocation(LocationT&& value) {
160 m_locationHasBeenSet = true;
161 m_location = std::forward<LocationT>(value);
162 }
163 template <typename LocationT = Aws::String>
164 CreateLagResult& WithLocation(LocationT&& value) {
165 SetLocation(std::forward<LocationT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetRegion() const { return m_region; }
175 template <typename RegionT = Aws::String>
176 void SetRegion(RegionT&& value) {
177 m_regionHasBeenSet = true;
178 m_region = std::forward<RegionT>(value);
179 }
180 template <typename RegionT = Aws::String>
181 CreateLagResult& WithRegion(RegionT&& value) {
182 SetRegion(std::forward<RegionT>(value));
183 return *this;
184 }
186
188
192 inline int GetMinimumLinks() const { return m_minimumLinks; }
193 inline void SetMinimumLinks(int value) {
194 m_minimumLinksHasBeenSet = true;
195 m_minimumLinks = value;
196 }
198 SetMinimumLinks(value);
199 return *this;
200 }
202
204
207 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
208 template <typename AwsDeviceT = Aws::String>
209 void SetAwsDevice(AwsDeviceT&& value) {
210 m_awsDeviceHasBeenSet = true;
211 m_awsDevice = std::forward<AwsDeviceT>(value);
212 }
213 template <typename AwsDeviceT = Aws::String>
214 CreateLagResult& WithAwsDevice(AwsDeviceT&& value) {
215 SetAwsDevice(std::forward<AwsDeviceT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
225 template <typename AwsDeviceV2T = Aws::String>
226 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
227 m_awsDeviceV2HasBeenSet = true;
228 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
229 }
230 template <typename AwsDeviceV2T = Aws::String>
231 CreateLagResult& WithAwsDeviceV2(AwsDeviceV2T&& value) {
232 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
233 return *this;
234 }
236
238
243 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
244 template <typename AwsLogicalDeviceIdT = Aws::String>
245 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
246 m_awsLogicalDeviceIdHasBeenSet = true;
247 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
248 }
249 template <typename AwsLogicalDeviceIdT = Aws::String>
250 CreateLagResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
251 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<Connection>& GetConnections() const { return m_connections; }
261 template <typename ConnectionsT = Aws::Vector<Connection>>
262 void SetConnections(ConnectionsT&& value) {
263 m_connectionsHasBeenSet = true;
264 m_connections = std::forward<ConnectionsT>(value);
265 }
266 template <typename ConnectionsT = Aws::Vector<Connection>>
267 CreateLagResult& WithConnections(ConnectionsT&& value) {
268 SetConnections(std::forward<ConnectionsT>(value));
269 return *this;
270 }
271 template <typename ConnectionsT = Connection>
272 CreateLagResult& AddConnections(ConnectionsT&& value) {
273 m_connectionsHasBeenSet = true;
274 m_connections.emplace_back(std::forward<ConnectionsT>(value));
275 return *this;
276 }
278
280
283 inline bool GetAllowsHostedConnections() const { return m_allowsHostedConnections; }
284 inline void SetAllowsHostedConnections(bool value) {
285 m_allowsHostedConnectionsHasBeenSet = true;
286 m_allowsHostedConnections = value;
287 }
290 return *this;
291 }
293
295
298 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
299 inline void SetJumboFrameCapable(bool value) {
300 m_jumboFrameCapableHasBeenSet = true;
301 m_jumboFrameCapable = value;
302 }
305 return *this;
306 }
308
310
314 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
316 m_hasLogicalRedundancyHasBeenSet = true;
317 m_hasLogicalRedundancy = value;
318 }
321 return *this;
322 }
324
326
329 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
330 template <typename TagsT = Aws::Vector<Tag>>
331 void SetTags(TagsT&& value) {
332 m_tagsHasBeenSet = true;
333 m_tags = std::forward<TagsT>(value);
334 }
335 template <typename TagsT = Aws::Vector<Tag>>
336 CreateLagResult& WithTags(TagsT&& value) {
337 SetTags(std::forward<TagsT>(value));
338 return *this;
339 }
340 template <typename TagsT = Tag>
341 CreateLagResult& AddTags(TagsT&& value) {
342 m_tagsHasBeenSet = true;
343 m_tags.emplace_back(std::forward<TagsT>(value));
344 return *this;
345 }
347
349
352 inline const Aws::String& GetProviderName() const { return m_providerName; }
353 template <typename ProviderNameT = Aws::String>
354 void SetProviderName(ProviderNameT&& value) {
355 m_providerNameHasBeenSet = true;
356 m_providerName = std::forward<ProviderNameT>(value);
357 }
358 template <typename ProviderNameT = Aws::String>
359 CreateLagResult& WithProviderName(ProviderNameT&& value) {
360 SetProviderName(std::forward<ProviderNameT>(value));
361 return *this;
362 }
364
366
369 inline bool GetMacSecCapable() const { return m_macSecCapable; }
370 inline void SetMacSecCapable(bool value) {
371 m_macSecCapableHasBeenSet = true;
372 m_macSecCapable = value;
373 }
374 inline CreateLagResult& WithMacSecCapable(bool value) {
375 SetMacSecCapable(value);
376 return *this;
377 }
379
381
386 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
387 template <typename EncryptionModeT = Aws::String>
388 void SetEncryptionMode(EncryptionModeT&& value) {
389 m_encryptionModeHasBeenSet = true;
390 m_encryptionMode = std::forward<EncryptionModeT>(value);
391 }
392 template <typename EncryptionModeT = Aws::String>
393 CreateLagResult& WithEncryptionMode(EncryptionModeT&& value) {
394 SetEncryptionMode(std::forward<EncryptionModeT>(value));
395 return *this;
396 }
398
400
403 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
404 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
405 void SetMacSecKeys(MacSecKeysT&& value) {
406 m_macSecKeysHasBeenSet = true;
407 m_macSecKeys = std::forward<MacSecKeysT>(value);
408 }
409 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
410 CreateLagResult& WithMacSecKeys(MacSecKeysT&& value) {
411 SetMacSecKeys(std::forward<MacSecKeysT>(value));
412 return *this;
413 }
414 template <typename MacSecKeysT = MacSecKey>
415 CreateLagResult& AddMacSecKeys(MacSecKeysT&& value) {
416 m_macSecKeysHasBeenSet = true;
417 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
418 return *this;
419 }
421
423
424 inline const Aws::String& GetRequestId() const { return m_requestId; }
425 template <typename RequestIdT = Aws::String>
426 void SetRequestId(RequestIdT&& value) {
427 m_requestIdHasBeenSet = true;
428 m_requestId = std::forward<RequestIdT>(value);
429 }
430 template <typename RequestIdT = Aws::String>
431 CreateLagResult& WithRequestId(RequestIdT&& value) {
432 SetRequestId(std::forward<RequestIdT>(value));
433 return *this;
434 }
436 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
437
438 private:
439 Aws::String m_connectionsBandwidth;
440
441 int m_numberOfConnections{0};
442
443 Aws::String m_lagId;
444
445 Aws::String m_ownerAccount;
446
447 Aws::String m_lagName;
448
449 LagState m_lagState{LagState::NOT_SET};
450
451 Aws::String m_location;
452
453 Aws::String m_region;
454
455 int m_minimumLinks{0};
456
457 Aws::String m_awsDevice;
458
459 Aws::String m_awsDeviceV2;
460
461 Aws::String m_awsLogicalDeviceId;
462
463 Aws::Vector<Connection> m_connections;
464
465 bool m_allowsHostedConnections{false};
466
467 bool m_jumboFrameCapable{false};
468
470
471 Aws::Vector<Tag> m_tags;
472
473 Aws::String m_providerName;
474
475 bool m_macSecCapable{false};
476
477 Aws::String m_encryptionMode;
478
479 Aws::Vector<MacSecKey> m_macSecKeys;
480
481 Aws::String m_requestId;
482 Aws::Http::HttpResponseCode m_HttpResponseCode;
483 bool m_connectionsBandwidthHasBeenSet = false;
484 bool m_numberOfConnectionsHasBeenSet = false;
485 bool m_lagIdHasBeenSet = false;
486 bool m_ownerAccountHasBeenSet = false;
487 bool m_lagNameHasBeenSet = false;
488 bool m_lagStateHasBeenSet = false;
489 bool m_locationHasBeenSet = false;
490 bool m_regionHasBeenSet = false;
491 bool m_minimumLinksHasBeenSet = false;
492 bool m_awsDeviceHasBeenSet = false;
493 bool m_awsDeviceV2HasBeenSet = false;
494 bool m_awsLogicalDeviceIdHasBeenSet = false;
495 bool m_connectionsHasBeenSet = false;
496 bool m_allowsHostedConnectionsHasBeenSet = false;
497 bool m_jumboFrameCapableHasBeenSet = false;
498 bool m_hasLogicalRedundancyHasBeenSet = false;
499 bool m_tagsHasBeenSet = false;
500 bool m_providerNameHasBeenSet = false;
501 bool m_macSecCapableHasBeenSet = false;
502 bool m_encryptionModeHasBeenSet = false;
503 bool m_macSecKeysHasBeenSet = false;
504 bool m_requestIdHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace DirectConnect
509} // namespace Aws
const Aws::String & GetConnectionsBandwidth() const
CreateLagResult & WithMacSecKeys(MacSecKeysT &&value)
const Aws::Vector< Connection > & GetConnections() const
CreateLagResult & AddConnections(ConnectionsT &&value)
CreateLagResult & AddMacSecKeys(MacSecKeysT &&value)
void SetProviderName(ProviderNameT &&value)
const Aws::String & GetEncryptionMode() const
CreateLagResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateLagResult & WithAllowsHostedConnections(bool value)
CreateLagResult & WithProviderName(ProviderNameT &&value)
const Aws::String & GetProviderName() const
CreateLagResult & WithOwnerAccount(OwnerAccountT &&value)
const Aws::String & GetOwnerAccount() const
void SetEncryptionMode(EncryptionModeT &&value)
CreateLagResult & WithLagId(LagIdT &&value)
CreateLagResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AWS_DIRECTCONNECT_API CreateLagResult()=default
CreateLagResult & AddTags(TagsT &&value)
CreateLagResult & WithTags(TagsT &&value)
CreateLagResult & WithLagState(LagState value)
void SetConnectionsBandwidth(ConnectionsBandwidthT &&value)
CreateLagResult & WithLagName(LagNameT &&value)
CreateLagResult & WithMacSecCapable(bool value)
CreateLagResult & WithRequestId(RequestIdT &&value)
CreateLagResult & WithConnections(ConnectionsT &&value)
const Aws::String & GetAwsLogicalDeviceId() const
const Aws::String & GetAwsDeviceV2() const
HasLogicalRedundancy GetHasLogicalRedundancy() const
CreateLagResult & WithMinimumLinks(int value)
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
CreateLagResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
CreateLagResult & WithJumboFrameCapable(bool value)
AWS_DIRECTCONNECT_API CreateLagResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLagResult & WithConnectionsBandwidth(ConnectionsBandwidthT &&value)
void SetOwnerAccount(OwnerAccountT &&value)
CreateLagResult & WithRegion(RegionT &&value)
AWS_DIRECTCONNECT_API CreateLagResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLagResult & WithNumberOfConnections(int value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
CreateLagResult & WithEncryptionMode(EncryptionModeT &&value)
CreateLagResult & WithAwsDevice(AwsDeviceT &&value)
CreateLagResult & WithLocation(LocationT &&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