NetworkPeering.DefinitionStages.WithRemoteNetwork Interface

public interface WithRemoteNetwork

The stage of a network peering definition allowing to specify the remote virtual network.

Method Summary

Modifier and Type Method and Description
NetworkPeering.DefinitionStages.WithCreate withRemoteNetwork(Network network)

Specifies the remote network to peer with.

The remote network will have the matching peering associated with it automatically.

NetworkPeering.DefinitionStages.WithCreate withRemoteNetwork(String resourceId)

Specifies the remote network to peer with.

The remote network will have the matching peering associated with it automatically.

Method Details

withRemoteNetwork

public WithCreate withRemoteNetwork(Network network)

Specifies the remote network to peer with.

The remote network will have the matching peering associated with it automatically.

Parameters:

network - an existing network

Returns:

the next stage of the definition

withRemoteNetwork

public WithCreate withRemoteNetwork(String resourceId)

Specifies the remote network to peer with.

The remote network will have the matching peering associated with it automatically.

Parameters:

resourceId - the resource ID of an existing network

Returns:

the next stage of the definition

Applies to