NetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. NetworkRuleSet
- com.
Implements
public final class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>
Network rule set.
Constructor Summary
Constructor | Description |
---|---|
NetworkRuleSet() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Bypass |
bypass()
Get the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/Azure |
Default |
defaultAction()
Get the default |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
List<Ip |
ipRules()
Get the ip |
List<Resource |
resourceAccessRules()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Virtual |
virtualNetworkRules()
Get the virtual |
Network |
withBypass(Bypass bypass)
Set the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/Azure |
Network |
withDefaultAction(DefaultAction defaultAction)
Set the default |
Network |
withIpRules(List<IpRule> ipRules)
Set the ip |
Network |
withResourceAccessRules(List<ResourceAccessRule> resourceAccessRules)
Set the resource |
Network |
withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Set the virtual |
Methods inherited from java.lang.Object
Constructor Details
NetworkRuleSet
public NetworkRuleSet()
Creates an instance of NetworkRuleSet class.
Method Details
bypass
public Bypass 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:
defaultAction
public DefaultAction defaultAction()
Get the defaultAction property: Specifies the default action of allow or deny when no other rules match.
Returns:
fromJson
public static NetworkRuleSet fromJson(JsonReader jsonReader)
Reads an instance of NetworkRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ipRules
public List
Get the ipRules property: Sets the IP ACL rules.
Returns:
resourceAccessRules
public List
Get the resourceAccessRules property: Sets the resource access rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
virtualNetworkRules
public List
Get the virtualNetworkRules property: Sets the virtual network rules.
Returns:
withBypass
public NetworkRuleSet withBypass(Bypass bypass)
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:
Returns:
withDefaultAction
public NetworkRuleSet withDefaultAction(DefaultAction defaultAction)
Set the defaultAction property: Specifies the default action of allow or deny when no other rules match.
Parameters:
Returns:
withIpRules
public NetworkRuleSet withIpRules(List
Set the ipRules property: Sets the IP ACL rules.
Parameters:
Returns:
withResourceAccessRules
public NetworkRuleSet withResourceAccessRules(List
Set the resourceAccessRules property: Sets the resource access rules.
Parameters:
Returns:
withVirtualNetworkRules
public NetworkRuleSet withVirtualNetworkRules(List
Set the virtualNetworkRules property: Sets the virtual network rules.
Parameters:
Returns:
Applies to
Azure SDK for Java