/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an AWS Direct Connect connection.See Also:
* AWS
* API Reference
The ID of the AWS account that owns the connection.
*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *The ID of the AWS account that owns the connection.
*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *The ID of the AWS account that owns the connection.
*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *The ID of the AWS account that owns the connection.
*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *The ID of the AWS account that owns the connection.
*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *The ID of the AWS account that owns the connection.
*/ inline Connection& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *The ID of the AWS account that owns the connection.
*/ inline Connection& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *The ID of the AWS account that owns the connection.
*/ inline Connection& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *The ID of the connection.
*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *The ID of the connection.
*/ inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; } /** *The ID of the connection.
*/ inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; } /** *The ID of the connection.
*/ inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); } /** *The ID of the connection.
*/ inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); } /** *The ID of the connection.
*/ inline Connection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *The ID of the connection.
*/ inline Connection& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *The ID of the connection.
*/ inline Connection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *The name of the connection.
*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *The name of the connection.
*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *The name of the connection.
*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *The name of the connection.
*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *The name of the connection.
*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *The name of the connection.
*/ inline Connection& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *The name of the connection.
*/ inline Connection& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *The name of the connection.
*/ inline Connection& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The state of the connection. The following are the possible values:
ordering: The initial state of a hosted connection
* provisioned on an interconnect. The connection stays in the ordering state until
* the owner of the hosted connection confirms or declines the connection
* order.
requested: The initial state of a
* standard connection. The connection stays in the requested state until the
* Letter of Authorization (LOA) is sent to the customer.
* pending: The connection has been approved and is being
* initialized.
available: The network link is up
* and the connection is ready for use.
down: The
* network link is down.
deleting: The connection
* is being deleted.
deleted: The connection has
* been deleted.
rejected: A hosted connection in
* the ordering state enters the rejected state if it is
* deleted by the customer.
unknown: The state of
* the connection is not available.
The AWS Region where the connection is located.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The AWS Region where the connection is located.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The AWS Region where the connection is located.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The AWS Region where the connection is located.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The AWS Region where the connection is located.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The AWS Region where the connection is located.
*/ inline Connection& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The AWS Region where the connection is located.
*/ inline Connection& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The AWS Region where the connection is located.
*/ inline Connection& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The location of the connection.
*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *The location of the connection.
*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *The location of the connection.
*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *The location of the connection.
*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *The location of the connection.
*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *The location of the connection.
*/ inline Connection& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *The location of the connection.
*/ inline Connection& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *The location of the connection.
*/ inline Connection& WithLocation(const char* value) { SetLocation(value); return *this;} /** *The bandwidth of the connection.
*/ inline const Aws::String& GetBandwidth() const{ return m_bandwidth; } /** *The bandwidth of the connection.
*/ inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; } /** *The bandwidth of the connection.
*/ inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; } /** *The bandwidth of the connection.
*/ inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); } /** *The bandwidth of the connection.
*/ inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); } /** *The bandwidth of the connection.
*/ inline Connection& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;} /** *The bandwidth of the connection.
*/ inline Connection& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;} /** *The bandwidth of the connection.
*/ inline Connection& WithBandwidth(const char* value) { SetBandwidth(value); return *this;} /** *The ID of the VLAN.
*/ inline int GetVlan() const{ return m_vlan; } /** *The ID of the VLAN.
*/ inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; } /** *The ID of the VLAN.
*/ inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; } /** *The ID of the VLAN.
*/ inline Connection& WithVlan(int value) { SetVlan(value); return *this;} /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline const Aws::String& GetPartnerName() const{ return m_partnerName; } /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; } /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline void SetPartnerName(const Aws::String& value) { m_partnerNameHasBeenSet = true; m_partnerName = value; } /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline void SetPartnerName(Aws::String&& value) { m_partnerNameHasBeenSet = true; m_partnerName = std::move(value); } /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline void SetPartnerName(const char* value) { m_partnerNameHasBeenSet = true; m_partnerName.assign(value); } /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline Connection& WithPartnerName(const Aws::String& value) { SetPartnerName(value); return *this;} /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline Connection& WithPartnerName(Aws::String&& value) { SetPartnerName(std::move(value)); return *this;} /** *The name of the AWS Direct Connect service provider associated with the * connection.
*/ inline Connection& WithPartnerName(const char* value) { SetPartnerName(value); return *this;} /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline const Aws::Utils::DateTime& GetLoaIssueTime() const{ return m_loaIssueTime; } /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline bool LoaIssueTimeHasBeenSet() const { return m_loaIssueTimeHasBeenSet; } /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline void SetLoaIssueTime(const Aws::Utils::DateTime& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = value; } /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline void SetLoaIssueTime(Aws::Utils::DateTime&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = std::move(value); } /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline Connection& WithLoaIssueTime(const Aws::Utils::DateTime& value) { SetLoaIssueTime(value); return *this;} /** *The time of the most recent call to DescribeLoa for this * connection.
*/ inline Connection& WithLoaIssueTime(Aws::Utils::DateTime&& value) { SetLoaIssueTime(std::move(value)); return *this;} /** *The ID of the LAG.
*/ inline const Aws::String& GetLagId() const{ return m_lagId; } /** *The ID of the LAG.
*/ inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; } /** *The ID of the LAG.
*/ inline void SetLagId(const Aws::String& value) { m_lagIdHasBeenSet = true; m_lagId = value; } /** *The ID of the LAG.
*/ inline void SetLagId(Aws::String&& value) { m_lagIdHasBeenSet = true; m_lagId = std::move(value); } /** *The ID of the LAG.
*/ inline void SetLagId(const char* value) { m_lagIdHasBeenSet = true; m_lagId.assign(value); } /** *The ID of the LAG.
*/ inline Connection& WithLagId(const Aws::String& value) { SetLagId(value); return *this;} /** *The ID of the LAG.
*/ inline Connection& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;} /** *The ID of the LAG.
*/ inline Connection& WithLagId(const char* value) { SetLagId(value); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline const Aws::String& GetAwsDevice() const{ return m_awsDevice; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline bool AwsDeviceHasBeenSet() const { return m_awsDeviceHasBeenSet; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDevice(const Aws::String& value) { m_awsDeviceHasBeenSet = true; m_awsDevice = value; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDevice(Aws::String&& value) { m_awsDeviceHasBeenSet = true; m_awsDevice = std::move(value); } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDevice(const char* value) { m_awsDeviceHasBeenSet = true; m_awsDevice.assign(value); } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDevice(const Aws::String& value) { SetAwsDevice(value); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDevice(Aws::String&& value) { SetAwsDevice(std::move(value)); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDevice(const char* value) { SetAwsDevice(value); return *this;} /** *Indicates whether jumbo frames (9001 MTU) are supported.
*/ inline bool GetJumboFrameCapable() const{ return m_jumboFrameCapable; } /** *Indicates whether jumbo frames (9001 MTU) are supported.
*/ inline bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; } /** *Indicates whether jumbo frames (9001 MTU) are supported.
*/ inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; } /** *Indicates whether jumbo frames (9001 MTU) are supported.
*/ inline Connection& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = value; } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::move(value); } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2.assign(value); } /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;} /** *The Direct Connect endpoint on which the physical connection terminates.
*/ inline Connection& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;} /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline const HasLogicalRedundancy& GetHasLogicalRedundancy() const{ return m_hasLogicalRedundancy; } /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; } /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline void SetHasLogicalRedundancy(const HasLogicalRedundancy& value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = value; } /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline void SetHasLogicalRedundancy(HasLogicalRedundancy&& value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = std::move(value); } /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline Connection& WithHasLogicalRedundancy(const HasLogicalRedundancy& value) { SetHasLogicalRedundancy(value); return *this;} /** *Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).
*/ inline Connection& WithHasLogicalRedundancy(HasLogicalRedundancy&& value) { SetHasLogicalRedundancy(std::move(value)); return *this;} /** *The tags associated with the connection.
*/ inline const Aws::VectorThe tags associated with the connection.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags associated with the connection.
*/ inline void SetTags(const Aws::VectorThe tags associated with the connection.
*/ inline void SetTags(Aws::VectorThe tags associated with the connection.
*/ inline Connection& WithTags(const Aws::VectorThe tags associated with the connection.
*/ inline Connection& WithTags(Aws::VectorThe tags associated with the connection.
*/ inline Connection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags associated with the connection.
*/ inline Connection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The name of the service provider associated with the connection.
*/ inline const Aws::String& GetProviderName() const{ return m_providerName; } /** *The name of the service provider associated with the connection.
*/ inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } /** *The name of the service provider associated with the connection.
*/ inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } /** *The name of the service provider associated with the connection.
*/ inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); } /** *The name of the service provider associated with the connection.
*/ inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); } /** *The name of the service provider associated with the connection.
*/ inline Connection& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} /** *The name of the service provider associated with the connection.
*/ inline Connection& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} /** *The name of the service provider associated with the connection.
*/ inline Connection& WithProviderName(const char* value) { SetProviderName(value); return *this;} private: Aws::String m_ownerAccount; bool m_ownerAccountHasBeenSet; Aws::String m_connectionId; bool m_connectionIdHasBeenSet; Aws::String m_connectionName; bool m_connectionNameHasBeenSet; ConnectionState m_connectionState; bool m_connectionStateHasBeenSet; Aws::String m_region; bool m_regionHasBeenSet; Aws::String m_location; bool m_locationHasBeenSet; Aws::String m_bandwidth; bool m_bandwidthHasBeenSet; int m_vlan; bool m_vlanHasBeenSet; Aws::String m_partnerName; bool m_partnerNameHasBeenSet; Aws::Utils::DateTime m_loaIssueTime; bool m_loaIssueTimeHasBeenSet; Aws::String m_lagId; bool m_lagIdHasBeenSet; Aws::String m_awsDevice; bool m_awsDeviceHasBeenSet; bool m_jumboFrameCapable; bool m_jumboFrameCapableHasBeenSet; Aws::String m_awsDeviceV2; bool m_awsDeviceV2HasBeenSet; HasLogicalRedundancy m_hasLogicalRedundancy; bool m_hasLogicalRedundancyHasBeenSet; Aws::Vector