public final class EffectiveNetworkSecurityRule extends Object
| Constructor and Description |
|---|
EffectiveNetworkSecurityRule() |
| Modifier and Type | Method and Description |
|---|---|
SecurityRuleAccess |
access()
Get the access property: Whether network traffic is allowed or denied.
|
String |
destinationAddressPrefix()
Get the destinationAddressPrefix property: The destination address prefix.
|
List<String> |
destinationAddressPrefixes()
Get the destinationAddressPrefixes property: The destination address prefixes.
|
String |
destinationPortRange()
Get the destinationPortRange property: The destination port or range.
|
List<String> |
destinationPortRanges()
Get the destinationPortRanges property: The destination port ranges.
|
SecurityRuleDirection |
direction()
Get the direction property: The direction of the rule.
|
List<String> |
expandedDestinationAddressPrefix()
Get the expandedDestinationAddressPrefix property: Expanded destination address prefix.
|
List<String> |
expandedSourceAddressPrefix()
Get the expandedSourceAddressPrefix property: The expanded source address prefix.
|
String |
name()
Get the name property: The name of the security rule specified by the user (if created by the user).
|
Integer |
priority()
Get the priority property: The priority of the rule.
|
EffectiveSecurityRuleProtocol |
protocol()
Get the protocol property: The network protocol this rule applies to.
|
String |
sourceAddressPrefix()
Get the sourceAddressPrefix property: The source address prefix.
|
List<String> |
sourceAddressPrefixes()
Get the sourceAddressPrefixes property: The source address prefixes.
|
String |
sourcePortRange()
Get the sourcePortRange property: The source port or range.
|
List<String> |
sourcePortRanges()
Get the sourcePortRanges property: The source port ranges.
|
void |
validate()
Validates the instance.
|
EffectiveNetworkSecurityRule |
withAccess(SecurityRuleAccess access)
Set the access property: Whether network traffic is allowed or denied.
|
EffectiveNetworkSecurityRule |
withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destinationAddressPrefix property: The destination address prefix.
|
EffectiveNetworkSecurityRule |
withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destinationAddressPrefixes property: The destination address prefixes.
|
EffectiveNetworkSecurityRule |
withDestinationPortRange(String destinationPortRange)
Set the destinationPortRange property: The destination port or range.
|
EffectiveNetworkSecurityRule |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destinationPortRanges property: The destination port ranges.
|
EffectiveNetworkSecurityRule |
withDirection(SecurityRuleDirection direction)
Set the direction property: The direction of the rule.
|
EffectiveNetworkSecurityRule |
withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
Set the expandedDestinationAddressPrefix property: Expanded destination address prefix.
|
EffectiveNetworkSecurityRule |
withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
Set the expandedSourceAddressPrefix property: The expanded source address prefix.
|
EffectiveNetworkSecurityRule |
withName(String name)
Set the name property: The name of the security rule specified by the user (if created by the user).
|
EffectiveNetworkSecurityRule |
withPriority(Integer priority)
Set the priority property: The priority of the rule.
|
EffectiveNetworkSecurityRule |
withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the protocol property: The network protocol this rule applies to.
|
EffectiveNetworkSecurityRule |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix property: The source address prefix.
|
EffectiveNetworkSecurityRule |
withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the sourceAddressPrefixes property: The source address prefixes.
|
EffectiveNetworkSecurityRule |
withSourcePortRange(String sourcePortRange)
Set the sourcePortRange property: The source port or range.
|
EffectiveNetworkSecurityRule |
withSourcePortRanges(List<String> sourcePortRanges)
Set the sourcePortRanges property: The source port ranges.
|
public String name()
public EffectiveNetworkSecurityRule withName(String name)
name - the name value to set.public EffectiveSecurityRuleProtocol protocol()
public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)
protocol - the protocol value to set.public String sourcePortRange()
public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)
sourcePortRange - the sourcePortRange value to set.public String destinationPortRange()
public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)
destinationPortRange - the destinationPortRange value to set.public List<String> sourcePortRanges()
public EffectiveNetworkSecurityRule withSourcePortRanges(List<String> sourcePortRanges)
sourcePortRanges - the sourcePortRanges value to set.public List<String> destinationPortRanges()
public EffectiveNetworkSecurityRule withDestinationPortRanges(List<String> destinationPortRanges)
destinationPortRanges - the destinationPortRanges value to set.public String sourceAddressPrefix()
public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)
sourceAddressPrefix - the sourceAddressPrefix value to set.public String destinationAddressPrefix()
public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)
destinationAddressPrefix - the destinationAddressPrefix value to set.public List<String> sourceAddressPrefixes()
public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
sourceAddressPrefixes - the sourceAddressPrefixes value to set.public List<String> destinationAddressPrefixes()
public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
destinationAddressPrefixes - the destinationAddressPrefixes value to set.public List<String> expandedSourceAddressPrefix()
public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
expandedSourceAddressPrefix - the expandedSourceAddressPrefix value to set.public List<String> expandedDestinationAddressPrefix()
public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
expandedDestinationAddressPrefix - the expandedDestinationAddressPrefix value to set.public SecurityRuleAccess access()
public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)
access - the access value to set.public Integer priority()
public EffectiveNetworkSecurityRule withPriority(Integer priority)
priority - the priority value to set.public SecurityRuleDirection direction()
public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)
direction - the direction value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.