EffectiveNetworkSecurityRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. EffectiveNetworkSecurityRule
- com.
Implements
public final class EffectiveNetworkSecurityRule
implements JsonSerializable<EffectiveNetworkSecurityRule>
Effective network security rules.
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. |
Methods inherited from java.lang.Object
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<String> destinationAddressPrefixes()
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<String> destinationPortRanges()
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<String> expandedDestinationAddressPrefix()
Get the expandedDestinationAddressPrefix property: Expanded destination address prefix.
Returns:
expandedSourceAddressPrefix
public List<String> expandedSourceAddressPrefix()
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<String> sourceAddressPrefixes()
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<String> sourcePortRanges()
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.