Interface NetworkPeering

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.arm.models.HasId, com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<VirtualNetworkPeeringInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<NetworkManager>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasName, com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup, com.azure.resourcemanager.resources.fluentcore.arm.models.IndependentChild<NetworkManager>, com.azure.resourcemanager.resources.fluentcore.model.Indexable, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<NetworkPeering>, com.azure.resourcemanager.resources.fluentcore.model.Updatable<NetworkPeering.Update>

public interface NetworkPeering extends com.azure.resourcemanager.resources.fluentcore.arm.models.IndependentChild<NetworkManager>, com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<VirtualNetworkPeeringInner>, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<NetworkPeering>, com.azure.resourcemanager.resources.fluentcore.model.Updatable<NetworkPeering.Update>
An client-side representation of a network peering.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The entirety of the network peering definition.
    static interface 
    Grouping of all the network peering definition stages.
    static interface 
    The template for a network peering update operation, containing all the settings that can be modified.
    static interface 
    Grouping of all the network peering update stages.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the peering enables IP addresses within the peered networks to be accessible from both networks.
    Gets the type of gateway use enabled for this network.
    Gets the remote network.
    Gets the remote network associated with this peering asynchronously.
    Gets the associated matching peering on the remote network.
    Gets the associated matching peering on the remote network if it is in the same subscription.
    boolean
    Checks whether the peered networks are in the same subscription.
    boolean
    Checks whether traffic forwarding from the remote network is allowed into this network.
    Gets the local virtual network's ID.
    Gets the reference of the remote virtual network address space.
    Gets the associated remote virtual network's ID.
    Gets the state of the peering between the two networks.

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasId

    id

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel

    innerModel

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager

    manager

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName

    name

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup

    resourceGroupName

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Indexable

    key

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable

    refresh, refreshAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Updatable

    update
  • Method Details

    • networkId

      String networkId()
      Gets the local virtual network's ID.
      Returns:
      the local virtual network's ID
    • remoteAddressSpaces

      List<String> remoteAddressSpaces()
      Gets the reference of the remote virtual network address space.
      Returns:
      the reference of the remote virtual network address space
    • checkAccessBetweenNetworks

      boolean checkAccessBetweenNetworks()
      Checks whether the peering enables IP addresses within the peered networks to be accessible from both networks.
      Returns:
      true if the peering enables IP addresses within the peered networks to be accessible from both networks, otherwise false

      (Note this method makes a separate call to Azure.)

    • remoteNetworkId

      String remoteNetworkId()
      Gets the associated remote virtual network's ID.
      Returns:
      the associated remote virtual network's ID
    • getRemoteNetwork

      Network getRemoteNetwork()
      Gets the remote network.
      Returns:
      the remote network if it is in the same subscription, otherwise null.
    • getRemoteNetworkAsync

      Mono<Network> getRemoteNetworkAsync()
      Gets the remote network associated with this peering asynchronously.
      Returns:
      a representation of the future computation of this call
    • getRemotePeering

      NetworkPeering getRemotePeering()
      Gets the associated matching peering on the remote network.
      Returns:
      the associated matching peering on the remote network if it is in the same subscription, otherwise this future computation will evaluate to null.
    • getRemotePeeringAsync

      Mono<NetworkPeering> getRemotePeeringAsync()
      Gets the associated matching peering on the remote network if it is in the same subscription.
      Returns:
      a representation of the future computation of this call.
    • state

      Gets the state of the peering between the two networks.
      Returns:
      the state of the peering between the two networks
    • gatewayUse

      Gets the type of gateway use enabled for this network.
      Returns:
      the type of gateway use enabled for this network
    • isTrafficForwardingFromRemoteNetworkAllowed

      boolean isTrafficForwardingFromRemoteNetworkAllowed()
      Checks whether traffic forwarding from the remote network is allowed into this network.
      Returns:
      true if traffic forwarding from the remote network is allowed into this network
    • isSameSubscription

      boolean isSameSubscription()
      Checks whether the peered networks are in the same subscription.
      Returns:
      true if the peered networks are in the same subscription, otherwise false