Network.DefinitionStages.WithSubnet Interface
public interface WithSubnet
The stage of the virtual network definition allowing to add subnets.
Method Summary
Modifier and Type | Method and Description |
---|---|
Subnet.DefinitionStages.Blank<Network. |
defineSubnet(String name)
Begins the definition of a new subnet to add to the virtual network. The definition must be completed with a call to attach() |
DefinitionStages.WithCreateAndSubnet |
withSubnet(String name, String cidr)
Explicitly adds a subnet to the virtual network. If no subnets are explicitly specified, a default subnet called "subnet1" covering the entire first address space will be created. Note this method's effect is additive, i.e. each time it is used, a new subnet is added to the network. |
DefinitionStages.WithCreateAndSubnet |
withSubnets(Map<String, String> nameCidrPairs)
Explicitly defines subnets in the virtual network based on the provided map. |
Method Details
defineSubnet
public Subnet.DefinitionStages.Blank
Begins the definition of a new subnet to add to the virtual network.
The definition must be completed with a call to attach()
Parameters:
Returns:
withSubnet
public DefinitionStages.WithCreateAndSubnet withSubnet(String name, String cidr)
Explicitly adds a subnet to the virtual network.
If no subnets are explicitly specified, a default subnet called "subnet1" covering the entire first address space will be created.
Note this method's effect is additive, i.e. each time it is used, a new subnet is added to the network.
Parameters:
Returns:
withSubnets
public DefinitionStages.WithCreateAndSubnet withSubnets(Map
Explicitly defines subnets in the virtual network based on the provided map.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for