com.microsoft.azure.keyvault.models.KeyRestoreParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault Show documentation
Show all versions of azure-keyvault Show documentation
This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are:
(1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys.
(2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets.
(3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates.
It is recommended that you move to the new package.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator
package com.microsoft.azure.keyvault.models;
import com.microsoft.rest.Base64Url;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The key restore parameters.
*/
public class KeyRestoreParameters {
/**
* The backup blob associated with a key bundle.
*/
@JsonProperty(value = "value", required = true)
private Base64Url keyBundleBackup;
/**
* Get the keyBundleBackup value.
*
* @return the keyBundleBackup value
*/
public byte[] keyBundleBackup() {
if (this.keyBundleBackup == null) {
return null;
}
return this.keyBundleBackup.decodedBytes();
}
/**
* Set the keyBundleBackup value.
*
* @param keyBundleBackup the keyBundleBackup value to set
* @return the KeyRestoreParameters object itself.
*/
public KeyRestoreParameters withKeyBundleBackup(byte[] keyBundleBackup) {
if (keyBundleBackup == null) {
this.keyBundleBackup = null;
} else {
this.keyBundleBackup = Base64Url.encode(keyBundleBackup);
}
return this;
}
}