IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
The IP restriction rule of the search service.
Constructor Summary
Constructor | Description |
---|---|
IpRule() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
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. |
Ip |
withValue(String value)
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. |
Methods inherited from java.lang.Object
Constructor Details
IpRule
public IpRule()
Creates an instance of IpRule class.
Method Details
fromJson
public static IpRule fromJson(JsonReader jsonReader)
Reads an instance of IpRule from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
value
public String 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:
withValue
public IpRule withValue(String value)
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:
Returns:
Applies to
Azure SDK for Java