Class EffectiveNetworkSecurityRule
- java.lang.Object
-
- com.microsoft.azure.management.network.EffectiveNetworkSecurityRule
-
public class EffectiveNetworkSecurityRule extends Object
Effective network security rules.
-
-
Constructor Summary
Constructors Constructor Description EffectiveNetworkSecurityRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityRuleAccess
access()
Get the access value.String
destinationAddressPrefix()
Get the destinationAddressPrefix value.List<String>
destinationAddressPrefixes()
Get the destinationAddressPrefixes value.String
destinationPortRange()
Get the destinationPortRange value.List<String>
destinationPortRanges()
Get the destinationPortRanges value.SecurityRuleDirection
direction()
Get the direction value.List<String>
expandedDestinationAddressPrefix()
Get the expandedDestinationAddressPrefix value.List<String>
expandedSourceAddressPrefix()
Get the expandedSourceAddressPrefix value.String
name()
Get the name value.Integer
priority()
Get the priority value.EffectiveSecurityRuleProtocol
protocol()
Get the protocol value.String
sourceAddressPrefix()
Get the sourceAddressPrefix value.List<String>
sourceAddressPrefixes()
Get the sourceAddressPrefixes value.String
sourcePortRange()
Get the sourcePortRange value.List<String>
sourcePortRanges()
Get the sourcePortRanges value.EffectiveNetworkSecurityRule
withAccess(SecurityRuleAccess access)
Set the access value.EffectiveNetworkSecurityRule
withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destinationAddressPrefix value.EffectiveNetworkSecurityRule
withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destinationAddressPrefixes value.EffectiveNetworkSecurityRule
withDestinationPortRange(String destinationPortRange)
Set the destinationPortRange value.EffectiveNetworkSecurityRule
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destinationPortRanges value.EffectiveNetworkSecurityRule
withDirection(SecurityRuleDirection direction)
Set the direction value.EffectiveNetworkSecurityRule
withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
Set the expandedDestinationAddressPrefix value.EffectiveNetworkSecurityRule
withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
Set the expandedSourceAddressPrefix value.EffectiveNetworkSecurityRule
withName(String name)
Set the name value.EffectiveNetworkSecurityRule
withPriority(Integer priority)
Set the priority value.EffectiveNetworkSecurityRule
withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the protocol value.EffectiveNetworkSecurityRule
withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix value.EffectiveNetworkSecurityRule
withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the sourceAddressPrefixes value.EffectiveNetworkSecurityRule
withSourcePortRange(String sourcePortRange)
Set the sourcePortRange value.EffectiveNetworkSecurityRule
withSourcePortRanges(List<String> sourcePortRanges)
Set the sourcePortRanges value.
-
-
-
Method Detail
-
name
public String name()
Get the name value.- Returns:
- the name value
-
withName
public EffectiveNetworkSecurityRule withName(String name)
Set the name value.- Parameters:
name
- the name value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
protocol
public EffectiveSecurityRuleProtocol protocol()
Get the protocol value.- Returns:
- the protocol value
-
withProtocol
public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)
Set the protocol value.- Parameters:
protocol
- the protocol value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
sourcePortRange
public String sourcePortRange()
Get the sourcePortRange value.- Returns:
- the sourcePortRange value
-
withSourcePortRange
public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)
Set the sourcePortRange value.- Parameters:
sourcePortRange
- the sourcePortRange value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
destinationPortRange
public String destinationPortRange()
Get the destinationPortRange value.- Returns:
- the destinationPortRange value
-
withDestinationPortRange
public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)
Set the destinationPortRange value.- Parameters:
destinationPortRange
- the destinationPortRange value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
sourcePortRanges
public List<String> sourcePortRanges()
Get the sourcePortRanges value.- Returns:
- the sourcePortRanges value
-
withSourcePortRanges
public EffectiveNetworkSecurityRule withSourcePortRanges(List<String> sourcePortRanges)
Set the sourcePortRanges value.- Parameters:
sourcePortRanges
- the sourcePortRanges value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
destinationPortRanges
public List<String> destinationPortRanges()
Get the destinationPortRanges value.- Returns:
- the destinationPortRanges value
-
withDestinationPortRanges
public EffectiveNetworkSecurityRule withDestinationPortRanges(List<String> destinationPortRanges)
Set the destinationPortRanges value.- Parameters:
destinationPortRanges
- the destinationPortRanges value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
sourceAddressPrefix
public String sourceAddressPrefix()
Get the sourceAddressPrefix value.- Returns:
- the sourceAddressPrefix value
-
withSourceAddressPrefix
public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix value.- Parameters:
sourceAddressPrefix
- the sourceAddressPrefix value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
destinationAddressPrefix
public String destinationAddressPrefix()
Get the destinationAddressPrefix value.- Returns:
- the destinationAddressPrefix value
-
withDestinationAddressPrefix
public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destinationAddressPrefix value.- Parameters:
destinationAddressPrefix
- the destinationAddressPrefix value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
sourceAddressPrefixes
public List<String> sourceAddressPrefixes()
Get the sourceAddressPrefixes value.- Returns:
- the sourceAddressPrefixes value
-
withSourceAddressPrefixes
public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the sourceAddressPrefixes value.- Parameters:
sourceAddressPrefixes
- the sourceAddressPrefixes value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
destinationAddressPrefixes
public List<String> destinationAddressPrefixes()
Get the destinationAddressPrefixes value.- Returns:
- the destinationAddressPrefixes value
-
withDestinationAddressPrefixes
public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destinationAddressPrefixes value.- Parameters:
destinationAddressPrefixes
- the destinationAddressPrefixes value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
expandedSourceAddressPrefix
public List<String> expandedSourceAddressPrefix()
Get the expandedSourceAddressPrefix value.- Returns:
- the expandedSourceAddressPrefix value
-
withExpandedSourceAddressPrefix
public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)
Set the expandedSourceAddressPrefix value.- Parameters:
expandedSourceAddressPrefix
- the expandedSourceAddressPrefix value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
expandedDestinationAddressPrefix
public List<String> expandedDestinationAddressPrefix()
Get the expandedDestinationAddressPrefix value.- Returns:
- the expandedDestinationAddressPrefix value
-
withExpandedDestinationAddressPrefix
public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)
Set the expandedDestinationAddressPrefix value.- Parameters:
expandedDestinationAddressPrefix
- the expandedDestinationAddressPrefix value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
access
public SecurityRuleAccess access()
Get the access value.- Returns:
- the access value
-
withAccess
public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)
Set the access value.- Parameters:
access
- the access value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
priority
public Integer priority()
Get the priority value.- Returns:
- the priority value
-
withPriority
public EffectiveNetworkSecurityRule withPriority(Integer priority)
Set the priority value.- Parameters:
priority
- the priority value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
direction
public SecurityRuleDirection direction()
Get the direction value.- Returns:
- the direction value
-
withDirection
public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)
Set the direction value.- Parameters:
direction
- the direction value to set- Returns:
- the EffectiveNetworkSecurityRule object itself.
-
-