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 SecurityRuleAccessaccess()Get the access value.StringdestinationAddressPrefix()Get the destinationAddressPrefix value.List<String>destinationAddressPrefixes()Get the destinationAddressPrefixes value.StringdestinationPortRange()Get the destinationPortRange value.List<String>destinationPortRanges()Get the destinationPortRanges value.SecurityRuleDirectiondirection()Get the direction value.List<String>expandedDestinationAddressPrefix()Get the expandedDestinationAddressPrefix value.List<String>expandedSourceAddressPrefix()Get the expandedSourceAddressPrefix value.Stringname()Get the name value.Integerpriority()Get the priority value.EffectiveSecurityRuleProtocolprotocol()Get the protocol value.StringsourceAddressPrefix()Get the sourceAddressPrefix value.List<String>sourceAddressPrefixes()Get the sourceAddressPrefixes value.StringsourcePortRange()Get the sourcePortRange value.List<String>sourcePortRanges()Get the sourcePortRanges value.EffectiveNetworkSecurityRulewithAccess(SecurityRuleAccess access)Set the access value.EffectiveNetworkSecurityRulewithDestinationAddressPrefix(String destinationAddressPrefix)Set the destinationAddressPrefix value.EffectiveNetworkSecurityRulewithDestinationAddressPrefixes(List<String> destinationAddressPrefixes)Set the destinationAddressPrefixes value.EffectiveNetworkSecurityRulewithDestinationPortRange(String destinationPortRange)Set the destinationPortRange value.EffectiveNetworkSecurityRulewithDestinationPortRanges(List<String> destinationPortRanges)Set the destinationPortRanges value.EffectiveNetworkSecurityRulewithDirection(SecurityRuleDirection direction)Set the direction value.EffectiveNetworkSecurityRulewithExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)Set the expandedDestinationAddressPrefix value.EffectiveNetworkSecurityRulewithExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)Set the expandedSourceAddressPrefix value.EffectiveNetworkSecurityRulewithName(String name)Set the name value.EffectiveNetworkSecurityRulewithPriority(Integer priority)Set the priority value.EffectiveNetworkSecurityRulewithProtocol(EffectiveSecurityRuleProtocol protocol)Set the protocol value.EffectiveNetworkSecurityRulewithSourceAddressPrefix(String sourceAddressPrefix)Set the sourceAddressPrefix value.EffectiveNetworkSecurityRulewithSourceAddressPrefixes(List<String> sourceAddressPrefixes)Set the sourceAddressPrefixes value.EffectiveNetworkSecurityRulewithSourcePortRange(String sourcePortRange)Set the sourcePortRange value.EffectiveNetworkSecurityRulewithSourcePortRanges(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.
-
-