Class NetworkRuleSet


  • public final class NetworkRuleSet
    extends Object
    Network rule set.
    • Constructor Detail

      • NetworkRuleSet

        public NetworkRuleSet()
    • Method Detail

      • 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.
      • 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.
      • resourceAccessRules

        public List<ResourceAccessRule> resourceAccessRules()
        Get the resourceAccessRules property: Sets the resource access rules.
        Returns:
        the resourceAccessRules value.
      • withResourceAccessRules

        public NetworkRuleSet withResourceAccessRules​(List<ResourceAccessRule> resourceAccessRules)
        Set the resourceAccessRules property: Sets the resource access rules.
        Parameters:
        resourceAccessRules - the resourceAccessRules value to set.
        Returns:
        the NetworkRuleSet object itself.
      • virtualNetworkRules

        public List<VirtualNetworkRule> virtualNetworkRules()
        Get the virtualNetworkRules property: Sets the virtual network rules.
        Returns:
        the virtualNetworkRules value.
      • withVirtualNetworkRules

        public NetworkRuleSet withVirtualNetworkRules​(List<VirtualNetworkRule> virtualNetworkRules)
        Set the virtualNetworkRules property: Sets the virtual network rules.
        Parameters:
        virtualNetworkRules - the virtualNetworkRules value to set.
        Returns:
        the NetworkRuleSet object itself.
      • ipRules

        public List<IpRule> ipRules()
        Get the ipRules property: Sets the IP ACL rules.
        Returns:
        the ipRules value.
      • withIpRules

        public NetworkRuleSet withIpRules​(List<IpRule> ipRules)
        Set the ipRules property: Sets the IP ACL rules.
        Parameters:
        ipRules - the ipRules value to set.
        Returns:
        the NetworkRuleSet object itself.
      • 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.
      • 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.
      • validate

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