Class IpRule
- java.lang.Object
-
- com.azure.resourcemanager.search.models.IpRule
-
public final class IpRule extends Object
The IP restriction rule of the Azure Cognitive Search service.
-
-
Constructor Summary
Constructors Constructor Description IpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.Stringvalue()Get the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.IpRulewithValue(String value)Set the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.
-
-
-
Method Detail
-
value
public String value()
Get the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.- Returns:
- the value value.
-
withValue
public IpRule withValue(String value)
Set the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.- 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.
-
-