/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.loganalytics.v2020_03_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The status of the storage insight.
 */
public class StorageInsightStatus {
    /**
     * The state of the storage insight connection to the workspace. Possible
     * values include: 'OK', 'ERROR'.
     */
    @JsonProperty(value = "state", required = true)
    private StorageInsightState state;

    /**
     * Description of the state of the storage insight.
     */
    @JsonProperty(value = "description")
    private String description;

    /**
     * Get the state of the storage insight connection to the workspace. Possible values include: 'OK', 'ERROR'.
     *
     * @return the state value
     */
    public StorageInsightState state() {
        return this.state;
    }

    /**
     * Set the state of the storage insight connection to the workspace. Possible values include: 'OK', 'ERROR'.
     *
     * @param state the state value to set
     * @return the StorageInsightStatus object itself.
     */
    public StorageInsightStatus withState(StorageInsightState state) {
        this.state = state;
        return this;
    }

    /**
     * Get description of the state of the storage insight.
     *
     * @return the description value
     */
    public String description() {
        return this.description;
    }

    /**
     * Set description of the state of the storage insight.
     *
     * @param description the description value to set
     * @return the StorageInsightStatus object itself.
     */
    public StorageInsightStatus withDescription(String description) {
        this.description = description;
        return this;
    }

}
