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.SubResource
Virtual Appliance Site resource.
  • Constructor Details

    • BgpConnectionInner

      public BgpConnectionInner()
      Creates an instance of BgpConnectionInner class.
  • Method Details

    • 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:
      withId in class com.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.