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

package com.azure.resourcemanager.desktopvirtualization.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The report for session host information. */
@Immutable
public final class SessionHostHealthCheckReport {
    /*
     * Represents the name of the health check operation performed.
     */
    @JsonProperty(value = "healthCheckName", access = JsonProperty.Access.WRITE_ONLY)
    private HealthCheckName healthCheckName;

    /*
     * Represents the Health state of the health check we performed.
     */
    @JsonProperty(value = "healthCheckResult", access = JsonProperty.Access.WRITE_ONLY)
    private HealthCheckResult healthCheckResult;

    /*
     * Additional detailed information on the failure.
     */
    @JsonProperty(value = "additionalFailureDetails", access = JsonProperty.Access.WRITE_ONLY)
    private SessionHostHealthCheckFailureDetails additionalFailureDetails;

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

    /**
     * Get the healthCheckName property: Represents the name of the health check operation performed.
     *
     * @return the healthCheckName value.
     */
    public HealthCheckName healthCheckName() {
        return this.healthCheckName;
    }

    /**
     * Get the healthCheckResult property: Represents the Health state of the health check we performed.
     *
     * @return the healthCheckResult value.
     */
    public HealthCheckResult healthCheckResult() {
        return this.healthCheckResult;
    }

    /**
     * Get the additionalFailureDetails property: Additional detailed information on the failure.
     *
     * @return the additionalFailureDetails value.
     */
    public SessionHostHealthCheckFailureDetails additionalFailureDetails() {
        return this.additionalFailureDetails;
    }

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