MhsmNetworkRuleSet Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.MhsmNetworkRuleSet

Implements

public final class MhsmNetworkRuleSet
implements JsonSerializable<MhsmNetworkRuleSet>

A set of rules governing the network accessibility of a managed hsm pool.

Constructor Summary

Constructor Description
MhsmNetworkRuleSet()

Creates an instance of MhsmNetworkRuleSet class.

Method Summary

Modifier and Type Method and Description
NetworkRuleBypassOptions bypass()

Get the bypass property: Tells what traffic can bypass network rules.

NetworkRuleAction defaultAction()

Get the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.

static MhsmNetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of MhsmNetworkRuleSet from the JsonReader.

List<MhsmipRule> ipRules()

Get the ipRules property: The list of IP address rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<MhsmVirtualNetworkRule> virtualNetworkRules()

Get the virtualNetworkRules property: The list of virtual network rules.

MhsmNetworkRuleSet withBypass(NetworkRuleBypassOptions bypass)

Set the bypass property: Tells what traffic can bypass network rules.

MhsmNetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction)

Set the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.

MhsmNetworkRuleSet withIpRules(List<MhsmipRule> ipRules)

Set the ipRules property: The list of IP address rules.

MhsmNetworkRuleSet withVirtualNetworkRules(List<MhsmVirtualNetworkRule> virtualNetworkRules)

Set the virtualNetworkRules property: The list of virtual network rules.

Methods inherited from java.lang.Object

Constructor Details

MhsmNetworkRuleSet

public MhsmNetworkRuleSet()

Creates an instance of MhsmNetworkRuleSet class.

Method Details

bypass

public NetworkRuleBypassOptions bypass()

Get the bypass property: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.

Returns:

the bypass value.

defaultAction

public NetworkRuleAction defaultAction()

Get the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.

Returns:

the defaultAction value.

fromJson

public static MhsmNetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of MhsmNetworkRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MhsmNetworkRuleSet.

ipRules

public List ipRules()

Get the ipRules property: The list of IP address rules.

Returns:

the ipRules 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: The list of virtual network rules.

Returns:

the virtualNetworkRules value.

withBypass

public MhsmNetworkRuleSet withBypass(NetworkRuleBypassOptions bypass)

Set the bypass property: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.

Parameters:

bypass - the bypass value to set.

Returns:

the MhsmNetworkRuleSet object itself.

withDefaultAction

public MhsmNetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction)

Set the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.

Parameters:

defaultAction - the defaultAction value to set.

Returns:

the MhsmNetworkRuleSet object itself.

withIpRules

public MhsmNetworkRuleSet withIpRules(List ipRules)

Set the ipRules property: The list of IP address rules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the MhsmNetworkRuleSet object itself.

withVirtualNetworkRules

public MhsmNetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules)

Set the virtualNetworkRules property: The list of virtual network rules.

Parameters:

virtualNetworkRules - the virtualNetworkRules value to set.

Returns:

the MhsmNetworkRuleSet object itself.

Applies to