public class EffectiveNetworkSecurityRule extends Object
| Constructor and Description |
|---|
EffectiveNetworkSecurityRule() |
| Modifier and Type | Method and Description |
|---|---|
SecurityRuleAccess |
access()
Get whether network traffic is allowed or denied.
|
String |
destinationAddressPrefix()
Get the destination address prefix.
|
List<String> |
destinationAddressPrefixes()
Get the destination address prefixes.
|
String |
destinationPortRange()
Get the destination port or range.
|
List<String> |
destinationPortRanges()
Get the destination port ranges.
|
SecurityRuleDirection |
direction()
Get the direction of the rule.
|
List<String> |
expandedDestinationAddressPrefix()
Get expanded destination address prefix.
|
List<String> |
expandedSourceAddressPrefix()
Get the expanded source address prefix.
|
String |
name()
Get the name of the security rule specified by the user (if created by the user).
|
Integer |
priority()
Get the priority of the rule.
|
EffectiveSecurityRuleProtocol |
protocol()
Get the network protocol this rule applies to.
|
String |
sourceAddressPrefix()
Get the source address prefix.
|
List<String> |
sourceAddressPrefixes()
Get the source address prefixes.
|
String |
sourcePortRange()
Get the source port or range.
|
List<String> |
sourcePortRanges()
Get the source port ranges.
|
EffectiveNetworkSecurityRule |
withAccess(SecurityRuleAccess access)
Set whether network traffic is allowed or denied.
|
EffectiveNetworkSecurityRule |
withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destination address prefix.
|
EffectiveNetworkSecurityRule |
withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destination address prefixes.
|
EffectiveNetworkSecurityRule |
withDestinationPortRange(String destinationPortRange)
Set the destination port or range.
|
EffectiveNetworkSecurityRule |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destination port ranges.
|
EffectiveNetworkSecurityRule |
withDirection(SecurityRuleDirection direction)
Set the direction of the rule.
|
EffectiveNetworkSecurityRule |
withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
Set expanded destination address prefix.
|
EffectiveNetworkSecurityRule |
withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
Set the expanded source address prefix.
|
EffectiveNetworkSecurityRule |
withName(String name)
Set the name of the security rule specified by the user (if created by the user).
|
EffectiveNetworkSecurityRule |
withPriority(Integer priority)
Set the priority of the rule.
|
EffectiveNetworkSecurityRule |
withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the network protocol this rule applies to.
|
EffectiveNetworkSecurityRule |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the source address prefix.
|
EffectiveNetworkSecurityRule |
withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the source address prefixes.
|
EffectiveNetworkSecurityRule |
withSourcePortRange(String sourcePortRange)
Set the source port or range.
|
EffectiveNetworkSecurityRule |
withSourcePortRanges(List<String> sourcePortRanges)
Set the source port ranges.
|
public String name()
public EffectiveNetworkSecurityRule withName(String name)
name - the name value to setpublic EffectiveSecurityRuleProtocol protocol()
public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)
protocol - the protocol value to setpublic String sourcePortRange()
public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)
sourcePortRange - the sourcePortRange value to setpublic String destinationPortRange()
public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)
destinationPortRange - the destinationPortRange value to setpublic List<String> sourcePortRanges()
public EffectiveNetworkSecurityRule withSourcePortRanges(List<String> sourcePortRanges)
sourcePortRanges - the sourcePortRanges value to setpublic List<String> destinationPortRanges()
public EffectiveNetworkSecurityRule withDestinationPortRanges(List<String> destinationPortRanges)
destinationPortRanges - the destinationPortRanges value to setpublic String sourceAddressPrefix()
public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)
sourceAddressPrefix - the sourceAddressPrefix value to setpublic String destinationAddressPrefix()
public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)
destinationAddressPrefix - the destinationAddressPrefix value to setpublic List<String> sourceAddressPrefixes()
public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
sourceAddressPrefixes - the sourceAddressPrefixes value to setpublic List<String> destinationAddressPrefixes()
public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
destinationAddressPrefixes - the destinationAddressPrefixes value to setpublic List<String> expandedSourceAddressPrefix()
public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
expandedSourceAddressPrefix - the expandedSourceAddressPrefix value to setpublic List<String> expandedDestinationAddressPrefix()
public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
expandedDestinationAddressPrefix - the expandedDestinationAddressPrefix value to setpublic SecurityRuleAccess access()
public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)
access - the access value to setpublic Integer priority()
public EffectiveNetworkSecurityRule withPriority(Integer priority)
priority - the priority value to setpublic SecurityRuleDirection direction()
public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)
direction - the direction value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/