/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about an Direct Connect connection.

See Also:

AWS * API Reference

*/ class AssociateConnectionWithLagResult { public: AWS_DIRECTCONNECT_API AssociateConnectionWithLagResult(); AWS_DIRECTCONNECT_API AssociateConnectionWithLagResult(const Aws::AmazonWebServiceResult& result); AWS_DIRECTCONNECT_API AssociateConnectionWithLagResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccount = value; } /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccount = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccount.assign(value); } /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline AssociateConnectionWithLagResult& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline AssociateConnectionWithLagResult& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetConnectionId(const Aws::String& value) { m_connectionId = value; } /** *

The ID of the connection.

*/ inline void SetConnectionId(Aws::String&& value) { m_connectionId = std::move(value); } /** *

The ID of the connection.

*/ inline void SetConnectionId(const char* value) { m_connectionId.assign(value); } /** *

The ID of the connection.

*/ inline AssociateConnectionWithLagResult& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *

The ID of the connection.

*/ inline AssociateConnectionWithLagResult& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *

The ID of the connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetConnectionName(const Aws::String& value) { m_connectionName = value; } /** *

The name of the connection.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionName = std::move(value); } /** *

The name of the connection.

*/ inline void SetConnectionName(const char* value) { m_connectionName.assign(value); } /** *

The name of the connection.

*/ inline AssociateConnectionWithLagResult& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The name of the connection.

*/ inline AssociateConnectionWithLagResult& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The name of the connection.

*/ inline AssociateConnectionWithLagResult& 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.

*/ inline const ConnectionState& GetConnectionState() const{ return m_connectionState; } /** *

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.

*/ inline void SetConnectionState(const ConnectionState& value) { m_connectionState = value; } /** *

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.

*/ inline void SetConnectionState(ConnectionState&& value) { m_connectionState = std::move(value); } /** *

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.

*/ inline AssociateConnectionWithLagResult& WithConnectionState(const ConnectionState& value) { SetConnectionState(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.

*/ inline AssociateConnectionWithLagResult& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;} /** *

The Amazon Web Services Region where the connection is located.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Amazon Web Services Region where the connection is located.

*/ inline void SetRegion(const Aws::String& value) { m_region = value; } /** *

The Amazon Web Services Region where the connection is located.

*/ inline void SetRegion(Aws::String&& value) { m_region = std::move(value); } /** *

The Amazon Web Services Region where the connection is located.

*/ inline void SetRegion(const char* value) { m_region.assign(value); } /** *

The Amazon Web Services Region where the connection is located.

*/ inline AssociateConnectionWithLagResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Amazon Web Services Region where the connection is located.

*/ inline AssociateConnectionWithLagResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region where the connection is located.

*/ inline AssociateConnectionWithLagResult& 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 void SetLocation(const Aws::String& value) { m_location = value; } /** *

The location of the connection.

*/ inline void SetLocation(Aws::String&& value) { m_location = std::move(value); } /** *

The location of the connection.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

The location of the connection.

*/ inline AssociateConnectionWithLagResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the connection.

*/ inline AssociateConnectionWithLagResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The location of the connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetBandwidth(const Aws::String& value) { m_bandwidth = value; } /** *

The bandwidth of the connection.

*/ inline void SetBandwidth(Aws::String&& value) { m_bandwidth = std::move(value); } /** *

The bandwidth of the connection.

*/ inline void SetBandwidth(const char* value) { m_bandwidth.assign(value); } /** *

The bandwidth of the connection.

*/ inline AssociateConnectionWithLagResult& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;} /** *

The bandwidth of the connection.

*/ inline AssociateConnectionWithLagResult& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;} /** *

The bandwidth of the connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetVlan(int value) { m_vlan = value; } /** *

The ID of the VLAN.

*/ inline AssociateConnectionWithLagResult& WithVlan(int value) { SetVlan(value); return *this;} /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline const Aws::String& GetPartnerName() const{ return m_partnerName; } /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline void SetPartnerName(const Aws::String& value) { m_partnerName = value; } /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline void SetPartnerName(Aws::String&& value) { m_partnerName = std::move(value); } /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline void SetPartnerName(const char* value) { m_partnerName.assign(value); } /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline AssociateConnectionWithLagResult& WithPartnerName(const Aws::String& value) { SetPartnerName(value); return *this;} /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline AssociateConnectionWithLagResult& WithPartnerName(Aws::String&& value) { SetPartnerName(std::move(value)); return *this;} /** *

The name of the Direct Connect service provider associated with the * connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetLoaIssueTime(const Aws::Utils::DateTime& value) { m_loaIssueTime = value; } /** *

The time of the most recent call to DescribeLoa for this * connection.

*/ inline void SetLoaIssueTime(Aws::Utils::DateTime&& value) { m_loaIssueTime = std::move(value); } /** *

The time of the most recent call to DescribeLoa for this * connection.

*/ inline AssociateConnectionWithLagResult& WithLoaIssueTime(const Aws::Utils::DateTime& value) { SetLoaIssueTime(value); return *this;} /** *

The time of the most recent call to DescribeLoa for this * connection.

*/ inline AssociateConnectionWithLagResult& 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 void SetLagId(const Aws::String& value) { m_lagId = value; } /** *

The ID of the LAG.

*/ inline void SetLagId(Aws::String&& value) { m_lagId = std::move(value); } /** *

The ID of the LAG.

*/ inline void SetLagId(const char* value) { m_lagId.assign(value); } /** *

The ID of the LAG.

*/ inline AssociateConnectionWithLagResult& WithLagId(const Aws::String& value) { SetLagId(value); return *this;} /** *

The ID of the LAG.

*/ inline AssociateConnectionWithLagResult& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;} /** *

The ID of the LAG.

*/ inline AssociateConnectionWithLagResult& 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 void SetAwsDevice(const Aws::String& value) { m_awsDevice = value; } /** *

The Direct Connect endpoint on which the physical connection terminates.

*/ inline void SetAwsDevice(Aws::String&& value) { m_awsDevice = std::move(value); } /** *

The Direct Connect endpoint on which the physical connection terminates.

*/ inline void SetAwsDevice(const char* value) { m_awsDevice.assign(value); } /** *

The Direct Connect endpoint on which the physical connection terminates.

*/ inline AssociateConnectionWithLagResult& WithAwsDevice(const Aws::String& value) { SetAwsDevice(value); return *this;} /** *

The Direct Connect endpoint on which the physical connection terminates.

*/ inline AssociateConnectionWithLagResult& WithAwsDevice(Aws::String&& value) { SetAwsDevice(std::move(value)); return *this;} /** *

The Direct Connect endpoint on which the physical connection terminates.

*/ inline AssociateConnectionWithLagResult& WithAwsDevice(const char* value) { SetAwsDevice(value); return *this;} /** *

Indicates whether jumbo frames are supported.

*/ inline bool GetJumboFrameCapable() const{ return m_jumboFrameCapable; } /** *

Indicates whether jumbo frames are supported.

*/ inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapable = value; } /** *

Indicates whether jumbo frames are supported.

*/ inline AssociateConnectionWithLagResult& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;} /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; } /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2 = value; } /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2 = std::move(value); } /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2.assign(value); } /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline AssociateConnectionWithLagResult& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;} /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline AssociateConnectionWithLagResult& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;} /** *

The Direct Connect endpoint that terminates the physical connection.

*/ inline AssociateConnectionWithLagResult& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;} /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline const Aws::String& GetAwsLogicalDeviceId() const{ return m_awsLogicalDeviceId; } /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline void SetAwsLogicalDeviceId(const Aws::String& value) { m_awsLogicalDeviceId = value; } /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline void SetAwsLogicalDeviceId(Aws::String&& value) { m_awsLogicalDeviceId = std::move(value); } /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline void SetAwsLogicalDeviceId(const char* value) { m_awsLogicalDeviceId.assign(value); } /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline AssociateConnectionWithLagResult& WithAwsLogicalDeviceId(const Aws::String& value) { SetAwsLogicalDeviceId(value); return *this;} /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline AssociateConnectionWithLagResult& WithAwsLogicalDeviceId(Aws::String&& value) { SetAwsLogicalDeviceId(std::move(value)); return *this;} /** *

The Direct Connect endpoint that terminates the logical connection. This * device might be different than the device that terminates the physical * connection.

*/ inline AssociateConnectionWithLagResult& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(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 void SetHasLogicalRedundancy(const HasLogicalRedundancy& value) { 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_hasLogicalRedundancy = std::move(value); } /** *

Indicates whether the connection supports a secondary BGP peer in the same * address family (IPv4/IPv6).

*/ inline AssociateConnectionWithLagResult& 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 AssociateConnectionWithLagResult& WithHasLogicalRedundancy(HasLogicalRedundancy&& value) { SetHasLogicalRedundancy(std::move(value)); return *this;} /** *

The tags associated with the connection.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags associated with the connection.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

The tags associated with the connection.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

The tags associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the connection.

*/ inline AssociateConnectionWithLagResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags associated with the connection.

*/ inline AssociateConnectionWithLagResult& AddTags(Tag&& value) { 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 void SetProviderName(const Aws::String& value) { m_providerName = value; } /** *

The name of the service provider associated with the connection.

*/ inline void SetProviderName(Aws::String&& value) { m_providerName = std::move(value); } /** *

The name of the service provider associated with the connection.

*/ inline void SetProviderName(const char* value) { m_providerName.assign(value); } /** *

The name of the service provider associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} /** *

The name of the service provider associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} /** *

The name of the service provider associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithProviderName(const char* value) { SetProviderName(value); return *this;} /** *

Indicates whether the connection supports MAC Security (MACsec).

*/ inline bool GetMacSecCapable() const{ return m_macSecCapable; } /** *

Indicates whether the connection supports MAC Security (MACsec).

*/ inline void SetMacSecCapable(bool value) { m_macSecCapable = value; } /** *

Indicates whether the connection supports MAC Security (MACsec).

*/ inline AssociateConnectionWithLagResult& WithMacSecCapable(bool value) { SetMacSecCapable(value); return *this;} /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline const Aws::String& GetPortEncryptionStatus() const{ return m_portEncryptionStatus; } /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline void SetPortEncryptionStatus(const Aws::String& value) { m_portEncryptionStatus = value; } /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline void SetPortEncryptionStatus(Aws::String&& value) { m_portEncryptionStatus = std::move(value); } /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline void SetPortEncryptionStatus(const char* value) { m_portEncryptionStatus.assign(value); } /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline AssociateConnectionWithLagResult& WithPortEncryptionStatus(const Aws::String& value) { SetPortEncryptionStatus(value); return *this;} /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline AssociateConnectionWithLagResult& WithPortEncryptionStatus(Aws::String&& value) { SetPortEncryptionStatus(std::move(value)); return *this;} /** *

The MAC Security (MACsec) port link status of the connection.

The * valid values are Encryption Up, which means that there is an active * Connection Key Name, or Encryption Down.

*/ inline AssociateConnectionWithLagResult& WithPortEncryptionStatus(const char* value) { SetPortEncryptionStatus(value); return *this;} /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline const Aws::String& GetEncryptionMode() const{ return m_encryptionMode; } /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(const Aws::String& value) { m_encryptionMode = value; } /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(Aws::String&& value) { m_encryptionMode = std::move(value); } /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(const char* value) { m_encryptionMode.assign(value); } /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline AssociateConnectionWithLagResult& WithEncryptionMode(const Aws::String& value) { SetEncryptionMode(value); return *this;} /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline AssociateConnectionWithLagResult& WithEncryptionMode(Aws::String&& value) { SetEncryptionMode(std::move(value)); return *this;} /** *

The MAC Security (MACsec) connection encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline AssociateConnectionWithLagResult& WithEncryptionMode(const char* value) { SetEncryptionMode(value); return *this;} /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline const Aws::Vector& GetMacSecKeys() const{ return m_macSecKeys; } /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline void SetMacSecKeys(const Aws::Vector& value) { m_macSecKeys = value; } /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline void SetMacSecKeys(Aws::Vector&& value) { m_macSecKeys = std::move(value); } /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithMacSecKeys(const Aws::Vector& value) { SetMacSecKeys(value); return *this;} /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline AssociateConnectionWithLagResult& WithMacSecKeys(Aws::Vector&& value) { SetMacSecKeys(std::move(value)); return *this;} /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline AssociateConnectionWithLagResult& AddMacSecKeys(const MacSecKey& value) { m_macSecKeys.push_back(value); return *this; } /** *

The MAC Security (MACsec) security keys associated with the connection.

*/ inline AssociateConnectionWithLagResult& AddMacSecKeys(MacSecKey&& value) { m_macSecKeys.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline AssociateConnectionWithLagResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssociateConnectionWithLagResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssociateConnectionWithLagResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_ownerAccount; Aws::String m_connectionId; Aws::String m_connectionName; ConnectionState m_connectionState; Aws::String m_region; Aws::String m_location; Aws::String m_bandwidth; int m_vlan; Aws::String m_partnerName; Aws::Utils::DateTime m_loaIssueTime; Aws::String m_lagId; Aws::String m_awsDevice; bool m_jumboFrameCapable; Aws::String m_awsDeviceV2; Aws::String m_awsLogicalDeviceId; HasLogicalRedundancy m_hasLogicalRedundancy; Aws::Vector m_tags; Aws::String m_providerName; bool m_macSecCapable; Aws::String m_portEncryptionStatus; Aws::String m_encryptionMode; Aws::Vector m_macSecKeys; Aws::String m_requestId; }; } // namespace Model } // namespace DirectConnect } // namespace Aws