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 |
---|---|
Network |
toAnyPort()
Makes this rule apply to any destination port. |
Network |
toPort(int port)
Specifies the destination port to which this rule applies. |
Network |
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:
toPort
public Update toPort(int port)
Specifies the destination port to which this rule applies.
Parameters:
Returns:
toPortRange
public Update toPortRange(int from, int to)
Specifies the destination port range to which this rule applies.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for