Interface NetworkSecurityRule.UpdateStages.WithDestinationPort
- All Known Subinterfaces:
NetworkSecurityRule.Update
- Enclosing interface:
NetworkSecurityRule.UpdateStages
public static interface NetworkSecurityRule.UpdateStages.WithDestinationPort
The stage of the network rule description allowing the destination port(s) to be specified.
-
Method Summary
Modifier and TypeMethodDescriptionMakes this rule apply to any destination port.toPort(int port) Specifies the destination port to which this rule applies.toPortRange(int from, int to) Specifies the destination port range to which this rule applies.toPortRanges(String... ranges) Specifies the destination port ranges to which this rule applies.
-
Method Details
-
toPort
Specifies the destination port to which this rule applies.- Parameters:
port- the destination port number- Returns:
- the next stage of the definition
-
toAnyPort
NetworkSecurityRule.Update toAnyPort()Makes this rule apply to any destination port.- Returns:
- the next stage of the definition
-
toPortRange
Specifies the destination port range to which this rule applies.- Parameters:
from- the starting port numberto- the ending port number- Returns:
- the next stage of the definition
-
toPortRanges
Specifies the destination port ranges to which this rule applies.- Parameters:
ranges- the destination port ranges- Returns:
- the next stage of the definition
-