MhsmipRule Class

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

Implements

public final class MhsmipRule
implements JsonSerializable<MhsmipRule>

A rule governing the accessibility of a managed HSM pool from a specific IP address or IP range.

Constructor Summary

Constructor Description
MhsmipRule()

Creates an instance of MhsmipRule class.

Method Summary

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

Reads an instance of MhsmipRule 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).

MhsmipRule 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

MhsmipRule

public MhsmipRule()

Creates an instance of MhsmipRule class.

Method Details

fromJson

public static MhsmipRule fromJson(JsonReader jsonReader)

Reads an instance of MhsmipRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MhsmipRule 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 MhsmipRule 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 MhsmipRule object itself.

Applies to