NetworkSecurityRule.UpdateDefinitionStages.WithDestinationPort<ParentT> Interface

Type Parameters

ParentT

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

public static interface NetworkSecurityRule.UpdateDefinitionStages.WithDestinationPort

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

Method Summary

Modifier and Type Method and Description
abstract WithProtocol<ParentT> toAnyPort()

Makes this rule apply to any destination port.

abstract WithProtocol<ParentT> toPort(int port)

Specifies the destination port to which this rule applies.

abstract WithProtocol<ParentT> toPortRange(int from, int to)

Specifies the destination port range to which this rule applies.

abstract WithProtocol<ParentT> toPortRanges(String[] ranges)

Specifies the destination port ranges to which this rule applies.

Method Details

toAnyPort

public abstract NetworkSecurityRule.UpdateDefinitionStages.WithProtocol toAnyPort()

Makes this rule apply to any destination port.

Returns:

the next stage of the definition

toPort

public abstract NetworkSecurityRule.UpdateDefinitionStages.WithProtocol 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 abstract NetworkSecurityRule.UpdateDefinitionStages.WithProtocol 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

toPortRanges

public abstract NetworkSecurityRule.UpdateDefinitionStages.WithProtocol toPortRanges(String[] ranges)

Specifies the destination port ranges to which this rule applies.

Parameters:

ranges - the destination port ranges

Returns:

the next stage of the definition

Applies to