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>
27namespace DirectConnect
52 template<
typename OwnerAccountT = Aws::String>
53 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet =
true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
54 template<
typename OwnerAccountT = Aws::String>
64 template<
typename ConnectionIdT = Aws::String>
65 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet =
true; m_connectionId = std::forward<ConnectionIdT>(value); }
66 template<
typename ConnectionIdT = Aws::String>
76 template<
typename ConnectionNameT = Aws::String>
77 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet =
true; m_connectionName = std::forward<ConnectionNameT>(value); }
78 template<
typename ConnectionNameT = Aws::String>
113 template<
typename RegionT = Aws::String>
114 void SetRegion(RegionT&& value) { m_regionHasBeenSet =
true; m_region = std::forward<RegionT>(value); }
115 template<
typename RegionT = Aws::String>
125 template<
typename LocationT = Aws::String>
126 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
127 template<
typename LocationT = Aws::String>
137 template<
typename Bandw
idthT = Aws::String>
138 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet =
true; m_bandwidth = std::forward<BandwidthT>(value); }
139 template<
typename Bandw
idthT = Aws::String>
149 inline void SetVlan(
int value) { m_vlanHasBeenSet =
true; m_vlan = value; }
160 template<
typename PartnerNameT = Aws::String>
161 void SetPartnerName(PartnerNameT&& value) { m_partnerNameHasBeenSet =
true; m_partnerName = std::forward<PartnerNameT>(value); }
162 template<
typename PartnerNameT = Aws::String>
173 template<
typename LoaIssueTimeT = Aws::Utils::DateTime>
174 void SetLoaIssueTime(LoaIssueTimeT&& value) { m_loaIssueTimeHasBeenSet =
true; m_loaIssueTime = std::forward<LoaIssueTimeT>(value); }
175 template<
typename LoaIssueTimeT = Aws::Utils::DateTime>
185 template<
typename LagIdT = Aws::String>
186 void SetLagId(LagIdT&& value) { m_lagIdHasBeenSet =
true; m_lagId = std::forward<LagIdT>(value); }
187 template<
typename LagIdT = Aws::String>
197 template<
typename AwsDeviceT = Aws::String>
198 void SetAwsDevice(AwsDeviceT&& value) { m_awsDeviceHasBeenSet =
true; m_awsDevice = std::forward<AwsDeviceT>(value); }
199 template<
typename AwsDeviceT = Aws::String>
209 inline void SetJumboFrameCapable(
bool value) { m_jumboFrameCapableHasBeenSet =
true; m_jumboFrameCapable = value; }
219 template<
typename AwsDeviceV2T = Aws::String>
220 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet =
true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
221 template<
typename AwsDeviceV2T = Aws::String>
233 template<
typename AwsLogicalDeviceIdT = Aws::String>
234 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet =
true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
235 template<
typename AwsLogicalDeviceIdT = Aws::String>
256 template<
typename TagsT = Aws::Vector<Tag>>
257 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
258 template<
typename TagsT = Aws::Vector<Tag>>
260 template<
typename TagsT = Tag>
261 Connection&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
270 template<
typename Prov
iderNameT = Aws::String>
271 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet =
true; m_providerName = std::forward<ProviderNameT>(value); }
272 template<
typename Prov
iderNameT = Aws::String>
282 inline void SetMacSecCapable(
bool value) { m_macSecCapableHasBeenSet =
true; m_macSecCapable = value; }
294 template<
typename PortEncryptionStatusT = Aws::String>
295 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) { m_portEncryptionStatusHasBeenSet =
true; m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value); }
296 template<
typename PortEncryptionStatusT = Aws::String>
308 template<
typename EncryptionModeT = Aws::String>
309 void SetEncryptionMode(EncryptionModeT&& value) { m_encryptionModeHasBeenSet =
true; m_encryptionMode = std::forward<EncryptionModeT>(value); }
310 template<
typename EncryptionModeT = Aws::String>
320 template<
typename MacSecKeysT = Aws::Vector<MacSecKey>>
321 void SetMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet =
true; m_macSecKeys = std::forward<MacSecKeysT>(value); }
322 template<
typename MacSecKeysT = Aws::Vector<MacSecKey>>
324 template<
typename MacSecKeysT = MacSecKey>
325 Connection&
AddMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet =
true; m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
return *
this; }
332 template<
typename RequestIdT = Aws::String>
333 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
334 template<
typename RequestIdT = Aws::String>
340 bool m_ownerAccountHasBeenSet =
false;
343 bool m_connectionIdHasBeenSet =
false;
346 bool m_connectionNameHasBeenSet =
false;
349 bool m_connectionStateHasBeenSet =
false;
352 bool m_regionHasBeenSet =
false;
355 bool m_locationHasBeenSet =
false;
358 bool m_bandwidthHasBeenSet =
false;
361 bool m_vlanHasBeenSet =
false;
364 bool m_partnerNameHasBeenSet =
false;
367 bool m_loaIssueTimeHasBeenSet =
false;
370 bool m_lagIdHasBeenSet =
false;
373 bool m_awsDeviceHasBeenSet =
false;
375 bool m_jumboFrameCapable{
false};
376 bool m_jumboFrameCapableHasBeenSet =
false;
379 bool m_awsDeviceV2HasBeenSet =
false;
382 bool m_awsLogicalDeviceIdHasBeenSet =
false;
385 bool m_hasLogicalRedundancyHasBeenSet =
false;
388 bool m_tagsHasBeenSet =
false;
391 bool m_providerNameHasBeenSet =
false;
393 bool m_macSecCapable{
false};
394 bool m_macSecCapableHasBeenSet =
false;
397 bool m_portEncryptionStatusHasBeenSet =
false;
400 bool m_encryptionModeHasBeenSet =
false;
403 bool m_macSecKeysHasBeenSet =
false;
406 bool m_requestIdHasBeenSet =
false;
void SetMacSecCapable(bool value)
void SetLocation(LocationT &&value)
bool LocationHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool RegionHasBeenSet() const
Connection & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
bool MacSecCapableHasBeenSet() const
const Aws::String & GetAwsDevice() const
Connection & WithProviderName(ProviderNameT &&value)
bool PartnerNameHasBeenSet() const
void SetProviderName(ProviderNameT &&value)
bool MacSecKeysHasBeenSet() const
bool VlanHasBeenSet() const
const Aws::String & GetEncryptionMode() const
bool HasLogicalRedundancyHasBeenSet() const
Connection & WithVlan(int value)
const Aws::String & GetLagId() const
void SetConnectionName(ConnectionNameT &&value)
bool AwsLogicalDeviceIdHasBeenSet() const
bool AwsDeviceHasBeenSet() const
bool BandwidthHasBeenSet() const
void SetAwsDevice(AwsDeviceT &&value)
void SetTags(TagsT &&value)
Connection & WithAwsDevice(AwsDeviceT &&value)
bool RequestIdHasBeenSet() const
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
bool LoaIssueTimeHasBeenSet() const
const Aws::String & GetPartnerName() const
void SetConnectionState(ConnectionState value)
Connection & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLoaIssueTime() const
Connection & WithLocation(LocationT &&value)
Connection & WithConnectionState(ConnectionState value)
AWS_DIRECTCONNECT_API Connection()=default
bool TagsHasBeenSet() const
void SetPartnerName(PartnerNameT &&value)
bool AwsDeviceV2HasBeenSet() const
void SetConnectionId(ConnectionIdT &&value)
void SetEncryptionMode(EncryptionModeT &&value)
const Aws::String & GetBandwidth() const
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
const Aws::String & GetLocation() const
void SetRequestId(RequestIdT &&value)
bool GetMacSecCapable() const
const Aws::String & GetPortEncryptionStatus() const
bool PortEncryptionStatusHasBeenSet() const
Connection & WithHasLogicalRedundancy(HasLogicalRedundancy value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Connection & WithBandwidth(BandwidthT &&value)
void SetMacSecKeys(MacSecKeysT &&value)
Connection & WithPartnerName(PartnerNameT &&value)
Connection & WithAwsDeviceV2(AwsDeviceV2T &&value)
void SetOwnerAccount(OwnerAccountT &&value)
HasLogicalRedundancy GetHasLogicalRedundancy() const
Connection & WithConnectionName(ConnectionNameT &&value)
const Aws::String & GetConnectionName() const
bool JumboFrameCapableHasBeenSet() const
void SetLoaIssueTime(LoaIssueTimeT &&value)
AWS_DIRECTCONNECT_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & AddMacSecKeys(MacSecKeysT &&value)
const Aws::String & GetRequestId() const
AWS_DIRECTCONNECT_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
Connection & WithOwnerAccount(OwnerAccountT &&value)
bool LagIdHasBeenSet() const
Connection & WithLoaIssueTime(LoaIssueTimeT &&value)
Connection & WithTags(TagsT &&value)
Connection & WithLagId(LagIdT &&value)
bool EncryptionModeHasBeenSet() const
const Aws::String & GetConnectionId() const
Connection & WithRegion(RegionT &&value)
bool ConnectionNameHasBeenSet() const
bool GetJumboFrameCapable() const
Connection & WithEncryptionMode(EncryptionModeT &&value)
Connection & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Connection & WithMacSecCapable(bool value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
const Aws::String & GetAwsDeviceV2() const
bool ConnectionIdHasBeenSet() const
Connection & WithJumboFrameCapable(bool value)
bool ProviderNameHasBeenSet() const
void SetBandwidth(BandwidthT &&value)
void SetLagId(LagIdT &&value)
const Aws::String & GetAwsLogicalDeviceId() const
const Aws::String & GetRegion() const
Connection & WithMacSecKeys(MacSecKeysT &&value)
void SetJumboFrameCapable(bool value)
const Aws::String & GetProviderName() const
bool OwnerAccountHasBeenSet() const
void SetRegion(RegionT &&value)
Connection & AddTags(TagsT &&value)
bool ConnectionStateHasBeenSet() const
const Aws::String & GetOwnerAccount() const
ConnectionState GetConnectionState() const
Connection & WithConnectionId(ConnectionIdT &&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