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

com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.

There is a newer version: 1.6.0-beta.1
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.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 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 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 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);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy