NetworkRuleSet Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.NetworkRuleSet

Implements

public final class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>

Network rule set.

Constructor Summary

Constructor Description
NetworkRuleSet()

Creates an instance of NetworkRuleSet class.

Method Summary

Modifier and Type Method and Description
Bypass bypass()

Get the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.

DefaultAction defaultAction()

Get the defaultAction property: Specifies the default action of allow or deny when no other rules match.

static NetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSet from the JsonReader.

List<IpRule> ipRules()

Get the ipRules property: Sets the IP ACL rules.

List<ResourceAccessRule> resourceAccessRules()

Get the resourceAccessRules property: Sets the resource access rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VirtualNetworkRule> virtualNetworkRules()

Get the virtualNetworkRules property: Sets the virtual network rules.

NetworkRuleSet withBypass(Bypass bypass)

Set the bypass property: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.

NetworkRuleSet withDefaultAction(DefaultAction defaultAction)

Set the defaultAction property: Specifies the default action of allow or deny when no other rules match.

NetworkRuleSet withIpRules(List<IpRule> ipRules)

Set the ipRules property: Sets the IP ACL rules.

NetworkRuleSet withResourceAccessRules(List<ResourceAccessRule> resourceAccessRules)

Set the resourceAccessRules property: Sets the resource access rules.

NetworkRuleSet withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)

Set the virtualNetworkRules property: Sets the virtual network rules.

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:

the bypass value.

defaultAction

public DefaultAction defaultAction()

Get the defaultAction property: Specifies the default action of allow or deny when no other rules match.

Returns:

the defaultAction value.

fromJson

public static NetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkRuleSet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ipRules

public List ipRules()

Get the ipRules property: Sets the IP ACL rules.

Returns:

the ipRules value.

resourceAccessRules

public List resourceAccessRules()

Get the resourceAccessRules property: Sets the resource access rules.

Returns:

the resourceAccessRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkRules

public List virtualNetworkRules()

Get the virtualNetworkRules property: Sets the virtual network rules.

Returns:

the virtualNetworkRules value.

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:

bypass - the bypass value to set.

Returns:

the NetworkRuleSet object itself.

withDefaultAction

public NetworkRuleSet withDefaultAction(DefaultAction defaultAction)

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.

withIpRules

public NetworkRuleSet withIpRules(List ipRules)

Set the ipRules property: Sets the IP ACL rules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the NetworkRuleSet object itself.

withResourceAccessRules

public NetworkRuleSet withResourceAccessRules(List resourceAccessRules)

Set the resourceAccessRules property: Sets the resource access rules.

Parameters:

resourceAccessRules - the resourceAccessRules value to set.

Returns:

the NetworkRuleSet object itself.

withVirtualNetworkRules

public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules)

Set the virtualNetworkRules property: Sets the virtual network rules.

Parameters:

virtualNetworkRules - the virtualNetworkRules value to set.

Returns:

the NetworkRuleSet object itself.

Applies to