Interface Subnet.DefinitionStages.WithNetworkSecurityGroup<ParentT>
-
- Type Parameters:
ParentT
- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
Subnet.Definition<ParentT>
,Subnet.DefinitionStages.WithAttach<ParentT>
- Enclosing interface:
- Subnet.DefinitionStages
public static interface Subnet.DefinitionStages.WithNetworkSecurityGroup<ParentT>
The stage of the subnet definition allowing to specify the network security group to assign to the subnet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subnet.DefinitionStages.WithAttach<ParentT>
withExistingNetworkSecurityGroup(NetworkSecurityGroup nsg)
Assigns an existing network security group to this subnet.Subnet.DefinitionStages.WithAttach<ParentT>
withExistingNetworkSecurityGroup(String resourceId)
Assigns an existing network security group to this subnet.
-
-
-
Method Detail
-
withExistingNetworkSecurityGroup
Subnet.DefinitionStages.WithAttach<ParentT> 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
-
withExistingNetworkSecurityGroup
Subnet.DefinitionStages.WithAttach<ParentT> 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
-
-