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

package com.azure.resourcemanager.devcenter.models;

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

/** An individual health check item. */
@Immutable
public final class HealthCheck {
    /*
     * The status of the health check item.
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private HealthCheckStatus status;

    /*
     * The display name of this health check item.
     */
    @JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
    private String displayName;

    /*
     * Start time of health check item.
     */
    @JsonProperty(value = "startDateTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime startDateTime;

    /*
     * End time of the health check item.
     */
    @JsonProperty(value = "endDateTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime endDateTime;

    /*
     * The type of error that occurred during this health check.
     */
    @JsonProperty(value = "errorType", access = JsonProperty.Access.WRITE_ONLY)
    private String errorType;

    /*
     * The recommended action to fix the corresponding error.
     */
    @JsonProperty(value = "recommendedAction", access = JsonProperty.Access.WRITE_ONLY)
    private String recommendedAction;

    /*
     * Additional details about the health check or the recommended action.
     */
    @JsonProperty(value = "additionalDetails", access = JsonProperty.Access.WRITE_ONLY)
    private String additionalDetails;

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

    /**
     * Get the status property: The status of the health check item.
     *
     * @return the status value.
     */
    public HealthCheckStatus status() {
        return this.status;
    }

    /**
     * Get the displayName property: The display name of this health check item.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Get the startDateTime property: Start time of health check item.
     *
     * @return the startDateTime value.
     */
    public OffsetDateTime startDateTime() {
        return this.startDateTime;
    }

    /**
     * Get the endDateTime property: End time of the health check item.
     *
     * @return the endDateTime value.
     */
    public OffsetDateTime endDateTime() {
        return this.endDateTime;
    }

    /**
     * Get the errorType property: The type of error that occurred during this health check.
     *
     * @return the errorType value.
     */
    public String errorType() {
        return this.errorType;
    }

    /**
     * Get the recommendedAction property: The recommended action to fix the corresponding error.
     *
     * @return the recommendedAction value.
     */
    public String recommendedAction() {
        return this.recommendedAction;
    }

    /**
     * Get the additionalDetails property: Additional details about the health check or the recommended action.
     *
     * @return the additionalDetails value.
     */
    public String additionalDetails() {
        return this.additionalDetails;
    }

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