EffectiveNetworkSecurityRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.EffectiveNetworkSecurityRule

Implements

public final class EffectiveNetworkSecurityRule
implements JsonSerializable<EffectiveNetworkSecurityRule>

Effective network security rules.

Method Summary

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.

static EffectiveNetworkSecurityRule fromJson(JsonReader jsonReader)

Reads an instance of EffectiveNetworkSecurityRule from the JsonReader.

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.

JsonWriter 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:

the access value.

destinationAddressPrefix

public String destinationAddressPrefix()

Get the destinationAddressPrefix property: The destination address prefix.

Returns:

the destinationAddressPrefix value.

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:

the destinationAddressPrefixes value.

destinationPortRange

public String destinationPortRange()

Get the destinationPortRange property: The destination port or range.

Returns:

the destinationPortRange value.

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:

the destinationPortRanges value.

direction

public SecurityRuleDirection direction()

Get the direction property: The direction of the rule.

Returns:

the direction value.

expandedDestinationAddressPrefix

public List<String> expandedDestinationAddressPrefix()

Get the expandedDestinationAddressPrefix property: Expanded destination address prefix.

Returns:

the expandedDestinationAddressPrefix value.

expandedSourceAddressPrefix

public List<String> expandedSourceAddressPrefix()

Get the expandedSourceAddressPrefix property: The expanded source address prefix.

Returns:

the expandedSourceAddressPrefix value.

fromJson

public static EffectiveNetworkSecurityRule fromJson(JsonReader jsonReader)

Reads an instance of EffectiveNetworkSecurityRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EffectiveNetworkSecurityRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EffectiveNetworkSecurityRule.

name

public String name()

Get the name property: The name of the security rule specified by the user (if created by the user).

Returns:

the name value.

priority

public Integer priority()

Get the priority property: The priority of the rule.

Returns:

the priority value.

protocol

public EffectiveSecurityRuleProtocol protocol()

Get the protocol property: The network protocol this rule applies to.

Returns:

the protocol value.

sourceAddressPrefix

public String sourceAddressPrefix()

Get the sourceAddressPrefix property: The source address prefix.

Returns:

the sourceAddressPrefix value.

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:

the sourceAddressPrefixes value.

sourcePortRange

public String sourcePortRange()

Get the sourcePortRange property: The source port or range.

Returns:

the sourcePortRange value.

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:

the sourcePortRanges value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to