NetworkInterface.DefinitionStages.WithNetworkSecurityGroup Interface

public static interface NetworkInterface.DefinitionStages.WithNetworkSecurityGroup

The stage of the network interface definition allowing to associate a network security group.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withExistingNetworkSecurityGroup(NetworkSecurityGroup networkSecurityGroup)

Associates an existing network security group with the network interface.

abstract WithCreate withNewNetworkSecurityGroup(Creatable<NetworkSecurityGroup> creatable)

Create a new network security group to associate with network interface, based on the provided definition.

Method Details

withExistingNetworkSecurityGroup

public abstract NetworkInterface.DefinitionStages.WithCreate withExistingNetworkSecurityGroup(NetworkSecurityGroup networkSecurityGroup)

Associates an existing network security group with the network interface.

Parameters:

networkSecurityGroup - an existing network security group

Returns:

the next stage of the definition

withNewNetworkSecurityGroup

public abstract NetworkInterface.DefinitionStages.WithCreate withNewNetworkSecurityGroup(Creatable creatable)

Create a new network security group to associate with network interface, based on the provided definition.

Parameters:

creatable - a creatable definition for a new network security group

Returns:

the next stage of the definition

Applies to