EffectiveNetworkSecurityRule Class

  • java.lang.Object
    • com.microsoft.azure.management.network.EffectiveNetworkSecurityRule

public class EffectiveNetworkSecurityRule

Effective network security rules.

Constructor Summary

Constructor Description
EffectiveNetworkSecurityRule()

Method Summary

Modifier and Type Method and Description
SecurityRuleAccess access()

Get whether network traffic is allowed or denied.

java.lang.String destinationAddressPrefix()

Get the destination address prefix.

java.util.List<java.lang.String> destinationAddressPrefixes()

Get the destination address prefixes.

java.lang.String destinationPortRange()

Get the destination port or range.

java.util.List<java.lang.String> destinationPortRanges()

Get the destination port ranges.

SecurityRuleDirection direction()

Get the direction of the rule.

java.util.List<java.lang.String> expandedDestinationAddressPrefix()

Get expanded destination address prefix.

java.util.List<java.lang.String> expandedSourceAddressPrefix()

Get the expanded source address prefix.

java.lang.String name()

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

java.lang.Integer priority()

Get the priority of the rule.

EffectiveSecurityRuleProtocol protocol()

Get the network protocol this rule applies to.

java.lang.String sourceAddressPrefix()

Get the source address prefix.

java.util.List<java.lang.String> sourceAddressPrefixes()

Get the source address prefixes.

java.lang.String sourcePortRange()

Get the source port or range.

java.util.List<java.lang.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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

EffectiveNetworkSecurityRule

public EffectiveNetworkSecurityRule()

Method Details

access

public SecurityRuleAccess access()

Get whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'.

Returns:

the access value

destinationAddressPrefix

public String destinationAddressPrefix()

Get the destination address prefix.

Returns:

the destinationAddressPrefix value

destinationAddressPrefixes

public List destinationAddressPrefixes()

Get 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 destination port or range.

Returns:

the destinationPortRange value

destinationPortRanges

public List destinationPortRanges()

Get 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 of the rule. Possible values include: 'Inbound', 'Outbound'.

Returns:

the direction value

expandedDestinationAddressPrefix

public List expandedDestinationAddressPrefix()

Get expanded destination address prefix.

Returns:

the expandedDestinationAddressPrefix value

expandedSourceAddressPrefix

public List expandedSourceAddressPrefix()

Get the expanded source address prefix.

Returns:

the expandedSourceAddressPrefix value

name

public String name()

Get 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 of the rule.

Returns:

the priority value

protocol

public EffectiveSecurityRuleProtocol protocol()

Get the network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'All'.

Returns:

the protocol value

sourceAddressPrefix

public String sourceAddressPrefix()

Get the source address prefix.

Returns:

the sourceAddressPrefix value

sourceAddressPrefixes

public List sourceAddressPrefixes()

Get 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 source port or range.

Returns:

the sourcePortRange value

sourcePortRanges

public List sourcePortRanges()

Get 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

withAccess

public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)

Set whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'.

Parameters:

access - the access value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withDestinationAddressPrefix

public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)

Set the destination address prefix.

Parameters:

destinationAddressPrefix - the destinationAddressPrefix value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withDestinationAddressPrefixes

public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List destinationAddressPrefixes)

Set the destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

Parameters:

destinationAddressPrefixes - the destinationAddressPrefixes value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withDestinationPortRange

public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)

Set the destination port or range.

Parameters:

destinationPortRange - the destinationPortRange value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withDestinationPortRanges

public EffectiveNetworkSecurityRule withDestinationPortRanges(List destinationPortRanges)

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

destinationPortRanges - the destinationPortRanges value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withDirection

public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)

Set the direction of the rule. Possible values include: 'Inbound', 'Outbound'.

Parameters:

direction - the direction value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withExpandedDestinationAddressPrefix

public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List expandedDestinationAddressPrefix)

Set expanded destination address prefix.

Parameters:

expandedDestinationAddressPrefix - the expandedDestinationAddressPrefix value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withExpandedSourceAddressPrefix

public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List expandedSourceAddressPrefix)

Set the expanded source address prefix.

Parameters:

expandedSourceAddressPrefix - the expandedSourceAddressPrefix value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withName

public EffectiveNetworkSecurityRule withName(String name)

Set the name of the security rule specified by the user (if created by the user).

Parameters:

name - the name value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withPriority

public EffectiveNetworkSecurityRule withPriority(Integer priority)

Set the priority of the rule.

Parameters:

priority - the priority value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withProtocol

public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)

Set the network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'All'.

Parameters:

protocol - the protocol value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withSourceAddressPrefix

public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)

Set the source address prefix.

Parameters:

sourceAddressPrefix - the sourceAddressPrefix value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withSourceAddressPrefixes

public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List sourceAddressPrefixes)

Set the source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

Parameters:

sourceAddressPrefixes - the sourceAddressPrefixes value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withSourcePortRange

public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)

Set the source port or range.

Parameters:

sourcePortRange - the sourcePortRange value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

withSourcePortRanges

public EffectiveNetworkSecurityRule withSourcePortRanges(List sourcePortRanges)

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

sourcePortRanges - the sourcePortRanges value to set

Returns:

the EffectiveNetworkSecurityRule object itself.

Applies to