Share via


ArmPeeringModelFactory.PeeringExchangeConnection Method

Definition

Initializes a new instance of PeeringExchangeConnection.

public static Azure.ResourceManager.Peering.Models.PeeringExchangeConnection PeeringExchangeConnection (int? peeringDBFacilityId = default, Azure.ResourceManager.Peering.Models.PeeringConnectionState? connectionState = default, Azure.ResourceManager.Peering.Models.PeeringBgpSession bgpSession = default, Guid? connectionIdentifier = default, string errorMessage = default);
static member PeeringExchangeConnection : Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.PeeringConnectionState> * Azure.ResourceManager.Peering.Models.PeeringBgpSession * Nullable<Guid> * string -> Azure.ResourceManager.Peering.Models.PeeringExchangeConnection
Public Shared Function PeeringExchangeConnection (Optional peeringDBFacilityId As Nullable(Of Integer) = Nothing, Optional connectionState As Nullable(Of PeeringConnectionState) = Nothing, Optional bgpSession As PeeringBgpSession = Nothing, Optional connectionIdentifier As Nullable(Of Guid) = Nothing, Optional errorMessage As String = Nothing) As PeeringExchangeConnection

Parameters

peeringDBFacilityId
Nullable<Int32>

The PeeringDB.com ID of the facility at which the connection has to be set up.

connectionState
Nullable<PeeringConnectionState>

The state of the connection.

bgpSession
PeeringBgpSession

The BGP session associated with the connection.

connectionIdentifier
Nullable<Guid>

The unique identifier (GUID) for the connection.

errorMessage
String

The error message related to the connection state, if any.

Returns

A new PeeringExchangeConnection instance for mocking.

Applies to