// 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;

/** Pre-backup validation for Azure VM Workload provider. */
@Fluent
public final class PreBackupValidation {
    /*
     * Status of protectable item, i.e. InProgress,Succeeded,Failed
     */
    @JsonProperty(value = "status")
    private InquiryStatus status;

    /*
     * Error code of protectable item
     */
    @JsonProperty(value = "code")
    private String code;

    /*
     * Message corresponding to the error code for the protectable item
     */
    @JsonProperty(value = "message")
    private String message;

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

    /**
     * Get the status property: Status of protectable item, i.e. InProgress,Succeeded,Failed.
     *
     * @return the status value.
     */
    public InquiryStatus status() {
        return this.status;
    }

    /**
     * Set the status property: Status of protectable item, i.e. InProgress,Succeeded,Failed.
     *
     * @param status the status value to set.
     * @return the PreBackupValidation object itself.
     */
    public PreBackupValidation withStatus(InquiryStatus status) {
        this.status = status;
        return this;
    }

    /**
     * Get the code property: Error code of protectable item.
     *
     * @return the code value.
     */
    public String code() {
        return this.code;
    }

    /**
     * Set the code property: Error code of protectable item.
     *
     * @param code the code value to set.
     * @return the PreBackupValidation object itself.
     */
    public PreBackupValidation withCode(String code) {
        this.code = code;
        return this;
    }

    /**
     * Get the message property: Message corresponding to the error code for the protectable item.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Set the message property: Message corresponding to the error code for the protectable item.
     *
     * @param message the message value to set.
     * @return the PreBackupValidation object itself.
     */
    public PreBackupValidation withMessage(String message) {
        this.message = message;
        return this;
    }

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