MhsmNetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. MhsmNetworkRuleSet
- com.
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 Mhsm |
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
bypass()
Get the bypass property: Tells what traffic can bypass network rules. |
Network |
defaultAction()
Get the default |
static
Mhsm |
fromJson(JsonReader jsonReader)
Reads an instance of Mhsm |
List<Mhsmip |
ipRules()
Get the ip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Mhsm |
virtualNetworkRules()
Get the virtual |
Mhsm |
withBypass(NetworkRuleBypassOptions bypass)
Set the bypass property: Tells what traffic can bypass network rules. |
Mhsm |
withDefaultAction(NetworkRuleAction defaultAction)
Set the default |
Mhsm |
withIpRules(List<MhsmipRule> ipRules)
Set the ip |
Mhsm |
withVirtualNetworkRules(List<MhsmVirtualNetworkRule> virtualNetworkRules)
Set the virtual |
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:
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:
fromJson
public static MhsmNetworkRuleSet fromJson(JsonReader jsonReader)
Reads an instance of MhsmNetworkRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ipRules
public List
Get the ipRules property: The list of IP address rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
virtualNetworkRules
public List
Get the virtualNetworkRules property: The list of virtual network rules.
Returns:
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:
Returns:
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:
Returns:
withIpRules
public MhsmNetworkRuleSet withIpRules(List
Set the ipRules property: The list of IP address rules.
Parameters:
Returns:
withVirtualNetworkRules
public MhsmNetworkRuleSet withVirtualNetworkRules(List
Set the virtualNetworkRules property: The list of virtual network rules.
Parameters:
Returns:
Applies to
Azure SDK for Java