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

package com.azure.resourcemanager.netapp.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Restore payload for Single File Snapshot Restore. */
@Fluent
public final class SnapshotRestoreFiles {
    /*
     * List of files to be restored
     */
    @JsonProperty(value = "filePaths", required = true)
    private List<String> filePaths;

    /*
     * Destination folder where the files will be restored
     */
    @JsonProperty(value = "destinationPath")
    private String destinationPath;

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

    /**
     * Get the filePaths property: List of files to be restored.
     *
     * @return the filePaths value.
     */
    public List<String> filePaths() {
        return this.filePaths;
    }

    /**
     * Set the filePaths property: List of files to be restored.
     *
     * @param filePaths the filePaths value to set.
     * @return the SnapshotRestoreFiles object itself.
     */
    public SnapshotRestoreFiles withFilePaths(List<String> filePaths) {
        this.filePaths = filePaths;
        return this;
    }

    /**
     * Get the destinationPath property: Destination folder where the files will be restored.
     *
     * @return the destinationPath value.
     */
    public String destinationPath() {
        return this.destinationPath;
    }

    /**
     * Set the destinationPath property: Destination folder where the files will be restored.
     *
     * @param destinationPath the destinationPath value to set.
     * @return the SnapshotRestoreFiles object itself.
     */
    public SnapshotRestoreFiles withDestinationPath(String destinationPath) {
        this.destinationPath = destinationPath;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (filePaths() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException("Missing required property filePaths in model SnapshotRestoreFiles"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(SnapshotRestoreFiles.class);
}
