EffectiveNetworkSecurityRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. EffectiveNetworkSecurityRule
- com.
Implements
public final class EffectiveNetworkSecurityRule
implements JsonSerializable<EffectiveNetworkSecurityRule>
Effective network security rules.
Constructor Summary
Constructor | Description |
---|---|
EffectiveNetworkSecurityRule() |
Creates an instance of Effective |
Method Summary
Modifier and Type | Method and Description |
---|---|
Security |
access()
Get the access property: Whether network traffic is allowed or denied. |
String |
destinationAddressPrefix()
Get the destination |
List<String> |
destinationAddressPrefixes()
Get the destination |
String |
destinationPortRange()
Get the destination |
List<String> |
destinationPortRanges()
Get the destination |
Security |
direction()
Get the direction property: The direction of the rule. |
List<String> |
expandedDestinationAddressPrefix()
Get the expanded |
List<String> |
expandedSourceAddressPrefix()
Get the expanded |
static
Effective |
fromJson(JsonReader jsonReader)
Reads an instance of Effective |
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. |
Effective |
protocol()
Get the protocol property: The network protocol this rule applies to. |
String |
sourceAddressPrefix()
Get the source |
List<String> |
sourceAddressPrefixes()
Get the source |
String |
sourcePortRange()
Get the source |
List<String> |
sourcePortRanges()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Effective |
withAccess(SecurityRuleAccess access)
Set the access property: Whether network traffic is allowed or denied. |
Effective |
withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destination |
Effective |
withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destination |
Effective |
withDestinationPortRange(String destinationPortRange)
Set the destination |
Effective |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destination |
Effective |
withDirection(SecurityRuleDirection direction)
Set the direction property: The direction of the rule. |
Effective |
withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
Set the expanded |
Effective |
withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
Set the expanded |
Effective |
withName(String name)
Set the name property: The name of the security rule specified by the user (if created by the user). |
Effective |
withPriority(Integer priority)
Set the priority property: The priority of the rule. |
Effective |
withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the protocol property: The network protocol this rule applies to. |
Effective |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the source |
Effective |
withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the source |
Effective |
withSourcePortRange(String sourcePortRange)
Set the source |
Effective |
withSourcePortRanges(List<String> sourcePortRanges)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
EffectiveNetworkSecurityRule
public EffectiveNetworkSecurityRule()
Creates an instance of EffectiveNetworkSecurityRule class.
Method Details
access
public SecurityRuleAccess access()
Get the access property: Whether network traffic is allowed or denied.
Returns:
destinationAddressPrefix
public String destinationAddressPrefix()
Get the destinationAddressPrefix property: The destination address prefix.
Returns:
destinationAddressPrefixes
public List
Get the destinationAddressPrefixes property: 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 destinationPortRange property: The destination port or range.
Returns:
destinationPortRanges
public List
Get the destinationPortRanges property: 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 property: The direction of the rule.
Returns:
expandedDestinationAddressPrefix
public List
Get the expandedDestinationAddressPrefix property: Expanded destination address prefix.
Returns:
expandedSourceAddressPrefix
public List
Get the expandedSourceAddressPrefix property: The expanded source address prefix.
Returns:
fromJson
public static EffectiveNetworkSecurityRule fromJson(JsonReader jsonReader)
Reads an instance of EffectiveNetworkSecurityRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the security rule specified by the user (if created by the user).
Returns:
priority
public Integer priority()
Get the priority property: The priority of the rule.
Returns:
protocol
public EffectiveSecurityRuleProtocol protocol()
Get the protocol property: The network protocol this rule applies to.
Returns:
sourceAddressPrefix
public String sourceAddressPrefix()
Get the sourceAddressPrefix property: The source address prefix.
Returns:
sourceAddressPrefixes
public List
Get the sourceAddressPrefixes property: 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 sourcePortRange property: The source port or range.
Returns:
sourcePortRanges
public List
Get the sourcePortRanges property: 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:
toJson
validate
public void validate()
Validates the instance.
withAccess
public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)
Set the access property: Whether network traffic is allowed or denied.
Parameters:
Returns:
withDestinationAddressPrefix
public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destinationAddressPrefix property: The destination address prefix.
Parameters:
Returns:
withDestinationAddressPrefixes
public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List
Set the destinationAddressPrefixes property: 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 destinationPortRange property: The destination port or range.
Parameters:
Returns:
withDestinationPortRanges
public EffectiveNetworkSecurityRule withDestinationPortRanges(List
Set the destinationPortRanges property: 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 property: The direction of the rule.
Parameters:
Returns:
withExpandedDestinationAddressPrefix
public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List
Set the expandedDestinationAddressPrefix property: Expanded destination address prefix.
Parameters:
Returns:
withExpandedSourceAddressPrefix
public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List
Set the expandedSourceAddressPrefix property: The expanded source address prefix.
Parameters:
Returns:
withName
public EffectiveNetworkSecurityRule withName(String name)
Set the name property: 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 property: The priority of the rule.
Parameters:
Returns:
withProtocol
public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the protocol property: The network protocol this rule applies to.
Parameters:
Returns:
withSourceAddressPrefix
public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix property: The source address prefix.
Parameters:
Returns:
withSourceAddressPrefixes
public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List
Set the sourceAddressPrefixes property: 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 sourcePortRange property: The source port or range.
Parameters:
Returns:
withSourcePortRanges
public EffectiveNetworkSecurityRule withSourcePortRanges(List
Set the sourcePortRanges property: 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:
Applies to
Azure SDK for Java