/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about an interconnect.

See Also:

AWS * API Reference

*/ class Interconnect { public: AWS_DIRECTCONNECT_API Interconnect(); AWS_DIRECTCONNECT_API Interconnect(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTCONNECT_API Interconnect& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the interconnect.

*/ inline const Aws::String& GetInterconnectId() const{ return m_interconnectId; } /** *

The ID of the interconnect.

*/ inline bool InterconnectIdHasBeenSet() const { return m_interconnectIdHasBeenSet; } /** *

The ID of the interconnect.

*/ inline void SetInterconnectId(const Aws::String& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; } /** *

The ID of the interconnect.

*/ inline void SetInterconnectId(Aws::String&& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = std::move(value); } /** *

The ID of the interconnect.

*/ inline void SetInterconnectId(const char* value) { m_interconnectIdHasBeenSet = true; m_interconnectId.assign(value); } /** *

The ID of the interconnect.

*/ inline Interconnect& WithInterconnectId(const Aws::String& value) { SetInterconnectId(value); return *this;} /** *

The ID of the interconnect.

*/ inline Interconnect& WithInterconnectId(Aws::String&& value) { SetInterconnectId(std::move(value)); return *this;} /** *

The ID of the interconnect.

*/ inline Interconnect& WithInterconnectId(const char* value) { SetInterconnectId(value); return *this;} /** *

The name of the interconnect.

*/ inline const Aws::String& GetInterconnectName() const{ return m_interconnectName; } /** *

The name of the interconnect.

*/ inline bool InterconnectNameHasBeenSet() const { return m_interconnectNameHasBeenSet; } /** *

The name of the interconnect.

*/ inline void SetInterconnectName(const Aws::String& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; } /** *

The name of the interconnect.

*/ inline void SetInterconnectName(Aws::String&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = std::move(value); } /** *

The name of the interconnect.

*/ inline void SetInterconnectName(const char* value) { m_interconnectNameHasBeenSet = true; m_interconnectName.assign(value); } /** *

The name of the interconnect.

*/ inline Interconnect& WithInterconnectName(const Aws::String& value) { SetInterconnectName(value); return *this;} /** *

The name of the interconnect.

*/ inline Interconnect& WithInterconnectName(Aws::String&& value) { SetInterconnectName(std::move(value)); return *this;} /** *

The name of the interconnect.

*/ inline Interconnect& WithInterconnectName(const char* value) { SetInterconnectName(value); return *this;} /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline const InterconnectState& GetInterconnectState() const{ return m_interconnectState; } /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline bool InterconnectStateHasBeenSet() const { return m_interconnectStateHasBeenSet; } /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline void SetInterconnectState(const InterconnectState& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; } /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline void SetInterconnectState(InterconnectState&& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = std::move(value); } /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline Interconnect& WithInterconnectState(const InterconnectState& value) { SetInterconnectState(value); return *this;} /** *

The state of the interconnect. The following are the possible values:

*
  • requested: The initial state of an interconnect. The * interconnect stays in the requested state until the Letter of Authorization * (LOA) is sent to the customer.

  • pending: The * interconnect is approved, and is being initialized.

  • * available: The network link is up, and the interconnect is ready * for use.

  • down: The network link is down.

    *
  • deleting: The interconnect is being deleted.

    *
  • deleted: The interconnect is deleted.

  • *

    unknown: The state of the interconnect is not available.

    *
*/ inline Interconnect& WithInterconnectState(InterconnectState&& value) { SetInterconnectState(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 bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Amazon Web Services Region where the connection is located.

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

The Amazon Web Services Region where the connection is located.

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

The Amazon Web Services Region where the connection is located.

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

The Amazon Web Services Region where the connection is located.

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

The Amazon Web Services Region where the connection is located.

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

The Amazon Web Services Region where the connection is located.

*/ inline Interconnect& 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 Interconnect& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the connection.

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

The location of the connection.

*/ inline Interconnect& 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 Interconnect& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;} /** *

The bandwidth of the connection.

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

The bandwidth of the connection.

*/ inline Interconnect& WithBandwidth(const char* value) { SetBandwidth(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 Interconnect& WithLoaIssueTime(const Aws::Utils::DateTime& value) { SetLoaIssueTime(value); return *this;} /** *

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

*/ inline Interconnect& 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 Interconnect& WithLagId(const Aws::String& value) { SetLagId(value); return *this;} /** *

The ID of the LAG.

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

The ID of the LAG.

*/ inline Interconnect& 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 Interconnect& WithAwsDevice(const Aws::String& value) { SetAwsDevice(value); return *this;} /** *

The Direct Connect endpoint on which the physical connection terminates.

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

The Direct Connect endpoint on which the physical connection terminates.

*/ inline Interconnect& 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 bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; } /** *

Indicates whether jumbo frames are supported.

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

Indicates whether jumbo frames are supported.

*/ inline Interconnect& 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 bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; } /** *

The Direct Connect endpoint that terminates the physical connection.

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

The Direct Connect endpoint that terminates the physical connection.

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

The Direct Connect endpoint that terminates the physical connection.

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

The Direct Connect endpoint that terminates the physical connection.

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

The Direct Connect endpoint that terminates the physical connection.

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

The Direct Connect endpoint that terminates the physical connection.

*/ inline Interconnect& 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 bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; } /** *

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_awsLogicalDeviceIdHasBeenSet = true; 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_awsLogicalDeviceIdHasBeenSet = true; 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_awsLogicalDeviceIdHasBeenSet = true; 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 Interconnect& 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 Interconnect& 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 Interconnect& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(value); return *this;} /** *

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

*/ inline const HasLogicalRedundancy& GetHasLogicalRedundancy() const{ return m_hasLogicalRedundancy; } /** *

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

*/ inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; } /** *

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

*/ inline void SetHasLogicalRedundancy(const HasLogicalRedundancy& value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = value; } /** *

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

*/ inline void SetHasLogicalRedundancy(HasLogicalRedundancy&& value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = std::move(value); } /** *

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

*/ inline Interconnect& WithHasLogicalRedundancy(const HasLogicalRedundancy& value) { SetHasLogicalRedundancy(value); return *this;} /** *

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

*/ inline Interconnect& WithHasLogicalRedundancy(HasLogicalRedundancy&& value) { SetHasLogicalRedundancy(std::move(value)); return *this;} /** *

The tags associated with the interconnect.

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

The tags associated with the interconnect.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags associated with the interconnect.

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

The tags associated with the interconnect.

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

The tags associated with the interconnect.

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

The tags associated with the interconnect.

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

The tags associated with the interconnect.

*/ inline Interconnect& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with the interconnect.

*/ inline Interconnect& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The name of the service provider associated with the interconnect.

*/ inline const Aws::String& GetProviderName() const{ return m_providerName; } /** *

The name of the service provider associated with the interconnect.

*/ inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } /** *

The name of the service provider associated with the interconnect.

*/ inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } /** *

The name of the service provider associated with the interconnect.

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

The name of the service provider associated with the interconnect.

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

The name of the service provider associated with the interconnect.

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

The name of the service provider associated with the interconnect.

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

The name of the service provider associated with the interconnect.

*/ inline Interconnect& WithProviderName(const char* value) { SetProviderName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline Interconnect& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline Interconnect& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline Interconnect& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_interconnectId; bool m_interconnectIdHasBeenSet = false; Aws::String m_interconnectName; bool m_interconnectNameHasBeenSet = false; InterconnectState m_interconnectState; bool m_interconnectStateHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_bandwidth; bool m_bandwidthHasBeenSet = false; Aws::Utils::DateTime m_loaIssueTime; bool m_loaIssueTimeHasBeenSet = false; Aws::String m_lagId; bool m_lagIdHasBeenSet = false; Aws::String m_awsDevice; bool m_awsDeviceHasBeenSet = false; bool m_jumboFrameCapable; bool m_jumboFrameCapableHasBeenSet = false; Aws::String m_awsDeviceV2; bool m_awsDeviceV2HasBeenSet = false; Aws::String m_awsLogicalDeviceId; bool m_awsLogicalDeviceIdHasBeenSet = false; HasLogicalRedundancy m_hasLogicalRedundancy; bool m_hasLogicalRedundancyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_providerName; bool m_providerNameHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws