Subnet.UpdateDefinitionStages.WithNetworkSecurityGroup<ParentT> Interface

Type Parameters

ParentT

the stage of the parent definition to return to after attaching this definition

public static interface Subnet.UpdateDefinitionStages.WithNetworkSecurityGroup

The stage of the subnet definition allowing to specify the network security group to assign to the subnet.

Method Summary

Modifier and Type Method and Description
abstract WithAttach<ParentT> withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)

Assigns an existing network security group to this subnet.

abstract WithAttach<ParentT> withExistingNetworkSecurityGroup(String resourceId)

Assigns an existing network security group to this subnet.

Method Details

withExistingNetworkSecurityGroup

public abstract Subnet.UpdateDefinitionStages.WithAttach 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 definition

withExistingNetworkSecurityGroup

public abstract Subnet.UpdateDefinitionStages.WithAttach 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 definition

Applies to