Class IpRule
java.lang.Object
com.azure.resourcemanager.search.models.IpRule
The IP restriction rule of the search service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.value()Get the value property: Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 123.1.2.3/24) to be allowed.Set the value property: Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 123.1.2.3/24) to be allowed.
-
Constructor Details
-
IpRule
public IpRule()Creates an instance of IpRule class.
-
-
Method Details
-
value
Get the value property: Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 123.1.2.3/24) to be allowed.- Returns:
- the value value.
-
withValue
Set the value property: Value corresponding to a single IPv4 address (for example, 123.1.2.3) or an IP range in CIDR format (for example, 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.
-