BgpConnectionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. network. fluent. models. BgpConnectionProperties
- com.
Implements
public final class BgpConnectionProperties
implements JsonSerializable<BgpConnectionProperties>
Properties of the bgp connection.
Constructor Summary
| Constructor | Description |
|---|---|
| BgpConnectionProperties() |
Creates an instance of Bgp |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Hub |
connectionState()
Get the connection |
|
static
Bgp |
fromJson(JsonReader jsonReader)
Reads an instance of Bgp |
|
Sub |
hubVirtualNetworkConnection()
Get the hub |
| Long |
peerAsn()
Get the peer |
| String |
peerIp()
Get the peer |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Routing |
routingConfiguration()
Get the routing |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Bgp |
withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)
Set the hub |
|
Bgp |
withPeerAsn(Long peerAsn)
Set the peer |
|
Bgp |
withPeerIp(String peerIp)
Set the peer |
|
Bgp |
withRoutingConfiguration(RoutingConfiguration routingConfiguration)
Set the routing |
Methods inherited from java.lang.Object
Constructor Details
BgpConnectionProperties
public BgpConnectionProperties()
Creates an instance of BgpConnectionProperties class.
Method Details
connectionState
public HubBgpConnectionStatus connectionState()
Get the connectionState property: The current state of the VirtualHub to Peer.
Returns:
fromJson
public static BgpConnectionProperties fromJson(JsonReader jsonReader)
Reads an instance of BgpConnectionProperties from the JsonReader.
Parameters:
Returns:
Throws:
hubVirtualNetworkConnection
public SubResource hubVirtualNetworkConnection()
Get the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.
Returns:
peerAsn
public Long peerAsn()
Get the peerAsn property: Peer ASN.
Returns:
peerIp
public String peerIp()
Get the peerIp property: Peer IP.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
Returns:
routingConfiguration
public RoutingConfiguration routingConfiguration()
Get the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHubVirtualNetworkConnection
public BgpConnectionProperties withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)
Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.
Parameters:
Returns:
withPeerAsn
public BgpConnectionProperties withPeerAsn(Long peerAsn)
Set the peerAsn property: Peer ASN.
Parameters:
Returns:
withPeerIp
public BgpConnectionProperties withPeerIp(String peerIp)
Set the peerIp property: Peer IP.
Parameters:
Returns:
withRoutingConfiguration
public BgpConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)
Set the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.
Parameters:
Returns: