IpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.IpRule

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 IpRule class.

Method Summary

Modifier and Type Method and Description
static IpRule fromJson(JsonReader jsonReader)

Reads an instance of IpRule from the JsonReader.

JsonWriter 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).

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).

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:

jsonReader - The JsonReader being read.

Returns:

An instance of IpRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

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.

Applies to