Class NetworkRuleSet
java.lang.Object
com.azure.resourcemanager.storage.models.NetworkRuleSet
Network rule set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbypass()Get the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.Get the defaultAction property: Specifies the default action of allow or deny when no other rules match.ipRules()Get the ipRules property: Sets the IP ACL rules.Get the resourceAccessRules property: Sets the resource access rules.voidvalidate()Validates the instance.Get the virtualNetworkRules property: Sets the virtual network rules.withBypass(Bypass bypass) Set the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.withDefaultAction(DefaultAction defaultAction) Set the defaultAction property: Specifies the default action of allow or deny when no other rules match.withIpRules(List<IpRule> ipRules) Set the ipRules property: Sets the IP ACL rules.withResourceAccessRules(List<ResourceAccessRule> resourceAccessRules) Set the resourceAccessRules property: Sets the resource access rules.withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) Set the virtualNetworkRules property: Sets the virtual network rules.
-
Constructor Details
-
NetworkRuleSet
public NetworkRuleSet()Creates an instance of NetworkRuleSet class.
-
-
Method Details
-
bypass
Get the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.- Returns:
- the bypass value.
-
withBypass
Set the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.- Parameters:
bypass- the bypass value to set.- Returns:
- the NetworkRuleSet object itself.
-
resourceAccessRules
Get the resourceAccessRules property: Sets the resource access rules.- Returns:
- the resourceAccessRules value.
-
withResourceAccessRules
Set the resourceAccessRules property: Sets the resource access rules.- Parameters:
resourceAccessRules- the resourceAccessRules value to set.- Returns:
- the NetworkRuleSet object itself.
-
virtualNetworkRules
Get the virtualNetworkRules property: Sets the virtual network rules.- Returns:
- the virtualNetworkRules value.
-
withVirtualNetworkRules
Set the virtualNetworkRules property: Sets the virtual network rules.- Parameters:
virtualNetworkRules- the virtualNetworkRules value to set.- Returns:
- the NetworkRuleSet object itself.
-
ipRules
Get the ipRules property: Sets the IP ACL rules.- Returns:
- the ipRules value.
-
withIpRules
Set the ipRules property: Sets the IP ACL rules.- Parameters:
ipRules- the ipRules value to set.- Returns:
- the NetworkRuleSet object itself.
-
defaultAction
Get the defaultAction property: Specifies the default action of allow or deny when no other rules match.- Returns:
- the defaultAction value.
-
withDefaultAction
Set the defaultAction property: Specifies the default action of allow or deny when no other rules match.- Parameters:
defaultAction- the defaultAction value to set.- Returns:
- the NetworkRuleSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-