NetworkSecurityRule.UpdateStages.WithDestinationAddressOrSecurityGroup Interface
public static interface NetworkSecurityRule.UpdateStages.WithDestinationAddressOrSecurityGroup
The stage of the network rule description allowing the destination address to be specified. Note: network security rule must specify a non empty value for exactly one of: DestinationAddressPrefixes, DestinationAddressPrefix, DestinationApplicationSecurityGroups.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Update |
toAddress(String cidr)
Specifies the traffic destination address range to which this rule applies. |
abstract Update |
toAddresses(String[] addresses)
Specifies the traffic destination address prefixes to which this rule applies. |
abstract Update |
toAnyAddress()
Makes the rule apply to any traffic destination address. |
abstract Update |
withDestinationApplicationSecurityGroup(String id)
Sets the application security group specified as destination. |
Method Details
toAddress
public abstract NetworkSecurityRule.Update toAddress(String cidr)
Specifies the traffic destination address range to which this rule applies.
Parameters:
Returns:
toAddresses
public abstract NetworkSecurityRule.Update toAddresses(String[] addresses)
Specifies the traffic destination address prefixes to which this rule applies.
Parameters:
Returns:
toAnyAddress
public abstract NetworkSecurityRule.Update toAnyAddress()
Makes the rule apply to any traffic destination address.
Returns:
withDestinationApplicationSecurityGroup
public abstract NetworkSecurityRule.Update withDestinationApplicationSecurityGroup(String id)
Sets the application security group specified as destination.
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