// 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 result of the assessment. */
@Fluent
public final class AssessmentStatusResponse extends AssessmentStatus {
    /*
     * The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
     */
    @JsonProperty(value = "firstEvaluationDate", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime firstEvaluationDate;

    /*
     * The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
     */
    @JsonProperty(value = "statusChangeDate", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime statusChangeDate;

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

    /**
     * Get the firstEvaluationDate property: The time that the assessment was created and first evaluated. Returned as
     * UTC time in ISO 8601 format.
     *
     * @return the firstEvaluationDate value.
     */
    public OffsetDateTime firstEvaluationDate() {
        return this.firstEvaluationDate;
    }

    /**
     * Get the statusChangeDate property: The time that the status of the assessment last changed. Returned as UTC time
     * in ISO 8601 format.
     *
     * @return the statusChangeDate value.
     */
    public OffsetDateTime statusChangeDate() {
        return this.statusChangeDate;
    }

    /** {@inheritDoc} */
    @Override
    public AssessmentStatusResponse withCode(AssessmentStatusCode code) {
        super.withCode(code);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AssessmentStatusResponse withCause(String cause) {
        super.withCause(cause);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AssessmentStatusResponse withDescription(String description) {
        super.withDescription(description);
        return this;
    }

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