Interface Subnet.UpdateDefinitionStages.WithNetworkSecurityGroup<ParentT>

Type Parameters:
ParentT - the stage of the parent definition to return to after attaching this definition
All Known Subinterfaces:
Subnet.UpdateDefinition<ParentT>, Subnet.UpdateDefinitionStages.WithAttach<ParentT>
Enclosing interface:
Subnet.UpdateDefinitionStages

public static interface Subnet.UpdateDefinitionStages.WithNetworkSecurityGroup<ParentT>
The stage of the subnet definition allowing to specify the network security group to assign to the subnet.
  • Method Details

    • withExistingNetworkSecurityGroup

      Subnet.UpdateDefinitionStages.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

      Assigns an existing network security group to this subnet.
      Parameters:
      nsg - the network security group to assign
      Returns:
      the next stage of the definition