All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.keyvault.models.SecretRestoreParameters Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.2.6
Show newest version
// 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 secret restore parameters.
 */
public class SecretRestoreParameters {
    /**
     * The backup blob associated with a secret bundle.
     */
    @JsonProperty(value = "value", required = true)
    private Base64Url secretBundleBackup;

    /**
     * Get the secretBundleBackup value.
     *
     * @return the secretBundleBackup value
     */
    public byte[] secretBundleBackup() {
        if (this.secretBundleBackup == null) {
            return null;
        }
        return this.secretBundleBackup.decodedBytes();
    }

    /**
     * Set the secretBundleBackup value.
     *
     * @param secretBundleBackup the secretBundleBackup value to set
     * @return the SecretRestoreParameters object itself.
     */
    public SecretRestoreParameters withSecretBundleBackup(byte[] secretBundleBackup) {
        if (secretBundleBackup == null) {
            this.secretBundleBackup = null;
        } else {
            this.secretBundleBackup = Base64Url.encode(secretBundleBackup);
        }
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy