AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConnectionResult.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/ConnectionState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/directconnect/model/HasLogicalRedundancy.h>
12#include <aws/core/utils/memory/stl/AWSVector.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{
39 {
40 public:
41 AWS_DIRECTCONNECT_API CreateConnectionResult() = default;
44
45
47
50 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
51 template<typename OwnerAccountT = Aws::String>
52 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
53 template<typename OwnerAccountT = Aws::String>
54 CreateConnectionResult& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
56
58
61 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
62 template<typename ConnectionIdT = Aws::String>
63 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
64 template<typename ConnectionIdT = Aws::String>
65 CreateConnectionResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
73 template<typename ConnectionNameT = Aws::String>
74 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
75 template<typename ConnectionNameT = Aws::String>
76 CreateConnectionResult& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
78
80
98 inline ConnectionState GetConnectionState() const { return m_connectionState; }
99 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
102
104
107 inline const Aws::String& GetRegion() const { return m_region; }
108 template<typename RegionT = Aws::String>
109 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
110 template<typename RegionT = Aws::String>
111 CreateConnectionResult& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
113
115
118 inline const Aws::String& GetLocation() const { return m_location; }
119 template<typename LocationT = Aws::String>
120 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
121 template<typename LocationT = Aws::String>
122 CreateConnectionResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
124
126
129 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
130 template<typename BandwidthT = Aws::String>
131 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
132 template<typename BandwidthT = Aws::String>
133 CreateConnectionResult& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
135
137
140 inline int GetVlan() const { return m_vlan; }
141 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
142 inline CreateConnectionResult& WithVlan(int value) { SetVlan(value); return *this;}
144
146
150 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
151 template<typename PartnerNameT = Aws::String>
152 void SetPartnerName(PartnerNameT&& value) { m_partnerNameHasBeenSet = true; m_partnerName = std::forward<PartnerNameT>(value); }
153 template<typename PartnerNameT = Aws::String>
154 CreateConnectionResult& WithPartnerName(PartnerNameT&& value) { SetPartnerName(std::forward<PartnerNameT>(value)); return *this;}
156
158
162 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
163 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
164 void SetLoaIssueTime(LoaIssueTimeT&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = std::forward<LoaIssueTimeT>(value); }
165 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
166 CreateConnectionResult& WithLoaIssueTime(LoaIssueTimeT&& value) { SetLoaIssueTime(std::forward<LoaIssueTimeT>(value)); return *this;}
168
170
173 inline const Aws::String& GetLagId() const { return m_lagId; }
174 template<typename LagIdT = Aws::String>
175 void SetLagId(LagIdT&& value) { m_lagIdHasBeenSet = true; m_lagId = std::forward<LagIdT>(value); }
176 template<typename LagIdT = Aws::String>
177 CreateConnectionResult& WithLagId(LagIdT&& value) { SetLagId(std::forward<LagIdT>(value)); return *this;}
179
181
184 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
185 template<typename AwsDeviceT = Aws::String>
186 void SetAwsDevice(AwsDeviceT&& value) { m_awsDeviceHasBeenSet = true; m_awsDevice = std::forward<AwsDeviceT>(value); }
187 template<typename AwsDeviceT = Aws::String>
188 CreateConnectionResult& WithAwsDevice(AwsDeviceT&& value) { SetAwsDevice(std::forward<AwsDeviceT>(value)); return *this;}
190
192
195 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
196 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; }
197 inline CreateConnectionResult& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;}
199
201
204 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
205 template<typename AwsDeviceV2T = Aws::String>
206 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
207 template<typename AwsDeviceV2T = Aws::String>
208 CreateConnectionResult& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
210
212
217 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
218 template<typename AwsLogicalDeviceIdT = Aws::String>
219 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
220 template<typename AwsLogicalDeviceIdT = Aws::String>
221 CreateConnectionResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
223
225
229 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
230 inline void SetHasLogicalRedundancy(HasLogicalRedundancy value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = value; }
233
235
238 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
239 template<typename TagsT = Aws::Vector<Tag>>
240 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
241 template<typename TagsT = Aws::Vector<Tag>>
242 CreateConnectionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
243 template<typename TagsT = Tag>
244 CreateConnectionResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
246
248
251 inline const Aws::String& GetProviderName() const { return m_providerName; }
252 template<typename ProviderNameT = Aws::String>
253 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
254 template<typename ProviderNameT = Aws::String>
255 CreateConnectionResult& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
257
259
262 inline bool GetMacSecCapable() const { return m_macSecCapable; }
263 inline void SetMacSecCapable(bool value) { m_macSecCapableHasBeenSet = true; m_macSecCapable = value; }
264 inline CreateConnectionResult& WithMacSecCapable(bool value) { SetMacSecCapable(value); return *this;}
266
268
273 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
274 template<typename PortEncryptionStatusT = Aws::String>
275 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) { m_portEncryptionStatusHasBeenSet = true; m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value); }
276 template<typename PortEncryptionStatusT = Aws::String>
277 CreateConnectionResult& WithPortEncryptionStatus(PortEncryptionStatusT&& value) { SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value)); return *this;}
279
281
286 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
287 template<typename EncryptionModeT = Aws::String>
288 void SetEncryptionMode(EncryptionModeT&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::forward<EncryptionModeT>(value); }
289 template<typename EncryptionModeT = Aws::String>
290 CreateConnectionResult& WithEncryptionMode(EncryptionModeT&& value) { SetEncryptionMode(std::forward<EncryptionModeT>(value)); return *this;}
292
294
297 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
298 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
299 void SetMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys = std::forward<MacSecKeysT>(value); }
300 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
301 CreateConnectionResult& WithMacSecKeys(MacSecKeysT&& value) { SetMacSecKeys(std::forward<MacSecKeysT>(value)); return *this;}
302 template<typename MacSecKeysT = MacSecKey>
303 CreateConnectionResult& AddMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value)); return *this; }
305
307
308 inline const Aws::String& GetRequestId() const { return m_requestId; }
309 template<typename RequestIdT = Aws::String>
310 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
311 template<typename RequestIdT = Aws::String>
312 CreateConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
314 private:
315
316 Aws::String m_ownerAccount;
317 bool m_ownerAccountHasBeenSet = false;
318
319 Aws::String m_connectionId;
320 bool m_connectionIdHasBeenSet = false;
321
322 Aws::String m_connectionName;
323 bool m_connectionNameHasBeenSet = false;
324
325 ConnectionState m_connectionState{ConnectionState::NOT_SET};
326 bool m_connectionStateHasBeenSet = false;
327
328 Aws::String m_region;
329 bool m_regionHasBeenSet = false;
330
331 Aws::String m_location;
332 bool m_locationHasBeenSet = false;
333
334 Aws::String m_bandwidth;
335 bool m_bandwidthHasBeenSet = false;
336
337 int m_vlan{0};
338 bool m_vlanHasBeenSet = false;
339
340 Aws::String m_partnerName;
341 bool m_partnerNameHasBeenSet = false;
342
343 Aws::Utils::DateTime m_loaIssueTime{};
344 bool m_loaIssueTimeHasBeenSet = false;
345
346 Aws::String m_lagId;
347 bool m_lagIdHasBeenSet = false;
348
349 Aws::String m_awsDevice;
350 bool m_awsDeviceHasBeenSet = false;
351
352 bool m_jumboFrameCapable{false};
353 bool m_jumboFrameCapableHasBeenSet = false;
354
355 Aws::String m_awsDeviceV2;
356 bool m_awsDeviceV2HasBeenSet = false;
357
358 Aws::String m_awsLogicalDeviceId;
359 bool m_awsLogicalDeviceIdHasBeenSet = false;
360
362 bool m_hasLogicalRedundancyHasBeenSet = false;
363
364 Aws::Vector<Tag> m_tags;
365 bool m_tagsHasBeenSet = false;
366
367 Aws::String m_providerName;
368 bool m_providerNameHasBeenSet = false;
369
370 bool m_macSecCapable{false};
371 bool m_macSecCapableHasBeenSet = false;
372
373 Aws::String m_portEncryptionStatus;
374 bool m_portEncryptionStatusHasBeenSet = false;
375
376 Aws::String m_encryptionMode;
377 bool m_encryptionModeHasBeenSet = false;
378
379 Aws::Vector<MacSecKey> m_macSecKeys;
380 bool m_macSecKeysHasBeenSet = false;
381
382 Aws::String m_requestId;
383 bool m_requestIdHasBeenSet = false;
384 };
385
386} // namespace Model
387} // namespace DirectConnect
388} // namespace Aws
CreateConnectionResult & WithProviderName(ProviderNameT &&value)
CreateConnectionResult & AddTags(TagsT &&value)
CreateConnectionResult & WithConnectionState(ConnectionState value)
CreateConnectionResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AWS_DIRECTCONNECT_API CreateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DIRECTCONNECT_API CreateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConnectionResult & WithLagId(LagIdT &&value)
CreateConnectionResult & WithLoaIssueTime(LoaIssueTimeT &&value)
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
CreateConnectionResult & AddMacSecKeys(MacSecKeysT &&value)
CreateConnectionResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
const Aws::Utils::DateTime & GetLoaIssueTime() const
CreateConnectionResult & WithConnectionName(ConnectionNameT &&value)
CreateConnectionResult & WithMacSecKeys(MacSecKeysT &&value)
CreateConnectionResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
CreateConnectionResult & WithTags(TagsT &&value)
CreateConnectionResult & WithJumboFrameCapable(bool value)
CreateConnectionResult & WithRequestId(RequestIdT &&value)
CreateConnectionResult & WithOwnerAccount(OwnerAccountT &&value)
CreateConnectionResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
CreateConnectionResult & WithEncryptionMode(EncryptionModeT &&value)
CreateConnectionResult & WithRegion(RegionT &&value)
CreateConnectionResult & WithAwsDevice(AwsDeviceT &&value)
CreateConnectionResult & WithPartnerName(PartnerNameT &&value)
AWS_DIRECTCONNECT_API CreateConnectionResult()=default
CreateConnectionResult & WithBandwidth(BandwidthT &&value)
CreateConnectionResult & WithLocation(LocationT &&value)
CreateConnectionResult & WithConnectionId(ConnectionIdT &&value)
CreateConnectionResult & WithMacSecCapable(bool 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