// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** KEK is encryption key for BEK. */
@Fluent
public final class KekDetails {
    /*
     * Key is KEK.
     */
    @JsonProperty(value = "keyUrl")
    private String keyUrl;

    /*
     * Key Vault ID where this Key is stored.
     */
    @JsonProperty(value = "keyVaultId")
    private String keyVaultId;

    /*
     * KEK data.
     */
    @JsonProperty(value = "keyBackupData")
    private String keyBackupData;

    /** Creates an instance of KekDetails class. */
    public KekDetails() {
    }

    /**
     * Get the keyUrl property: Key is KEK.
     *
     * @return the keyUrl value.
     */
    public String keyUrl() {
        return this.keyUrl;
    }

    /**
     * Set the keyUrl property: Key is KEK.
     *
     * @param keyUrl the keyUrl value to set.
     * @return the KekDetails object itself.
     */
    public KekDetails withKeyUrl(String keyUrl) {
        this.keyUrl = keyUrl;
        return this;
    }

    /**
     * Get the keyVaultId property: Key Vault ID where this Key is stored.
     *
     * @return the keyVaultId value.
     */
    public String keyVaultId() {
        return this.keyVaultId;
    }

    /**
     * Set the keyVaultId property: Key Vault ID where this Key is stored.
     *
     * @param keyVaultId the keyVaultId value to set.
     * @return the KekDetails object itself.
     */
    public KekDetails withKeyVaultId(String keyVaultId) {
        this.keyVaultId = keyVaultId;
        return this;
    }

    /**
     * Get the keyBackupData property: KEK data.
     *
     * @return the keyBackupData value.
     */
    public String keyBackupData() {
        return this.keyBackupData;
    }

    /**
     * Set the keyBackupData property: KEK data.
     *
     * @param keyBackupData the keyBackupData value to set.
     * @return the KekDetails object itself.
     */
    public KekDetails withKeyBackupData(String keyBackupData) {
        this.keyBackupData = keyBackupData;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
