Class DirectConnection
java.lang.Object
com.azure.resourcemanager.peering.models.DirectConnection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DirectConnection>
public final class DirectConnection
extends Object
implements com.azure.json.JsonSerializable<DirectConnection>
The properties that define a direct connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bandwidthInMbps property: The bandwidth of the connection.Get the bgpSession property: The BGP session associated with the connection.Get the connectionIdentifier property: The unique identifier (GUID) for the connection.Get the connectionState property: The state of the connection.Get the errorMessage property: The error message related to the connection state, if any.static DirectConnectionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DirectConnection from the JsonReader.Get the microsoftTrackingId property: The ID used within Microsoft's peering provisioning system to track the connection.Get the peeringDBFacilityId property: The PeeringDB.com ID of the facility at which the connection has to be set up.Get the provisionedBandwidthInMbps property: The bandwidth that is actually provisioned.Get the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.voidvalidate()Validates the instance.withBandwidthInMbps(Integer bandwidthInMbps) Set the bandwidthInMbps property: The bandwidth of the connection.withBgpSession(BgpSession bgpSession) Set the bgpSession property: The BGP session associated with the connection.withConnectionIdentifier(String connectionIdentifier) Set the connectionIdentifier property: The unique identifier (GUID) for the connection.withPeeringDBFacilityId(Integer peeringDBFacilityId) Set the peeringDBFacilityId property: The PeeringDB.com ID of the facility at which the connection has to be set up.withSessionAddressProvider(SessionAddressProvider sessionAddressProvider) Set the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.withUseForPeeringService(Boolean useForPeeringService) Set the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DirectConnection
public DirectConnection()Creates an instance of DirectConnection class.
-
-
Method Details
-
bandwidthInMbps
Get the bandwidthInMbps property: The bandwidth of the connection.- Returns:
- the bandwidthInMbps value.
-
withBandwidthInMbps
Set the bandwidthInMbps property: The bandwidth of the connection.- Parameters:
bandwidthInMbps- the bandwidthInMbps value to set.- Returns:
- the DirectConnection object itself.
-
provisionedBandwidthInMbps
Get the provisionedBandwidthInMbps property: The bandwidth that is actually provisioned.- Returns:
- the provisionedBandwidthInMbps value.
-
sessionAddressProvider
Get the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.- Returns:
- the sessionAddressProvider value.
-
withSessionAddressProvider
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.
-
useForPeeringService
Get the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.- Returns:
- the useForPeeringService value.
-
withUseForPeeringService
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.
-
microsoftTrackingId
Get the microsoftTrackingId property: The ID used within Microsoft's peering provisioning system to track the connection.- Returns:
- the microsoftTrackingId value.
-
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.
-
withPeeringDBFacilityId
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.
-
connectionState
Get the connectionState property: The state of the connection.- Returns:
- the connectionState value.
-
bgpSession
Get the bgpSession property: The BGP session associated with the connection.- Returns:
- the bgpSession value.
-
withBgpSession
Set the bgpSession property: The BGP session associated with the connection.- Parameters:
bgpSession- the bgpSession value to set.- Returns:
- the DirectConnection object itself.
-
connectionIdentifier
Get the connectionIdentifier property: The unique identifier (GUID) for the connection.- Returns:
- the connectionIdentifier value.
-
withConnectionIdentifier
Set the connectionIdentifier property: The unique identifier (GUID) for the connection.- Parameters:
connectionIdentifier- the connectionIdentifier value to set.- Returns:
- the DirectConnection object itself.
-
errorMessage
Get the errorMessage property: The error message related to the connection state, if any.- Returns:
- the errorMessage value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DirectConnection>- Throws:
IOException
-
fromJson
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.
-