// 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;
import java.time.OffsetDateTime;

/** Contains details on the failure. */
@Immutable
public final class SessionHostHealthCheckFailureDetails {
    /*
     * Failure message: hints on what is wrong and how to recover.
     */
    @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
    private String message;

    /*
     * Error code corresponding for the failure.
     */
    @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY)
    private Integer errorCode;

    /*
     * The timestamp of the last update.
     */
    @JsonProperty(value = "lastHealthCheckDateTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime lastHealthCheckDateTime;

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

    /**
     * Get the message property: Failure message: hints on what is wrong and how to recover.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Get the errorCode property: Error code corresponding for the failure.
     *
     * @return the errorCode value.
     */
    public Integer errorCode() {
        return this.errorCode;
    }

    /**
     * Get the lastHealthCheckDateTime property: The timestamp of the last update.
     *
     * @return the lastHealthCheckDateTime value.
     */
    public OffsetDateTime lastHealthCheckDateTime() {
        return this.lastHealthCheckDateTime;
    }

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