AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLagResult.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/LagState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/HasLogicalRedundancy.h>
12#include <aws/directconnect/model/Connection.h>
13#include <aws/directconnect/model/Tag.h>
14#include <aws/directconnect/model/MacSecKey.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DirectConnect
30{
31namespace Model
32{
40 {
41 public:
42 AWS_DIRECTCONNECT_API CreateLagResult();
45
46
48
52 inline const Aws::String& GetConnectionsBandwidth() const{ return m_connectionsBandwidth; }
53 inline void SetConnectionsBandwidth(const Aws::String& value) { m_connectionsBandwidth = value; }
54 inline void SetConnectionsBandwidth(Aws::String&& value) { m_connectionsBandwidth = std::move(value); }
55 inline void SetConnectionsBandwidth(const char* value) { m_connectionsBandwidth.assign(value); }
56 inline CreateLagResult& WithConnectionsBandwidth(const Aws::String& value) { SetConnectionsBandwidth(value); return *this;}
57 inline CreateLagResult& WithConnectionsBandwidth(Aws::String&& value) { SetConnectionsBandwidth(std::move(value)); return *this;}
58 inline CreateLagResult& WithConnectionsBandwidth(const char* value) { SetConnectionsBandwidth(value); return *this;}
60
62
68 inline int GetNumberOfConnections() const{ return m_numberOfConnections; }
69 inline void SetNumberOfConnections(int value) { m_numberOfConnections = value; }
70 inline CreateLagResult& WithNumberOfConnections(int value) { SetNumberOfConnections(value); return *this;}
72
74
77 inline const Aws::String& GetLagId() const{ return m_lagId; }
78 inline void SetLagId(const Aws::String& value) { m_lagId = value; }
79 inline void SetLagId(Aws::String&& value) { m_lagId = std::move(value); }
80 inline void SetLagId(const char* value) { m_lagId.assign(value); }
81 inline CreateLagResult& WithLagId(const Aws::String& value) { SetLagId(value); return *this;}
82 inline CreateLagResult& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;}
83 inline CreateLagResult& WithLagId(const char* value) { SetLagId(value); return *this;}
85
87
90 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
91 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccount = value; }
92 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccount = std::move(value); }
93 inline void SetOwnerAccount(const char* value) { m_ownerAccount.assign(value); }
94 inline CreateLagResult& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
95 inline CreateLagResult& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
96 inline CreateLagResult& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
98
100
103 inline const Aws::String& GetLagName() const{ return m_lagName; }
104 inline void SetLagName(const Aws::String& value) { m_lagName = value; }
105 inline void SetLagName(Aws::String&& value) { m_lagName = std::move(value); }
106 inline void SetLagName(const char* value) { m_lagName.assign(value); }
107 inline CreateLagResult& WithLagName(const Aws::String& value) { SetLagName(value); return *this;}
108 inline CreateLagResult& WithLagName(Aws::String&& value) { SetLagName(std::move(value)); return *this;}
109 inline CreateLagResult& WithLagName(const char* value) { SetLagName(value); return *this;}
111
113
125 inline const LagState& GetLagState() const{ return m_lagState; }
126 inline void SetLagState(const LagState& value) { m_lagState = value; }
127 inline void SetLagState(LagState&& value) { m_lagState = std::move(value); }
128 inline CreateLagResult& WithLagState(const LagState& value) { SetLagState(value); return *this;}
129 inline CreateLagResult& WithLagState(LagState&& value) { SetLagState(std::move(value)); return *this;}
131
133
136 inline const Aws::String& GetLocation() const{ return m_location; }
137 inline void SetLocation(const Aws::String& value) { m_location = value; }
138 inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
139 inline void SetLocation(const char* value) { m_location.assign(value); }
140 inline CreateLagResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
141 inline CreateLagResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
142 inline CreateLagResult& WithLocation(const char* value) { SetLocation(value); return *this;}
144
146
149 inline const Aws::String& GetRegion() const{ return m_region; }
150 inline void SetRegion(const Aws::String& value) { m_region = value; }
151 inline void SetRegion(Aws::String&& value) { m_region = std::move(value); }
152 inline void SetRegion(const char* value) { m_region.assign(value); }
153 inline CreateLagResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
154 inline CreateLagResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
155 inline CreateLagResult& WithRegion(const char* value) { SetRegion(value); return *this;}
157
159
163 inline int GetMinimumLinks() const{ return m_minimumLinks; }
164 inline void SetMinimumLinks(int value) { m_minimumLinks = value; }
165 inline CreateLagResult& WithMinimumLinks(int value) { SetMinimumLinks(value); return *this;}
167
169
172 inline const Aws::String& GetAwsDevice() const{ return m_awsDevice; }
173 inline void SetAwsDevice(const Aws::String& value) { m_awsDevice = value; }
174 inline void SetAwsDevice(Aws::String&& value) { m_awsDevice = std::move(value); }
175 inline void SetAwsDevice(const char* value) { m_awsDevice.assign(value); }
176 inline CreateLagResult& WithAwsDevice(const Aws::String& value) { SetAwsDevice(value); return *this;}
177 inline CreateLagResult& WithAwsDevice(Aws::String&& value) { SetAwsDevice(std::move(value)); return *this;}
178 inline CreateLagResult& WithAwsDevice(const char* value) { SetAwsDevice(value); return *this;}
180
182
185 inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; }
186 inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2 = value; }
187 inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2 = std::move(value); }
188 inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2.assign(value); }
189 inline CreateLagResult& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;}
190 inline CreateLagResult& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;}
191 inline CreateLagResult& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;}
193
195
200 inline const Aws::String& GetAwsLogicalDeviceId() const{ return m_awsLogicalDeviceId; }
201 inline void SetAwsLogicalDeviceId(const Aws::String& value) { m_awsLogicalDeviceId = value; }
202 inline void SetAwsLogicalDeviceId(Aws::String&& value) { m_awsLogicalDeviceId = std::move(value); }
203 inline void SetAwsLogicalDeviceId(const char* value) { m_awsLogicalDeviceId.assign(value); }
204 inline CreateLagResult& WithAwsLogicalDeviceId(const Aws::String& value) { SetAwsLogicalDeviceId(value); return *this;}
205 inline CreateLagResult& WithAwsLogicalDeviceId(Aws::String&& value) { SetAwsLogicalDeviceId(std::move(value)); return *this;}
206 inline CreateLagResult& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(value); return *this;}
208
210
213 inline const Aws::Vector<Connection>& GetConnections() const{ return m_connections; }
214 inline void SetConnections(const Aws::Vector<Connection>& value) { m_connections = value; }
215 inline void SetConnections(Aws::Vector<Connection>&& value) { m_connections = std::move(value); }
216 inline CreateLagResult& WithConnections(const Aws::Vector<Connection>& value) { SetConnections(value); return *this;}
217 inline CreateLagResult& WithConnections(Aws::Vector<Connection>&& value) { SetConnections(std::move(value)); return *this;}
218 inline CreateLagResult& AddConnections(const Connection& value) { m_connections.push_back(value); return *this; }
219 inline CreateLagResult& AddConnections(Connection&& value) { m_connections.push_back(std::move(value)); return *this; }
221
223
226 inline bool GetAllowsHostedConnections() const{ return m_allowsHostedConnections; }
227 inline void SetAllowsHostedConnections(bool value) { m_allowsHostedConnections = value; }
228 inline CreateLagResult& WithAllowsHostedConnections(bool value) { SetAllowsHostedConnections(value); return *this;}
230
232
235 inline bool GetJumboFrameCapable() const{ return m_jumboFrameCapable; }
236 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapable = value; }
237 inline CreateLagResult& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;}
239
241
245 inline const HasLogicalRedundancy& GetHasLogicalRedundancy() const{ return m_hasLogicalRedundancy; }
246 inline void SetHasLogicalRedundancy(const HasLogicalRedundancy& value) { m_hasLogicalRedundancy = value; }
247 inline void SetHasLogicalRedundancy(HasLogicalRedundancy&& value) { m_hasLogicalRedundancy = std::move(value); }
251
253
256 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
257 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
258 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
259 inline CreateLagResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
260 inline CreateLagResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
261 inline CreateLagResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
262 inline CreateLagResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
264
266
269 inline const Aws::String& GetProviderName() const{ return m_providerName; }
270 inline void SetProviderName(const Aws::String& value) { m_providerName = value; }
271 inline void SetProviderName(Aws::String&& value) { m_providerName = std::move(value); }
272 inline void SetProviderName(const char* value) { m_providerName.assign(value); }
273 inline CreateLagResult& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
274 inline CreateLagResult& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
275 inline CreateLagResult& WithProviderName(const char* value) { SetProviderName(value); return *this;}
277
279
282 inline bool GetMacSecCapable() const{ return m_macSecCapable; }
283 inline void SetMacSecCapable(bool value) { m_macSecCapable = value; }
284 inline CreateLagResult& WithMacSecCapable(bool value) { SetMacSecCapable(value); return *this;}
286
288
293 inline const Aws::String& GetEncryptionMode() const{ return m_encryptionMode; }
294 inline void SetEncryptionMode(const Aws::String& value) { m_encryptionMode = value; }
295 inline void SetEncryptionMode(Aws::String&& value) { m_encryptionMode = std::move(value); }
296 inline void SetEncryptionMode(const char* value) { m_encryptionMode.assign(value); }
297 inline CreateLagResult& WithEncryptionMode(const Aws::String& value) { SetEncryptionMode(value); return *this;}
298 inline CreateLagResult& WithEncryptionMode(Aws::String&& value) { SetEncryptionMode(std::move(value)); return *this;}
299 inline CreateLagResult& WithEncryptionMode(const char* value) { SetEncryptionMode(value); return *this;}
301
303
306 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const{ return m_macSecKeys; }
307 inline void SetMacSecKeys(const Aws::Vector<MacSecKey>& value) { m_macSecKeys = value; }
308 inline void SetMacSecKeys(Aws::Vector<MacSecKey>&& value) { m_macSecKeys = std::move(value); }
309 inline CreateLagResult& WithMacSecKeys(const Aws::Vector<MacSecKey>& value) { SetMacSecKeys(value); return *this;}
310 inline CreateLagResult& WithMacSecKeys(Aws::Vector<MacSecKey>&& value) { SetMacSecKeys(std::move(value)); return *this;}
311 inline CreateLagResult& AddMacSecKeys(const MacSecKey& value) { m_macSecKeys.push_back(value); return *this; }
312 inline CreateLagResult& AddMacSecKeys(MacSecKey&& value) { m_macSecKeys.push_back(std::move(value)); return *this; }
314
316
317 inline const Aws::String& GetRequestId() const{ return m_requestId; }
318 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
319 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
320 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
321 inline CreateLagResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
322 inline CreateLagResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
323 inline CreateLagResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
325 private:
326
327 Aws::String m_connectionsBandwidth;
328
329 int m_numberOfConnections;
330
331 Aws::String m_lagId;
332
333 Aws::String m_ownerAccount;
334
335 Aws::String m_lagName;
336
337 LagState m_lagState;
338
339 Aws::String m_location;
340
341 Aws::String m_region;
342
343 int m_minimumLinks;
344
345 Aws::String m_awsDevice;
346
347 Aws::String m_awsDeviceV2;
348
349 Aws::String m_awsLogicalDeviceId;
350
351 Aws::Vector<Connection> m_connections;
352
353 bool m_allowsHostedConnections;
354
355 bool m_jumboFrameCapable;
356
357 HasLogicalRedundancy m_hasLogicalRedundancy;
358
359 Aws::Vector<Tag> m_tags;
360
361 Aws::String m_providerName;
362
363 bool m_macSecCapable;
364
365 Aws::String m_encryptionMode;
366
367 Aws::Vector<MacSecKey> m_macSecKeys;
368
369 Aws::String m_requestId;
370 };
371
372} // namespace Model
373} // namespace DirectConnect
374} // namespace Aws
void SetConnectionsBandwidth(const Aws::String &value)
CreateLagResult & WithRegion(const char *value)
CreateLagResult & WithHasLogicalRedundancy(const HasLogicalRedundancy &value)
void SetRegion(const Aws::String &value)
CreateLagResult & WithProviderName(const Aws::String &value)
const Aws::String & GetConnectionsBandwidth() const
CreateLagResult & WithRequestId(const Aws::String &value)
CreateLagResult & WithLagName(Aws::String &&value)
const Aws::Vector< Connection > & GetConnections() const
void SetMacSecKeys(Aws::Vector< MacSecKey > &&value)
CreateLagResult & WithLocation(const Aws::String &value)
const HasLogicalRedundancy & GetHasLogicalRedundancy() const
void SetHasLogicalRedundancy(const HasLogicalRedundancy &value)
CreateLagResult & WithOwnerAccount(const Aws::String &value)
CreateLagResult & WithLagName(const Aws::String &value)
const Aws::String & GetEncryptionMode() const
CreateLagResult & WithLagName(const char *value)
CreateLagResult & WithAwsDeviceV2(const Aws::String &value)
CreateLagResult & WithMacSecKeys(const Aws::Vector< MacSecKey > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateLagResult & WithConnections(const Aws::Vector< Connection > &value)
CreateLagResult & AddTags(Tag &&value)
CreateLagResult & WithAllowsHostedConnections(bool value)
CreateLagResult & AddMacSecKeys(const MacSecKey &value)
CreateLagResult & WithLagId(const char *value)
const Aws::String & GetProviderName() const
CreateLagResult & WithAwsLogicalDeviceId(const Aws::String &value)
CreateLagResult & WithHasLogicalRedundancy(HasLogicalRedundancy &&value)
CreateLagResult & WithConnections(Aws::Vector< Connection > &&value)
const Aws::String & GetOwnerAccount() const
CreateLagResult & AddTags(const Tag &value)
CreateLagResult & WithConnectionsBandwidth(const char *value)
void SetProviderName(const Aws::String &value)
CreateLagResult & WithLocation(const char *value)
CreateLagResult & WithLagId(const Aws::String &value)
CreateLagResult & WithAwsDevice(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateLagResult & WithAwsDeviceV2(const char *value)
void SetOwnerAccount(const Aws::String &value)
void SetAwsLogicalDeviceId(const Aws::String &value)
CreateLagResult & AddMacSecKeys(MacSecKey &&value)
void SetConnections(Aws::Vector< Connection > &&value)
CreateLagResult & WithEncryptionMode(Aws::String &&value)
CreateLagResult & WithMacSecCapable(bool value)
CreateLagResult & WithAwsDevice(const char *value)
CreateLagResult & WithAwsDevice(const Aws::String &value)
void SetAwsDevice(const Aws::String &value)
CreateLagResult & WithAwsLogicalDeviceId(const char *value)
CreateLagResult & WithLagState(LagState &&value)
const Aws::String & GetAwsLogicalDeviceId() const
CreateLagResult & WithRequestId(const char *value)
void SetConnectionsBandwidth(const char *value)
void SetMacSecKeys(const Aws::Vector< MacSecKey > &value)
void SetLagId(const Aws::String &value)
CreateLagResult & WithAwsDeviceV2(Aws::String &&value)
const Aws::String & GetAwsDeviceV2() const
void SetConnectionsBandwidth(Aws::String &&value)
void SetConnections(const Aws::Vector< Connection > &value)
CreateLagResult & WithRegion(Aws::String &&value)
CreateLagResult & WithMinimumLinks(int value)
CreateLagResult & AddConnections(const Connection &value)
CreateLagResult & WithJumboFrameCapable(bool value)
CreateLagResult & WithLagState(const LagState &value)
CreateLagResult & WithTags(const Aws::Vector< Tag > &value)
CreateLagResult & WithMacSecKeys(Aws::Vector< MacSecKey > &&value)
AWS_DIRECTCONNECT_API CreateLagResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAwsDeviceV2(const Aws::String &value)
void SetEncryptionMode(const Aws::String &value)
CreateLagResult & WithLocation(Aws::String &&value)
void SetLagName(const Aws::String &value)
AWS_DIRECTCONNECT_API CreateLagResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLagResult & WithEncryptionMode(const char *value)
CreateLagResult & WithConnectionsBandwidth(const Aws::String &value)
void SetAwsLogicalDeviceId(Aws::String &&value)
CreateLagResult & WithOwnerAccount(Aws::String &&value)
CreateLagResult & WithRequestId(Aws::String &&value)
CreateLagResult & WithNumberOfConnections(int value)
const Aws::Vector< Tag > & GetTags() const
CreateLagResult & WithOwnerAccount(const char *value)
CreateLagResult & WithLagId(Aws::String &&value)
CreateLagResult & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
void SetRequestId(const Aws::String &value)
void SetLocation(const Aws::String &value)
CreateLagResult & AddConnections(Connection &&value)
CreateLagResult & WithConnectionsBandwidth(Aws::String &&value)
CreateLagResult & WithProviderName(Aws::String &&value)
CreateLagResult & WithProviderName(const char *value)
void SetHasLogicalRedundancy(HasLogicalRedundancy &&value)
CreateLagResult & WithAwsLogicalDeviceId(Aws::String &&value)
CreateLagResult & WithRegion(const Aws::String &value)
CreateLagResult & WithEncryptionMode(const Aws::String &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