Compartilhar via


DirectConnection Class

  • java.lang.Object
    • com.azure.resourcemanager.peering.models.DirectConnection

Implements

public final class DirectConnection
implements JsonSerializable<DirectConnection>

The properties that define a direct connection.

Constructor Summary

Constructor Description
DirectConnection()

Creates an instance of DirectConnection class.

Method Summary

Modifier and Type Method and Description
Integer bandwidthInMbps()

Get the bandwidthInMbps property: The bandwidth of the connection.

BgpSession bgpSession()

Get the bgpSession property: The BGP session associated with the connection.

String connectionIdentifier()

Get the connectionIdentifier property: The unique identifier (GUID) for the connection.

ConnectionState connectionState()

Get the connectionState property: The state of the connection.

String errorMessage()

Get the errorMessage property: The error message related to the connection state, if any.

static DirectConnection fromJson(JsonReader jsonReader)

Reads an instance of DirectConnection from the JsonReader.

String microsoftTrackingId()

Get the microsoftTrackingId property: The ID used within Microsoft's peering provisioning system to track the connection.

Integer peeringDBFacilityId()

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

Integer provisionedBandwidthInMbps()

Get the provisionedBandwidthInMbps property: The bandwidth that is actually provisioned.

SessionAddressProvider sessionAddressProvider()

Get the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useForPeeringService()

Get the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.

void validate()

Validates the instance.

DirectConnection withBandwidthInMbps(Integer bandwidthInMbps)

Set the bandwidthInMbps property: The bandwidth of the connection.

DirectConnection withBgpSession(BgpSession bgpSession)

Set the bgpSession property: The BGP session associated with the connection.

DirectConnection withConnectionIdentifier(String connectionIdentifier)

Set the connectionIdentifier property: The unique identifier (GUID) for the connection.

DirectConnection withPeeringDBFacilityId(Integer peeringDBFacilityId)

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

DirectConnection withSessionAddressProvider(SessionAddressProvider sessionAddressProvider)

Set the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.

DirectConnection withUseForPeeringService(Boolean useForPeeringService)

Set the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.

Methods inherited from java.lang.Object

Constructor Details

DirectConnection

public DirectConnection()

Creates an instance of DirectConnection class.

Method Details

bandwidthInMbps

public Integer bandwidthInMbps()

Get the bandwidthInMbps property: The bandwidth of the connection.

Returns:

the bandwidthInMbps value.

bgpSession

public BgpSession bgpSession()

Get the bgpSession property: The BGP session associated with the connection.

Returns:

the bgpSession value.

connectionIdentifier

public String connectionIdentifier()

Get the connectionIdentifier property: The unique identifier (GUID) for the connection.

Returns:

the connectionIdentifier value.

connectionState

public ConnectionState connectionState()

Get the connectionState property: The state of the connection.

Returns:

the connectionState value.

errorMessage

public String errorMessage()

Get the errorMessage property: The error message related to the connection state, if any.

Returns:

the errorMessage value.

fromJson

public static DirectConnection fromJson(JsonReader jsonReader)

Reads an instance of DirectConnection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DirectConnection if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DirectConnection.

microsoftTrackingId

public String microsoftTrackingId()

Get the microsoftTrackingId property: The ID used within Microsoft's peering provisioning system to track the connection.

Returns:

the microsoftTrackingId value.

peeringDBFacilityId

public Integer peeringDBFacilityId()

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

Returns:

the peeringDBFacilityId value.

provisionedBandwidthInMbps

public Integer provisionedBandwidthInMbps()

Get the provisionedBandwidthInMbps property: The bandwidth that is actually provisioned.

Returns:

the provisionedBandwidthInMbps value.

sessionAddressProvider

public SessionAddressProvider sessionAddressProvider()

Get the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.

Returns:

the sessionAddressProvider value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useForPeeringService

public Boolean useForPeeringService()

Get the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.

Returns:

the useForPeeringService value.

validate

public void validate()

Validates the instance.

withBandwidthInMbps

public DirectConnection withBandwidthInMbps(Integer bandwidthInMbps)

Set the bandwidthInMbps property: The bandwidth of the connection.

Parameters:

bandwidthInMbps - the bandwidthInMbps value to set.

Returns:

the DirectConnection object itself.

withBgpSession

public DirectConnection withBgpSession(BgpSession bgpSession)

Set the bgpSession property: The BGP session associated with the connection.

Parameters:

bgpSession - the bgpSession value to set.

Returns:

the DirectConnection object itself.

withConnectionIdentifier

public DirectConnection withConnectionIdentifier(String connectionIdentifier)

Set the connectionIdentifier property: The unique identifier (GUID) for the connection.

Parameters:

connectionIdentifier - the connectionIdentifier value to set.

Returns:

the DirectConnection object itself.

withPeeringDBFacilityId

public DirectConnection withPeeringDBFacilityId(Integer peeringDBFacilityId)

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

Parameters:

peeringDBFacilityId - the peeringDBFacilityId value to set.

Returns:

the DirectConnection object itself.

withSessionAddressProvider

public DirectConnection withSessionAddressProvider(SessionAddressProvider sessionAddressProvider)

Set the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.

Parameters:

sessionAddressProvider - the sessionAddressProvider value to set.

Returns:

the DirectConnection object itself.

withUseForPeeringService

public DirectConnection withUseForPeeringService(Boolean useForPeeringService)

Set the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.

Parameters:

useForPeeringService - the useForPeeringService value to set.

Returns:

the DirectConnection object itself.

Applies to