Subnet.UpdateStages.WithNetworkSecurityGroup Interface

public static interface Subnet.UpdateStages.WithNetworkSecurityGroup

The stage of the subnet update allowing to change the network security group to assign to the subnet.

Method Summary

Modifier and Type Method and Description
abstract Update withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

Assigns an existing network security group to this subnet.

abstract Update withExistingNetworkSecurityGroup(String resourceId)

Assigns an existing network security group to this subnet.

abstract Update withoutNetworkSecurityGroup()

Removes the association of this subnet with any network security group.

Method Details

withExistingNetworkSecurityGroup

public abstract Subnet.Update withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

Assigns an existing network security group to this subnet.

Parameters:

nsg - the network security group to assign

Returns:

the next stage of the update

withExistingNetworkSecurityGroup

public abstract Subnet.Update withExistingNetworkSecurityGroup(String resourceId)

Assigns an existing network security group to this subnet.

Parameters:

resourceId - the resource ID of the network security group

Returns:

the next stage of the update

withoutNetworkSecurityGroup

public abstract Subnet.Update withoutNetworkSecurityGroup()

Removes the association of this subnet with any network security group.

Returns:

the next stage of the update

Applies to