NetworkSecurityRule.UpdateStages.WithSourcePort Interface
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 Type | Method and Description |
---|---|
abstract Update |
fromAnyPort()
Makes this rule apply to any source port. |
abstract Update |
fromPort(int port)
Specifies the source port to which this rule applies. |
abstract Update |
fromPortRange(int from, int to)
Specifies the source port range to which this rule applies. |
abstract Update |
fromPortRanges(String[] ranges)
Specifies the source port ranges to which this rule applies. |
Method Details
fromAnyPort
public abstract NetworkSecurityRule.Update fromAnyPort()
Makes this rule apply to any source port.
Returns:
fromPort
public abstract NetworkSecurityRule.Update fromPort(int port)
Specifies the source port to which this rule applies.
Parameters:
Returns:
fromPortRange
public abstract NetworkSecurityRule.Update fromPortRange(int from, int to)
Specifies the source port range to which this rule applies.
Parameters:
Returns:
fromPortRanges
public abstract NetworkSecurityRule.Update fromPortRanges(String[] ranges)
Specifies the source port ranges to which this rule applies.
Parameters:
Returns:
Applies to
Azure SDK for Java