BgpConnectionInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. BgpConnectionInner
- com.
- com.
public final class BgpConnectionInner
extends SubResource
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 |
String |
name()
Get the name property: Name of the connection. |
Long |
peerAsn()
Get the peer |
String |
peerIp()
Get the peer |
Provisioning |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Connection 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 connection. |
Bgp |
withPeerAsn(Long peerAsn)
Set the peer |
Bgp |
withPeerIp(String peerIp)
Set the peer |
Methods inherited from SubResource
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:
name
public String name()
Get the name property: Name of the connection.
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BgpConnectionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Connection type.
Returns:
validate
public void validate()
Validates the instance.
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 connection.
Parameters:
Returns:
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:
Applies to
Azure SDK for Java