I
InsightNexus

IpFilterRule (Azure SDK for Java Reference Documentation)

Author

Rachel Ross

Published Feb 16, 2026

IpFilterRule (Azure SDK for Java Reference Documentation)

  • public final class IpFilterRuleextends Object

    The IP filter rules for the IoT hub.

    • Constructor Detail

      • IpFilterRule

        public IpFilterRule()
    • Method Detail

      • filterName

        public String filterName()

        Get the filterName property: The name of the IP filter rule.

        Returns:
        the filterName value.
      • withFilterName

        public IpFilterRule withFilterName(String filterName)

        Set the filterName property: The name of the IP filter rule.

        Parameters:
        filterName - the filterName value to set.
        Returns:
        the IpFilterRule object itself.
      • action

        public IpFilterActionType action()

        Get the action property: The desired action for requests captured by this rule.

        Returns:
        the action value.
      • withAction

        public IpFilterRule withAction(IpFilterActionType action)

        Set the action property: The desired action for requests captured by this rule.

        Parameters:
        action - the action value to set.
        Returns:
        the IpFilterRule object itself.
      • withIpMask

        public IpFilterRule withIpMask(String ipMask)

        Set the ipMask property: A string that contains the IP address range in CIDR notation for the rule.

        Parameters:
        ipMask - the ipMask value to set.
        Returns:
        the IpFilterRule object itself.
      • validate

        public void validate()

        Validates the instance.

        Throws:
        IllegalArgumentException - thrown if the instance is not valid.

Copyright © 2021 Microsoft Corporation. All rights reserved.