Interface NetworkSecurityRule.UpdateDefinitionStages.WithSourceAddressOrSecurityGroup<ParentT>
- Type Parameters:
ParentT- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
NetworkSecurityRule.UpdateDefinition<ParentT>
- Enclosing interface:
- NetworkSecurityRule.UpdateDefinitionStages
public static interface NetworkSecurityRule.UpdateDefinitionStages.WithSourceAddressOrSecurityGroup<ParentT>
The stage of the network rule definition allowing the source address to be specified. Note: network security
rule must specify a non empty value for exactly one of: SourceAddressPrefixes, SourceAddressPrefix,
SourceApplicationSecurityGroups.
-
Method Summary
Modifier and TypeMethodDescriptionfromAddress(String cidr) Specifies the traffic source address prefix to which this rule applies.fromAddresses(String... addresses) Specifies the traffic source address prefixes to which this rule applies.Specifies that the rule applies to any traffic source address.Sets the application security group specified as source.Sets the application security group specified as source.
-
Method Details
-
fromAddress
Specifies the traffic source address prefix to which this rule applies.- Parameters:
cidr- an IP address prefix expressed in the CIDR notation- Returns:
- the next stage of the definition
-
fromAddresses
NetworkSecurityRule.UpdateDefinitionStages.WithSourcePort<ParentT> fromAddresses(String... addresses) Specifies the traffic source 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
-
fromAnyAddress
NetworkSecurityRule.UpdateDefinitionStages.WithSourcePort<ParentT> fromAnyAddress()Specifies that the rule applies to any traffic source address.- Returns:
- the next stage of the definition
-
withSourceApplicationSecurityGroup
NetworkSecurityRule.UpdateDefinitionStages.WithSourcePort<ParentT> withSourceApplicationSecurityGroup(String id) Sets the application security group specified as source.- Parameters:
id- application security group id- Returns:
- the next stage of the update
-
withSourceApplicationSecurityGroup
NetworkSecurityRule.UpdateDefinitionStages.WithSourcePort<ParentT> withSourceApplicationSecurityGroup(String... ids) Sets the application security group specified as source.- Parameters:
ids- the collection of application security group ID- Returns:
- the next stage of the definition
-