// 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.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An indication of AML file system health. Gives more information about health than just that related to provisioning.
 */
@Fluent
public final class AmlFilesystemHealth {
    /*
     * List of AML file system health states.
     */
    @JsonProperty(value = "state")
    private AmlFilesystemHealthStateType state;

    /*
     * Server-defined error code for the AML file system health
     */
    @JsonProperty(value = "statusCode")
    private String statusCode;

    /*
     * Describes the health state.
     */
    @JsonProperty(value = "statusDescription")
    private String statusDescription;

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

    /**
     * Get the state property: List of AML file system health states.
     *
     * @return the state value.
     */
    public AmlFilesystemHealthStateType state() {
        return this.state;
    }

    /**
     * Set the state property: List of AML file system health states.
     *
     * @param state the state value to set.
     * @return the AmlFilesystemHealth object itself.
     */
    public AmlFilesystemHealth withState(AmlFilesystemHealthStateType state) {
        this.state = state;
        return this;
    }

    /**
     * Get the statusCode property: Server-defined error code for the AML file system health.
     *
     * @return the statusCode value.
     */
    public String statusCode() {
        return this.statusCode;
    }

    /**
     * Set the statusCode property: Server-defined error code for the AML file system health.
     *
     * @param statusCode the statusCode value to set.
     * @return the AmlFilesystemHealth object itself.
     */
    public AmlFilesystemHealth withStatusCode(String statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    /**
     * Get the statusDescription property: Describes the health state.
     *
     * @return the statusDescription value.
     */
    public String statusDescription() {
        return this.statusDescription;
    }

    /**
     * Set the statusDescription property: Describes the health state.
     *
     * @param statusDescription the statusDescription value to set.
     * @return the AmlFilesystemHealth object itself.
     */
    public AmlFilesystemHealth withStatusDescription(String statusDescription) {
        this.statusDescription = statusDescription;
        return this;
    }

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