CmkKeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.CmkKeyVaultProperties

Implements

public final class CmkKeyVaultProperties
implements JsonSerializable<CmkKeyVaultProperties>

The properties of the Key Vault which hosts CMK.

Constructor Summary

Constructor Description
CmkKeyVaultProperties()

Creates an instance of CmkKeyVaultProperties class.

Method Summary

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

Reads an instance of CmkKeyVaultProperties from the JsonReader.

String keyUri()

Get the keyUri property: The key uri of the Customer Managed Key.

JsonWriter toJson(JsonWriter jsonWriter)
CmkKeyVaultProperties withKeyUri(String keyUri)

Set the keyUri property: The key uri of the Customer Managed Key.

Methods inherited from java.lang.Object

Constructor Details

CmkKeyVaultProperties

public CmkKeyVaultProperties()

Creates an instance of CmkKeyVaultProperties class.

Method Details

fromJson

public static CmkKeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of CmkKeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the CmkKeyVaultProperties.

keyUri

public String keyUri()

Get the keyUri property: The key uri of the Customer Managed Key.

Returns:

the keyUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withKeyUri

public CmkKeyVaultProperties withKeyUri(String keyUri)

Set the keyUri property: The key uri of the Customer Managed Key.

Parameters:

keyUri - the keyUri value to set.

Returns:

the CmkKeyVaultProperties object itself.

Applies to