EffectiveNetworkSecurityRule Class
- java.
lang. Object - com.
microsoft. azure. management. network. EffectiveNetworkSecurityRule
- com.
public class EffectiveNetworkSecurityRule
Effective network security rules.
Constructor | Description | |
---|---|---|
Effective |
EffectiveNetworkSecurityRule
public EffectiveNetworkSecurityRule()
access
public SecurityRuleAccess access()
Get whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'.
Returns:
destinationAddressPrefix
public String destinationAddressPrefix()
Get the destination address prefix.
Returns:
destinationAddressPrefixes
public List
Get the destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
Returns:
destinationPortRange
public String destinationPortRange()
Get the destination port or range.
Returns:
destinationPortRanges
public List
Get the destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).
Returns:
direction
public SecurityRuleDirection direction()
Get the direction of the rule. Possible values include: 'Inbound', 'Outbound'.
Returns:
expandedDestinationAddressPrefix
public List
Get expanded destination address prefix.
Returns:
expandedSourceAddressPrefix
public List
Get the expanded source address prefix.
Returns:
name
public String name()
Get the name of the security rule specified by the user (if created by the user).
Returns:
priority
public Integer priority()
Get the priority of the rule.
Returns:
protocol
public EffectiveSecurityRuleProtocol protocol()
Get the network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'All'.
Returns:
sourceAddressPrefix
public String sourceAddressPrefix()
Get the source address prefix.
Returns:
sourceAddressPrefixes
public List
Get the source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
Returns:
sourcePortRange
public String sourcePortRange()
Get the source port or range.
Returns:
sourcePortRanges
public List
Get the source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).
Returns:
withAccess
public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)
Set whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'.
Parameters:
Returns:
withDestinationAddressPrefix
public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destination address prefix.
Parameters:
Returns:
withDestinationAddressPrefixes
public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List
Set the destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
Parameters:
Returns:
withDestinationPortRange
public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)
Set the destination port or range.
Parameters:
Returns:
withDestinationPortRanges
public EffectiveNetworkSecurityRule withDestinationPortRanges(List
Set the destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).
Parameters:
Returns:
withDirection
public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)
Set the direction of the rule. Possible values include: 'Inbound', 'Outbound'.
Parameters:
Returns:
withExpandedDestinationAddressPrefix
public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List
Set expanded destination address prefix.
Parameters:
Returns:
withExpandedSourceAddressPrefix
public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List
Set the expanded source address prefix.
Parameters:
Returns:
withName
public EffectiveNetworkSecurityRule withName(String name)
Set the name of the security rule specified by the user (if created by the user).
Parameters:
Returns:
withPriority
public EffectiveNetworkSecurityRule withPriority(Integer priority)
Set the priority of the rule.
Parameters:
Returns:
withProtocol
public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'All'.
Parameters:
Returns:
withSourceAddressPrefix
public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)
Set the source address prefix.
Parameters:
Returns:
withSourceAddressPrefixes
public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List
Set the source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
Parameters:
Returns:
withSourcePortRange
public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)
Set the source port or range.
Parameters:
Returns:
withSourcePortRanges
public EffectiveNetworkSecurityRule withSourcePortRanges(List
Set the source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).
Parameters:
Returns: