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

package com.azure.resourcemanager.datamigration.models;

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

/** Wait statistics gathered during query batch execution. */
@Immutable
public final class WaitStatistics {
    /*
     * Type of the Wait
     */
    @JsonProperty(value = "waitType", access = JsonProperty.Access.WRITE_ONLY)
    private String waitType;

    /*
     * Total wait time in millisecond(s)
     */
    @JsonProperty(value = "waitTimeMs", access = JsonProperty.Access.WRITE_ONLY)
    private Float waitTimeMs;

    /*
     * Total no. of waits
     */
    @JsonProperty(value = "waitCount", access = JsonProperty.Access.WRITE_ONLY)
    private Long waitCount;

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

    /**
     * Get the waitType property: Type of the Wait.
     *
     * @return the waitType value.
     */
    public String waitType() {
        return this.waitType;
    }

    /**
     * Get the waitTimeMs property: Total wait time in millisecond(s).
     *
     * @return the waitTimeMs value.
     */
    public Float waitTimeMs() {
        return this.waitTimeMs;
    }

    /**
     * Get the waitCount property: Total no. of waits.
     *
     * @return the waitCount value.
     */
    public Long waitCount() {
        return this.waitCount;
    }

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