Compartilhar via


KeyVaultReference Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.KeyVaultReference

Implements

public final class KeyVaultReference
implements JsonSerializable<KeyVaultReference>

Azure Key Vault reference.

Constructor Summary

Constructor Description
KeyVaultReference()

Creates an instance of KeyVaultReference class.

Method Summary

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

Reads an instance of KeyVaultReference from the JsonReader.

String id()

Get the id property: Azure Key Vault resource id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultReference withId(String id)

Set the id property: Azure Key Vault resource id.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultReference

public KeyVaultReference()

Creates an instance of KeyVaultReference class.

Method Details

fromJson

public static KeyVaultReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultReference 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: Azure Key Vault resource id.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public KeyVaultReference withId(String id)

Set the id property: Azure Key Vault resource id.

Parameters:

id - the id value to set.

Returns:

the KeyVaultReference object itself.

Applies to