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