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

package com.azure.resourcemanager.datamigration.models;

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

/** Information of the backup file. */
@Fluent
public final class BackupFileInfo {
    /*
     * Location of the backup file in shared folder
     */
    @JsonProperty(value = "fileLocation")
    private String fileLocation;

    /*
     * Sequence number of the backup file in the backup set
     */
    @JsonProperty(value = "familySequenceNumber")
    private Integer familySequenceNumber;

    /*
     * Status of the backup file during migration
     */
    @JsonProperty(value = "status")
    private BackupFileStatus status;

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

    /**
     * Get the fileLocation property: Location of the backup file in shared folder.
     *
     * @return the fileLocation value.
     */
    public String fileLocation() {
        return this.fileLocation;
    }

    /**
     * Set the fileLocation property: Location of the backup file in shared folder.
     *
     * @param fileLocation the fileLocation value to set.
     * @return the BackupFileInfo object itself.
     */
    public BackupFileInfo withFileLocation(String fileLocation) {
        this.fileLocation = fileLocation;
        return this;
    }

    /**
     * Get the familySequenceNumber property: Sequence number of the backup file in the backup set.
     *
     * @return the familySequenceNumber value.
     */
    public Integer familySequenceNumber() {
        return this.familySequenceNumber;
    }

    /**
     * Set the familySequenceNumber property: Sequence number of the backup file in the backup set.
     *
     * @param familySequenceNumber the familySequenceNumber value to set.
     * @return the BackupFileInfo object itself.
     */
    public BackupFileInfo withFamilySequenceNumber(Integer familySequenceNumber) {
        this.familySequenceNumber = familySequenceNumber;
        return this;
    }

    /**
     * Get the status property: Status of the backup file during migration.
     *
     * @return the status value.
     */
    public BackupFileStatus status() {
        return this.status;
    }

    /**
     * Set the status property: Status of the backup file during migration.
     *
     * @param status the status value to set.
     * @return the BackupFileInfo object itself.
     */
    public BackupFileInfo withStatus(BackupFileStatus status) {
        this.status = status;
        return this;
    }

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