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

package com.azure.resourcemanager.security.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** The status of the health report. */
@Fluent
public final class StatusAutoGenerated {
    /*
     * The status of the health report
     */
    @JsonProperty(value = "code")
    private StatusName code;

    /*
     * The date of when the status of the health report was changed in the last time
     */
    @JsonProperty(value = "statusChangeDate", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime statusChangeDate;

    /*
     * The date of when the resource of the health report was scanned in the first time
     */
    @JsonProperty(value = "firstEvaluationDate", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime firstEvaluationDate;

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

    /**
     * Get the code property: The status of the health report.
     *
     * @return the code value.
     */
    public StatusName code() {
        return this.code;
    }

    /**
     * Set the code property: The status of the health report.
     *
     * @param code the code value to set.
     * @return the StatusAutoGenerated object itself.
     */
    public StatusAutoGenerated withCode(StatusName code) {
        this.code = code;
        return this;
    }

    /**
     * Get the statusChangeDate property: The date of when the status of the health report was changed in the last time.
     *
     * @return the statusChangeDate value.
     */
    public OffsetDateTime statusChangeDate() {
        return this.statusChangeDate;
    }

    /**
     * Get the firstEvaluationDate property: The date of when the resource of the health report was scanned in the first
     * time.
     *
     * @return the firstEvaluationDate value.
     */
    public OffsetDateTime firstEvaluationDate() {
        return this.firstEvaluationDate;
    }

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