DirectConnection Class
- java.
lang. Object - com.
azure. resourcemanager. peering. models. DirectConnection
- com.
Implements
public final class DirectConnection
implements JsonSerializable<DirectConnection>
The properties that define a direct connection.
Constructor Summary
| Constructor | Description |
|---|---|
| DirectConnection() |
Creates an instance of Direct |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
bandwidthInMbps()
Get the bandwidth |
|
Bgp |
bgpSession()
Get the bgp |
| String |
connectionIdentifier()
Get the connection |
|
Connection |
connectionState()
Get the connection |
| String |
errorMessage()
Get the error |
|
static
Direct |
fromJson(JsonReader jsonReader)
Reads an instance of Direct |
| String |
microsoftTrackingId()
Get the microsoft |
| Integer |
peeringDBFacilityId()
Get the peering |
| Integer |
provisionedBandwidthInMbps()
Get the provisioned |
|
Session |
sessionAddressProvider()
Get the session |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
useForPeeringService()
Get the use |
| void |
validate()
Validates the instance. |
|
Direct |
withBandwidthInMbps(Integer bandwidthInMbps)
Set the bandwidth |
|
Direct |
withBgpSession(BgpSession bgpSession)
Set the bgp |
|
Direct |
withConnectionIdentifier(String connectionIdentifier)
Set the connection |
|
Direct |
withPeeringDBFacilityId(Integer peeringDBFacilityId)
Set the peering |
|
Direct |
withSessionAddressProvider(SessionAddressProvider sessionAddressProvider)
Set the session |
|
Direct |
withUseForPeeringService(Boolean useForPeeringService)
Set the use |
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:
bgpSession
public BgpSession bgpSession()
Get the bgpSession property: The BGP session associated with the connection.
Returns:
connectionIdentifier
public String connectionIdentifier()
Get the connectionIdentifier property: The unique identifier (GUID) for the connection.
Returns:
connectionState
public ConnectionState connectionState()
Get the connectionState property: The state of the connection.
Returns:
errorMessage
public String errorMessage()
Get the errorMessage property: The error message related to the connection state, if any.
Returns:
fromJson
public static DirectConnection fromJson(JsonReader jsonReader)
Reads an instance of DirectConnection from the JsonReader.
Parameters:
Returns:
Throws:
microsoftTrackingId
public String microsoftTrackingId()
Get the microsoftTrackingId property: The ID used within Microsoft's peering provisioning system to track the connection.
Returns:
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:
provisionedBandwidthInMbps
public Integer provisionedBandwidthInMbps()
Get the provisionedBandwidthInMbps property: The bandwidth that is actually provisioned.
Returns:
sessionAddressProvider
public SessionAddressProvider sessionAddressProvider()
Get the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.
Returns:
toJson
useForPeeringService
public Boolean useForPeeringService()
Get the useForPeeringService property: The flag that indicates whether or not the connection is used for peering service.
Returns:
validate
public void validate()
Validates the instance.
withBandwidthInMbps
public DirectConnection withBandwidthInMbps(Integer bandwidthInMbps)
Set the bandwidthInMbps property: The bandwidth of the connection.
Parameters:
Returns:
withBgpSession
public DirectConnection withBgpSession(BgpSession bgpSession)
Set the bgpSession property: The BGP session associated with the connection.
Parameters:
Returns:
withConnectionIdentifier
public DirectConnection withConnectionIdentifier(String connectionIdentifier)
Set the connectionIdentifier property: The unique identifier (GUID) for the connection.
Parameters:
Returns:
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:
Returns:
withSessionAddressProvider
public DirectConnection withSessionAddressProvider(SessionAddressProvider sessionAddressProvider)
Set the sessionAddressProvider property: The field indicating if Microsoft provides session ip addresses.
Parameters:
Returns:
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:
Returns: