AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
Interconnect.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/InterconnectState.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{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DirectConnect
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DIRECTCONNECT_API Interconnect() = default;
41 AWS_DIRECTCONNECT_API Interconnect(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DIRECTCONNECT_API Interconnect& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetInterconnectId() const { return m_interconnectId; }
51 inline bool InterconnectIdHasBeenSet() const { return m_interconnectIdHasBeenSet; }
52 template<typename InterconnectIdT = Aws::String>
53 void SetInterconnectId(InterconnectIdT&& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = std::forward<InterconnectIdT>(value); }
54 template<typename InterconnectIdT = Aws::String>
55 Interconnect& WithInterconnectId(InterconnectIdT&& value) { SetInterconnectId(std::forward<InterconnectIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetInterconnectName() const { return m_interconnectName; }
63 inline bool InterconnectNameHasBeenSet() const { return m_interconnectNameHasBeenSet; }
64 template<typename InterconnectNameT = Aws::String>
65 void SetInterconnectName(InterconnectNameT&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = std::forward<InterconnectNameT>(value); }
66 template<typename InterconnectNameT = Aws::String>
67 Interconnect& WithInterconnectName(InterconnectNameT&& value) { SetInterconnectName(std::forward<InterconnectNameT>(value)); return *this;}
69
71
84 inline InterconnectState GetInterconnectState() const { return m_interconnectState; }
85 inline bool InterconnectStateHasBeenSet() const { return m_interconnectStateHasBeenSet; }
86 inline void SetInterconnectState(InterconnectState value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; }
89
91
94 inline const Aws::String& GetRegion() const { return m_region; }
95 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
96 template<typename RegionT = Aws::String>
97 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
98 template<typename RegionT = Aws::String>
99 Interconnect& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
101
103
106 inline const Aws::String& GetLocation() const { return m_location; }
107 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
108 template<typename LocationT = Aws::String>
109 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
110 template<typename LocationT = Aws::String>
111 Interconnect& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
113
115
118 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
119 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
120 template<typename BandwidthT = Aws::String>
121 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
122 template<typename BandwidthT = Aws::String>
123 Interconnect& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
132 inline bool LoaIssueTimeHasBeenSet() const { return m_loaIssueTimeHasBeenSet; }
133 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
134 void SetLoaIssueTime(LoaIssueTimeT&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = std::forward<LoaIssueTimeT>(value); }
135 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
136 Interconnect& WithLoaIssueTime(LoaIssueTimeT&& value) { SetLoaIssueTime(std::forward<LoaIssueTimeT>(value)); return *this;}
138
140
143 inline const Aws::String& GetLagId() const { return m_lagId; }
144 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
145 template<typename LagIdT = Aws::String>
146 void SetLagId(LagIdT&& value) { m_lagIdHasBeenSet = true; m_lagId = std::forward<LagIdT>(value); }
147 template<typename LagIdT = Aws::String>
148 Interconnect& WithLagId(LagIdT&& value) { SetLagId(std::forward<LagIdT>(value)); return *this;}
150
152
155 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
156 inline bool AwsDeviceHasBeenSet() const { return m_awsDeviceHasBeenSet; }
157 template<typename AwsDeviceT = Aws::String>
158 void SetAwsDevice(AwsDeviceT&& value) { m_awsDeviceHasBeenSet = true; m_awsDevice = std::forward<AwsDeviceT>(value); }
159 template<typename AwsDeviceT = Aws::String>
160 Interconnect& WithAwsDevice(AwsDeviceT&& value) { SetAwsDevice(std::forward<AwsDeviceT>(value)); return *this;}
162
164
167 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
168 inline bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; }
169 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; }
170 inline Interconnect& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;}
172
174
177 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
178 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
179 template<typename AwsDeviceV2T = Aws::String>
180 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
181 template<typename AwsDeviceV2T = Aws::String>
182 Interconnect& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
184
186
191 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
192 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
193 template<typename AwsLogicalDeviceIdT = Aws::String>
194 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
195 template<typename AwsLogicalDeviceIdT = Aws::String>
196 Interconnect& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
198
200
204 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
205 inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; }
206 inline void SetHasLogicalRedundancy(HasLogicalRedundancy value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = value; }
209
211
214 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template<typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
218 template<typename TagsT = Aws::Vector<Tag>>
219 Interconnect& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
220 template<typename TagsT = Tag>
221 Interconnect& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
223
225
228 inline const Aws::String& GetProviderName() const { return m_providerName; }
229 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
230 template<typename ProviderNameT = Aws::String>
231 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
232 template<typename ProviderNameT = Aws::String>
233 Interconnect& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
235
237
240 inline bool GetMacSecCapable() const { return m_macSecCapable; }
241 inline bool MacSecCapableHasBeenSet() const { return m_macSecCapableHasBeenSet; }
242 inline void SetMacSecCapable(bool value) { m_macSecCapableHasBeenSet = true; m_macSecCapable = value; }
243 inline Interconnect& WithMacSecCapable(bool value) { SetMacSecCapable(value); return *this;}
245
247
252 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
253 inline bool PortEncryptionStatusHasBeenSet() const { return m_portEncryptionStatusHasBeenSet; }
254 template<typename PortEncryptionStatusT = Aws::String>
255 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) { m_portEncryptionStatusHasBeenSet = true; m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value); }
256 template<typename PortEncryptionStatusT = Aws::String>
257 Interconnect& WithPortEncryptionStatus(PortEncryptionStatusT&& value) { SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value)); return *this;}
259
261
266 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
267 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
268 template<typename EncryptionModeT = Aws::String>
269 void SetEncryptionMode(EncryptionModeT&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::forward<EncryptionModeT>(value); }
270 template<typename EncryptionModeT = Aws::String>
271 Interconnect& WithEncryptionMode(EncryptionModeT&& value) { SetEncryptionMode(std::forward<EncryptionModeT>(value)); return *this;}
273
275
278 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
279 inline bool MacSecKeysHasBeenSet() const { return m_macSecKeysHasBeenSet; }
280 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
281 void SetMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys = std::forward<MacSecKeysT>(value); }
282 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
283 Interconnect& WithMacSecKeys(MacSecKeysT&& value) { SetMacSecKeys(std::forward<MacSecKeysT>(value)); return *this;}
284 template<typename MacSecKeysT = MacSecKey>
285 Interconnect& AddMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value)); return *this; }
287
289
290 inline const Aws::String& GetRequestId() const { return m_requestId; }
291 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
292 template<typename RequestIdT = Aws::String>
293 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
294 template<typename RequestIdT = Aws::String>
295 Interconnect& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
297 private:
298
299 Aws::String m_interconnectId;
300 bool m_interconnectIdHasBeenSet = false;
301
302 Aws::String m_interconnectName;
303 bool m_interconnectNameHasBeenSet = false;
304
306 bool m_interconnectStateHasBeenSet = false;
307
308 Aws::String m_region;
309 bool m_regionHasBeenSet = false;
310
311 Aws::String m_location;
312 bool m_locationHasBeenSet = false;
313
314 Aws::String m_bandwidth;
315 bool m_bandwidthHasBeenSet = false;
316
317 Aws::Utils::DateTime m_loaIssueTime{};
318 bool m_loaIssueTimeHasBeenSet = false;
319
320 Aws::String m_lagId;
321 bool m_lagIdHasBeenSet = false;
322
323 Aws::String m_awsDevice;
324 bool m_awsDeviceHasBeenSet = false;
325
326 bool m_jumboFrameCapable{false};
327 bool m_jumboFrameCapableHasBeenSet = false;
328
329 Aws::String m_awsDeviceV2;
330 bool m_awsDeviceV2HasBeenSet = false;
331
332 Aws::String m_awsLogicalDeviceId;
333 bool m_awsLogicalDeviceIdHasBeenSet = false;
334
336 bool m_hasLogicalRedundancyHasBeenSet = false;
337
338 Aws::Vector<Tag> m_tags;
339 bool m_tagsHasBeenSet = false;
340
341 Aws::String m_providerName;
342 bool m_providerNameHasBeenSet = false;
343
344 bool m_macSecCapable{false};
345 bool m_macSecCapableHasBeenSet = false;
346
347 Aws::String m_portEncryptionStatus;
348 bool m_portEncryptionStatusHasBeenSet = false;
349
350 Aws::String m_encryptionMode;
351 bool m_encryptionModeHasBeenSet = false;
352
353 Aws::Vector<MacSecKey> m_macSecKeys;
354 bool m_macSecKeysHasBeenSet = false;
355
356 Aws::String m_requestId;
357 bool m_requestIdHasBeenSet = false;
358 };
359
360} // namespace Model
361} // namespace DirectConnect
362} // namespace Aws
const Aws::String & GetInterconnectName() const
const Aws::String & GetAwsDevice() const
Interconnect & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
void SetInterconnectName(InterconnectNameT &&value)
void SetInterconnectState(InterconnectState value)
void SetLoaIssueTime(LoaIssueTimeT &&value)
void SetRequestId(RequestIdT &&value)
Interconnect & WithRequestId(RequestIdT &&value)
const Aws::String & GetProviderName() const
Interconnect & WithHasLogicalRedundancy(HasLogicalRedundancy value)
Interconnect & WithMacSecKeys(MacSecKeysT &&value)
const Aws::String & GetPortEncryptionStatus() const
Interconnect & WithMacSecCapable(bool value)
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
const Aws::String & GetLocation() const
Interconnect & WithAwsDeviceV2(AwsDeviceV2T &&value)
Interconnect & WithLocation(LocationT &&value)
void SetProviderName(ProviderNameT &&value)
const Aws::String & GetAwsLogicalDeviceId() const
Interconnect & WithRegion(RegionT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Interconnect & WithEncryptionMode(EncryptionModeT &&value)
Interconnect & WithLoaIssueTime(LoaIssueTimeT &&value)
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
const Aws::Vector< Tag > & GetTags() const
Interconnect & WithInterconnectId(InterconnectIdT &&value)
Interconnect & WithLagId(LagIdT &&value)
Interconnect & WithInterconnectState(InterconnectState value)
void SetMacSecKeys(MacSecKeysT &&value)
Interconnect & WithInterconnectName(InterconnectNameT &&value)
void SetBandwidth(BandwidthT &&value)
void SetEncryptionMode(EncryptionModeT &&value)
Interconnect & WithJumboFrameCapable(bool value)
void SetAwsDeviceV2(AwsDeviceV2T &&value)
void SetInterconnectId(InterconnectIdT &&value)
const Aws::String & GetInterconnectId() const
const Aws::String & GetLagId() const
const Aws::String & GetBandwidth() const
const Aws::String & GetRequestId() const
AWS_DIRECTCONNECT_API Interconnect(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
InterconnectState GetInterconnectState() const
Interconnect & AddTags(TagsT &&value)
Interconnect & WithBandwidth(BandwidthT &&value)
Interconnect & WithTags(TagsT &&value)
const Aws::String & GetEncryptionMode() const
Interconnect & WithAwsDevice(AwsDeviceT &&value)
const Aws::String & GetAwsDeviceV2() const
const Aws::String & GetRegion() const
void SetAwsDevice(AwsDeviceT &&value)
HasLogicalRedundancy GetHasLogicalRedundancy() const
Interconnect & AddMacSecKeys(MacSecKeysT &&value)
Interconnect & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AWS_DIRECTCONNECT_API Interconnect & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLoaIssueTime() const
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
AWS_DIRECTCONNECT_API Interconnect()=default
Interconnect & WithProviderName(ProviderNameT &&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