IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
A rule governing the accessibility of a vault from a specific ip address or ip range.
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: 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). |
Ip |
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). |
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: 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:
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:
Returns:
Applies to
Azure SDK for Java