NetworkSecurityRule.UpdateStages.WithDestinationPort Interface

public interface WithDestinationPort

The stage of the network rule description allowing the destination port(s) to be specified.

Method Summary

Modifier and Type Method and Description
NetworkSecurityRule.Update toAnyPort()

Makes this rule apply to any destination port.

NetworkSecurityRule.Update toPort(int port)

Specifies the destination port to which this rule applies.

NetworkSecurityRule.Update toPortRange(int from, int to)

Specifies the destination port range to which this rule applies.

Method Details

toAnyPort

public Update toAnyPort()

Makes this rule apply to any destination port.

Returns:

the next stage of the definition

toPort

public Update toPort(int port)

Specifies the destination port to which this rule applies.

Parameters:

port - the destination port number

Returns:

the next stage of the definition

toPortRange

public Update toPortRange(int from, int to)

Specifies the destination 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