Class MhsmNetworkRuleSet

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

public final class MhsmNetworkRuleSet extends Object
A set of rules governing the network accessibility of a managed hsm pool.
  • Constructor Details

    • MhsmNetworkRuleSet

      public MhsmNetworkRuleSet()
  • 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.
    • 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.
    • 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.
    • 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.
    • ipRules

      public List<MhsmipRule> ipRules()
      Get the ipRules property: The list of IP address rules.
      Returns:
      the ipRules value.
    • withIpRules

      public MhsmNetworkRuleSet withIpRules(List<MhsmipRule> ipRules)
      Set the ipRules property: The list of IP address rules.
      Parameters:
      ipRules - the ipRules value to set.
      Returns:
      the MhsmNetworkRuleSet object itself.
    • virtualNetworkRules

      public List<MhsmVirtualNetworkRule> virtualNetworkRules()
      Get the virtualNetworkRules property: The list of virtual network rules.
      Returns:
      the virtualNetworkRules value.
    • withVirtualNetworkRules

      public MhsmNetworkRuleSet withVirtualNetworkRules(List<MhsmVirtualNetworkRule> virtualNetworkRules)
      Set the virtualNetworkRules property: The list of virtual network rules.
      Parameters:
      virtualNetworkRules - the virtualNetworkRules value to set.
      Returns:
      the MhsmNetworkRuleSet object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.