public static interface Network.DefinitionStages.WithSubnet
Modifier and Type | Method and Description |
---|---|
Subnet.DefinitionStages.Blank<Network.DefinitionStages.WithCreateAndSubnet> |
defineSubnet(String name)
Begins the definition of a new subnet to add to the virtual network.
|
Network.DefinitionStages.WithCreateAndSubnet |
withSubnet(String name,
String cidr)
Explicitly adds a subnet to the virtual network.
|
Network.DefinitionStages.WithCreateAndSubnet |
withSubnets(Map<String,String> nameCidrPairs)
Explicitly defines subnets in the virtual network based on the provided map.
|
Network.DefinitionStages.WithCreateAndSubnet withSubnet(String name, String cidr)
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.
name
- the name to assign to the subnetcidr
- the address space of the subnet, within the address space of the network, using the CIDR notationNetwork.DefinitionStages.WithCreateAndSubnet withSubnets(Map<String,String> nameCidrPairs)
nameCidrPairs
- a Map
of CIDR addresses for the subnets, indexed by the name of each subnet to be definedSubnet.DefinitionStages.Blank<Network.DefinitionStages.WithCreateAndSubnet> defineSubnet(String name)
The definition must be completed with a call to Attachable.InDefinition.attach()
name
- the name of the subnetCopyright © 2019. All rights reserved.