Class BgpConnectionInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.BgpConnectionInner
-
public final class BgpConnectionInner extends com.azure.core.management.SubResourceVirtual Appliance Site resource.
-
-
Constructor Summary
Constructors Constructor Description BgpConnectionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HubBgpConnectionStatusconnectionState()Get the connectionState property: The current state of the VirtualHub to Peer.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.com.azure.core.management.SubResourcehubVirtualNetworkConnection()Get the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.Stringname()Get the name property: Name of the connection.LongpeerAsn()Get the peerAsn property: Peer ASN.StringpeerIp()Get the peerIp property: Peer IP.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the resource.Stringtype()Get the type property: Connection type.voidvalidate()Validates the instance.BgpConnectionInnerwithHubVirtualNetworkConnection(com.azure.core.management.SubResource hubVirtualNetworkConnection)Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.BgpConnectionInnerwithId(String id)BgpConnectionInnerwithName(String name)Set the name property: Name of the connection.BgpConnectionInnerwithPeerAsn(Long peerAsn)Set the peerAsn property: Peer ASN.BgpConnectionInnerwithPeerIp(String peerIp)Set the peerIp property: Peer IP.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the connection.- Returns:
- the name value.
-
withName
public BgpConnectionInner withName(String name)
Set the name property: Name of the connection.- Parameters:
name- the name value to set.- Returns:
- the BgpConnectionInner object itself.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
public String type()
Get the type property: Connection type.- Returns:
- the type value.
-
withId
public BgpConnectionInner withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
peerAsn
public Long peerAsn()
Get the peerAsn property: Peer ASN.- Returns:
- the peerAsn value.
-
withPeerAsn
public BgpConnectionInner withPeerAsn(Long peerAsn)
Set the peerAsn property: Peer ASN.- Parameters:
peerAsn- the peerAsn value to set.- Returns:
- the BgpConnectionInner object itself.
-
peerIp
public String peerIp()
Get the peerIp property: Peer IP.- Returns:
- the peerIp value.
-
withPeerIp
public BgpConnectionInner withPeerIp(String peerIp)
Set the peerIp property: Peer IP.- Parameters:
peerIp- the peerIp value to set.- Returns:
- the BgpConnectionInner object itself.
-
hubVirtualNetworkConnection
public com.azure.core.management.SubResource hubVirtualNetworkConnection()
Get the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.- Returns:
- the hubVirtualNetworkConnection value.
-
withHubVirtualNetworkConnection
public BgpConnectionInner withHubVirtualNetworkConnection(com.azure.core.management.SubResource hubVirtualNetworkConnection)
Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.- Parameters:
hubVirtualNetworkConnection- the hubVirtualNetworkConnection value to set.- Returns:
- the BgpConnectionInner object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
connectionState
public HubBgpConnectionStatus connectionState()
Get the connectionState property: The current state of the VirtualHub to Peer.- Returns:
- the connectionState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-