Interface Network.DefinitionStages.WithSubnet

All Known Subinterfaces:
Network.Definition, Network.DefinitionStages.WithCreateAndSubnet
Enclosing interface:
Network.DefinitionStages

public static interface Network.DefinitionStages.WithSubnet
The stage of the virtual network definition allowing to add subnets.
  • Method Details

    • withSubnet

      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:
      name - the name to assign to the subnet
      cidr - the address space of the subnet, within the address space of the network, using the CIDR notation
      Returns:
      the next stage of the definition
    • withSubnets

      Explicitly defines subnets in the virtual network based on the provided map.
      Parameters:
      nameCidrPairs - a Map of CIDR addresses for the subnets, indexed by the name of each subnet to be defined
      Returns:
      the next stage of the definition
    • defineSubnet

      Begins the definition of a new subnet to add to the virtual network.

      The definition must be completed with a call to Attachable.InDefinition.attach()

      Parameters:
      name - the name of the subnet
      Returns:
      the first stage of the new subnet definition