Class IpRule
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.IpRule
-
public final class IpRule extends Object
A rule governing the accessibility from a specific ip address or ip range.
-
-
Constructor Summary
Constructors Constructor Description IpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.String
value()
Get the value property: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).IpRule
withValue(String value)
Set the value property: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).
-
-
-
Method Detail
-
value
public String value()
Get the value property: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).- Returns:
- the value value.
-
withValue
public IpRule withValue(String value)
Set the value property: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).- Parameters:
value
- the value value to set.- Returns:
- the IpRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-