Class NetworkRuleSetIpRule
- java.lang.Object
-
- com.azure.resourcemanager.iotcentral.models.NetworkRuleSetIpRule
-
public final class NetworkRuleSetIpRule extends Object
An object for an IP range that will be allowed access.
-
-
Constructor Summary
Constructors Constructor Description NetworkRuleSetIpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
filterName()
Get the filterName property: The readable name of the IP rule.String
ipMask()
Get the ipMask property: The CIDR block defining the IP range.void
validate()
Validates the instance.NetworkRuleSetIpRule
withFilterName(String filterName)
Set the filterName property: The readable name of the IP rule.NetworkRuleSetIpRule
withIpMask(String ipMask)
Set the ipMask property: The CIDR block defining the IP range.
-
-
-
Method Detail
-
filterName
public String filterName()
Get the filterName property: The readable name of the IP rule.- Returns:
- the filterName value.
-
withFilterName
public NetworkRuleSetIpRule withFilterName(String filterName)
Set the filterName property: The readable name of the IP rule.- Parameters:
filterName
- the filterName value to set.- Returns:
- the NetworkRuleSetIpRule object itself.
-
ipMask
public String ipMask()
Get the ipMask property: The CIDR block defining the IP range.- Returns:
- the ipMask value.
-
withIpMask
public NetworkRuleSetIpRule withIpMask(String ipMask)
Set the ipMask property: The CIDR block defining the IP range.- 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.
-
-