Network.UpdateStages.WithSubnet Interface

public static interface Network.UpdateStages.WithSubnet

The stage of the virtual network update allowing to add or remove subnets.

Method Summary

Modifier and Type Method and Description
abstract Blank<Update> defineSubnet(String name)

Begins the definition of a new subnet to be added to this virtual network.

abstract Update updateSubnet(String name)

Begins the description of an update of an existing subnet of this network.

abstract Update withSubnet(String name, String cidr)

Explicitly adds a subnet to the virtual network.

abstract Update withSubnets(Map<String,String> nameCidrPairs)

Explicitly defines all the subnets in the virtual network based on the provided map.

abstract Update withoutSubnet(String name)

Removes a subnet from the virtual network.

Method Details

defineSubnet

public abstract Subnet.UpdateDefinitionStages.Blank defineSubnet(String name)

Begins the definition of a new subnet to be added to this virtual network.

Parameters:

name - the name of the new subnet

Returns:

the first stage of the new subnet definition

updateSubnet

public abstract Subnet.Update updateSubnet(String name)

Begins the description of an update of an existing subnet of this network.

Parameters:

name - the name of an existing subnet

Returns:

the first stage of the subnet update description

withSubnet

public abstract Network.Update withSubnet(String name, String cidr)

Explicitly adds a subnet to the virtual network.

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 virtual network update

withSubnets

public abstract Network.Update withSubnets(Map nameCidrPairs)

Explicitly defines all the subnets in the virtual network based on the provided map.

This replaces any previously existing subnets.

Parameters:

nameCidrPairs - a Map of CIDR addresses for the subnets, indexed by the name of each subnet to be added

Returns:

the next stage of the virtual network update

withoutSubnet

public abstract Network.Update withoutSubnet(String name)

Removes a subnet from the virtual network.

Parameters:

name - name of the subnet to remove

Returns:

the next stage of the virtual network update

Applies to