BgpConnectionInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. SubResourceModel - com.
azure. resourcemanager. network. fluent. models. BgpConnectionInner
- com.
- com.
- com.
public final class BgpConnectionInner
extends SubResourceModel
Virtual Appliance Site resource.
Constructor Summary
| Constructor | Description |
|---|---|
| BgpConnectionInner() |
Creates an instance of Bgp |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Hub |
connectionState()
Get the connection |
| String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
|
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) |
| String |
type()
Get the type property: Resource type. |
| void |
validate()
Validates the instance. |
|
Bgp |
withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)
Set the hub |
|
Bgp |
withId(String id) |
|
Bgp |
withName(String name)
Set the name property: Name of the resource. |
|
Bgp |
withPeerAsn(Long peerAsn)
Set the peer |
|
Bgp |
withPeerIp(String peerIp)
Set the peer |
|
Bgp |
withRoutingConfiguration(RoutingConfiguration routingConfiguration)
Set the routing |
Methods inherited from SubResource
Methods inherited from SubResourceModel
Methods inherited from java.lang.Object
Constructor Details
BgpConnectionInner
public BgpConnectionInner()
Creates an instance of BgpConnectionInner class.
Method Details
connectionState
public HubBgpConnectionStatus connectionState()
Get the connectionState property: The current state of the VirtualHub to Peer.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static BgpConnectionInner fromJson(JsonReader jsonReader)
Reads an instance of BgpConnectionInner 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
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BgpConnectionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Overrides:
BgpConnectionInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
BgpConnectionInner.validate()withHubVirtualNetworkConnection
public BgpConnectionInner withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)
Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.
Parameters:
Returns:
withId
public BgpConnectionInner withId(String id)
Overrides:
BgpConnectionInner.withId(String id)Parameters:
withName
public BgpConnectionInner withName(String name)
Set the name property: Name of the resource.
Overrides:
BgpConnectionInner.withName(String name)Parameters:
withPeerAsn
public BgpConnectionInner withPeerAsn(Long peerAsn)
Set the peerAsn property: Peer ASN.
Parameters:
Returns:
withPeerIp
public BgpConnectionInner withPeerIp(String peerIp)
Set the peerIp property: Peer IP.
Parameters:
Returns:
withRoutingConfiguration
public BgpConnectionInner withRoutingConfiguration(RoutingConfiguration routingConfiguration)
Set the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.
Parameters:
Returns: