AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
AllocateHostedConnectionResult.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 AllocateHostedConnectionResult() = 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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; }
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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
243 template<typename TagsT = Tag>
244 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& 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 AllocateHostedConnectionResult& WithMacSecKeys(MacSecKeysT&& value) { SetMacSecKeys(std::forward<MacSecKeysT>(value)); return *this;}
302 template<typename MacSecKeysT = MacSecKey>
303 AllocateHostedConnectionResult& AddMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value)); return *this; }
305
307
311 inline bool GetPartnerInterconnectMacSecCapable() const { return m_partnerInterconnectMacSecCapable; }
312 inline void SetPartnerInterconnectMacSecCapable(bool value) { m_partnerInterconnectMacSecCapableHasBeenSet = true; m_partnerInterconnectMacSecCapable = value; }
315
317
318 inline const Aws::String& GetRequestId() const { return m_requestId; }
319 template<typename RequestIdT = Aws::String>
320 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
321 template<typename RequestIdT = Aws::String>
322 AllocateHostedConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
324 private:
325
326 Aws::String m_ownerAccount;
327 bool m_ownerAccountHasBeenSet = false;
328
329 Aws::String m_connectionId;
330 bool m_connectionIdHasBeenSet = false;
331
332 Aws::String m_connectionName;
333 bool m_connectionNameHasBeenSet = false;
334
335 ConnectionState m_connectionState{ConnectionState::NOT_SET};
336 bool m_connectionStateHasBeenSet = false;
337
338 Aws::String m_region;
339 bool m_regionHasBeenSet = false;
340
341 Aws::String m_location;
342 bool m_locationHasBeenSet = false;
343
344 Aws::String m_bandwidth;
345 bool m_bandwidthHasBeenSet = false;
346
347 int m_vlan{0};
348 bool m_vlanHasBeenSet = false;
349
350 Aws::String m_partnerName;
351 bool m_partnerNameHasBeenSet = false;
352
353 Aws::Utils::DateTime m_loaIssueTime{};
354 bool m_loaIssueTimeHasBeenSet = false;
355
356 Aws::String m_lagId;
357 bool m_lagIdHasBeenSet = false;
358
359 Aws::String m_awsDevice;
360 bool m_awsDeviceHasBeenSet = false;
361
362 bool m_jumboFrameCapable{false};
363 bool m_jumboFrameCapableHasBeenSet = false;
364
365 Aws::String m_awsDeviceV2;
366 bool m_awsDeviceV2HasBeenSet = false;
367
368 Aws::String m_awsLogicalDeviceId;
369 bool m_awsLogicalDeviceIdHasBeenSet = false;
370
372 bool m_hasLogicalRedundancyHasBeenSet = false;
373
374 Aws::Vector<Tag> m_tags;
375 bool m_tagsHasBeenSet = false;
376
377 Aws::String m_providerName;
378 bool m_providerNameHasBeenSet = false;
379
380 bool m_macSecCapable{false};
381 bool m_macSecCapableHasBeenSet = false;
382
383 Aws::String m_portEncryptionStatus;
384 bool m_portEncryptionStatusHasBeenSet = false;
385
386 Aws::String m_encryptionMode;
387 bool m_encryptionModeHasBeenSet = false;
388
389 Aws::Vector<MacSecKey> m_macSecKeys;
390 bool m_macSecKeysHasBeenSet = false;
391
392 bool m_partnerInterconnectMacSecCapable{false};
393 bool m_partnerInterconnectMacSecCapableHasBeenSet = false;
394
395 Aws::String m_requestId;
396 bool m_requestIdHasBeenSet = false;
397 };
398
399} // namespace Model
400} // namespace DirectConnect
401} // namespace Aws
AllocateHostedConnectionResult & WithOwnerAccount(OwnerAccountT &&value)
AllocateHostedConnectionResult & WithPartnerName(PartnerNameT &&value)
AllocateHostedConnectionResult & WithBandwidth(BandwidthT &&value)
AllocateHostedConnectionResult & WithConnectionId(ConnectionIdT &&value)
AllocateHostedConnectionResult & WithEncryptionMode(EncryptionModeT &&value)
AllocateHostedConnectionResult & WithConnectionName(ConnectionNameT &&value)
AllocateHostedConnectionResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
AllocateHostedConnectionResult & WithRegion(RegionT &&value)
AllocateHostedConnectionResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocateHostedConnectionResult & WithLoaIssueTime(LoaIssueTimeT &&value)
AllocateHostedConnectionResult & WithAwsDevice(AwsDeviceT &&value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult()=default
AllocateHostedConnectionResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
AllocateHostedConnectionResult & WithConnectionState(ConnectionState value)
AWS_DIRECTCONNECT_API AllocateHostedConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocateHostedConnectionResult & AddMacSecKeys(MacSecKeysT &&value)
AllocateHostedConnectionResult & WithMacSecKeys(MacSecKeysT &&value)
AllocateHostedConnectionResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AllocateHostedConnectionResult & WithRequestId(RequestIdT &&value)
AllocateHostedConnectionResult & WithLocation(LocationT &&value)
AllocateHostedConnectionResult & WithPartnerInterconnectMacSecCapable(bool value)
AllocateHostedConnectionResult & 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