NetworkSecurityRule.UpdateDefinitionStages.WithSourcePort<ParentT> Interface

Type Parameters

ParentT

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

public interface WithSourcePort

The stage of the network rule definition allowing the source port(s) to be specified.

Method Summary

Modifier and Type Method and Description
NetworkSecurityRule.UpdateDefinitionStages.WithDestinationAddress<ParentT> fromAnyPort()

Makes this rule apply to any source port.

NetworkSecurityRule.UpdateDefinitionStages.WithDestinationAddress<ParentT> fromPort(int port)

Specifies the source port to which this rule applies.

NetworkSecurityRule.UpdateDefinitionStages.WithDestinationAddress<ParentT> fromPortRange(int from, int to)

Specifies the source port range to which this rule applies.

Method Details

fromAnyPort

public WithDestinationAddress fromAnyPort()

Makes this rule apply to any source port.

Returns:

the next stage of the definition

fromPort

public WithDestinationAddress fromPort(int port)

Specifies the source port to which this rule applies.

Parameters:

port - the source port number

Returns:

the next stage of the definition

fromPortRange

public WithDestinationAddress fromPortRange(int from, int to)

Specifies the source port range to which this rule applies.

Parameters:

from - the starting port number
to - the ending port number

Returns:

the next stage of the definition

Applies to