Class NetworkRuleSetIpRule
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule
-
public final class NetworkRuleSetIpRule extends Object
IP Rule to be applied as part of Network Rule Set.
-
-
Constructor Summary
Constructors Constructor Description NetworkRuleSetIpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkRuleIpAction
action()
Get the action property: IP Filter Action.String
filterName()
Get the filterName property: Name of the IP filter rule.String
ipMask()
Get the ipMask property: A string that contains the IP address range in CIDR notation for the rule.void
validate()
Validates the instance.NetworkRuleSetIpRule
withAction(NetworkRuleIpAction action)
Set the action property: IP Filter Action.NetworkRuleSetIpRule
withFilterName(String filterName)
Set the filterName property: Name of the IP filter rule.NetworkRuleSetIpRule
withIpMask(String ipMask)
Set the ipMask property: A string that contains the IP address range in CIDR notation for the rule.
-
-
-
Method Detail
-
filterName
public String filterName()
Get the filterName property: Name of the IP filter rule.- Returns:
- the filterName value.
-
withFilterName
public NetworkRuleSetIpRule withFilterName(String filterName)
Set the filterName property: Name of the IP filter rule.- Parameters:
filterName
- the filterName value to set.- Returns:
- the NetworkRuleSetIpRule object itself.
-
action
public NetworkRuleIpAction action()
Get the action property: IP Filter Action.- Returns:
- the action value.
-
withAction
public NetworkRuleSetIpRule withAction(NetworkRuleIpAction action)
Set the action property: IP Filter Action.- Parameters:
action
- the action value to set.- Returns:
- the NetworkRuleSetIpRule object itself.
-
ipMask
public String ipMask()
Get the ipMask property: A string that contains the IP address range in CIDR notation for the rule.- Returns:
- the ipMask value.
-
withIpMask
public NetworkRuleSetIpRule 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 NetworkRuleSetIpRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-