MhsmVirtualNetworkRule Class

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

Implements

public final class MhsmVirtualNetworkRule
implements JsonSerializable<MhsmVirtualNetworkRule>

A rule governing the accessibility of a managed hsm pool from a specific virtual network.

Constructor Summary

Constructor Description
MhsmVirtualNetworkRule()

Creates an instance of MhsmVirtualNetworkRule class.

Method Summary

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

Reads an instance of MhsmVirtualNetworkRule from the JsonReader.

String id()

Get the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MhsmVirtualNetworkRule withId(String id)

Set the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.

Methods inherited from java.lang.Object

Constructor Details

MhsmVirtualNetworkRule

public MhsmVirtualNetworkRule()

Creates an instance of MhsmVirtualNetworkRule class.

Method Details

fromJson

public static MhsmVirtualNetworkRule fromJson(JsonReader jsonReader)

Reads an instance of MhsmVirtualNetworkRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MhsmVirtualNetworkRule 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.

id

public String id()

Get the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public MhsmVirtualNetworkRule withId(String id)

Set the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.

Parameters:

id - the id value to set.

Returns:

the MhsmVirtualNetworkRule object itself.

Applies to