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

package com.azure.resourcemanager.storagecache.models;

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

/** Information about the AML file system archive. */
@Immutable
public final class AmlFilesystemArchive {
    /*
     * Lustre file system path to archive relative to the file system root.  Specify '/' to archive all modified data.
     */
    @JsonProperty(value = "filesystemPath", access = JsonProperty.Access.WRITE_ONLY)
    private String filesystemPath;

    /*
     * The status of the archive
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private AmlFilesystemArchiveStatus status;

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

    /**
     * Get the filesystemPath property: Lustre file system path to archive relative to the file system root. Specify '/'
     * to archive all modified data.
     *
     * @return the filesystemPath value.
     */
    public String filesystemPath() {
        return this.filesystemPath;
    }

    /**
     * Get the status property: The status of the archive.
     *
     * @return the status value.
     */
    public AmlFilesystemArchiveStatus status() {
        return this.status;
    }

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