Class IpFilterRule
java.lang.Object
com.azure.resourcemanager.iothub.models.IpFilterRule
The IP filter rules for the IoT hub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: The desired action for requests captured by this rule.Get the filterName property: The name of the IP filter rule.ipMask()
Get the ipMask property: A string that contains the IP address range in CIDR notation for the rule.void
validate()
Validates the instance.withAction
(IpFilterActionType action) Set the action property: The desired action for requests captured by this rule.withFilterName
(String filterName) Set the filterName property: The name of the IP filter rule.withIpMask
(String ipMask) Set the ipMask property: A string that contains the IP address range in CIDR notation for the rule.
-
Constructor Details
-
IpFilterRule
public IpFilterRule()
-
-
Method Details
-
filterName
Get the filterName property: The name of the IP filter rule.- Returns:
- the filterName value.
-
withFilterName
Set the filterName property: The name of the IP filter rule.- Parameters:
filterName
- the filterName value to set.- Returns:
- the IpFilterRule object itself.
-
action
Get the action property: The desired action for requests captured by this rule.- Returns:
- the action value.
-
withAction
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.
-
ipMask
Get the ipMask property: A string that contains the IP address range in CIDR notation for the rule.- Returns:
- the ipMask value.
-
withIpMask
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.
-