Interface NetworkSecurityRule.UpdateStages.WithDestinationAddressOrSecurityGroup
- All Known Subinterfaces:
NetworkSecurityRule.Update
- Enclosing interface:
- NetworkSecurityRule.UpdateStages
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 TypeMethodDescriptionSpecifies the traffic destination address range to which this rule applies.toAddresses(String... addresses) Specifies the traffic destination address prefixes to which this rule applies.Makes the rule apply to any traffic destination address.Sets the application security group specified as destination.Removes the application security group specified as destination.
-
Method Details
-
toAddress
Specifies the traffic destination address range to which this rule applies.- Parameters:
cidr- an IP address range expressed in the CIDR notation- Returns:
- the next stage of the update
-
toAnyAddress
NetworkSecurityRule.Update toAnyAddress()Makes the rule apply to any traffic destination address.- Returns:
- the next stage of the update
-
toAddresses
Specifies the traffic destination address prefixes to which this rule applies.- Parameters:
addresses- IP address prefixes in CIDR notation or IP addresses- Returns:
- the next stage of the definition
-
withDestinationApplicationSecurityGroup
Sets the application security group specified as destination.- Parameters:
id- application security group id- Returns:
- the next stage of the update
-
withoutDestinationApplicationSecurityGroup
Removes the application security group specified as destination.- Parameters:
id- application security group id- Returns:
- the next stage of the definition
-