All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.codebuild.model.TestReportSummary.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codebuild.model



/**
 * Information about a test report.
 */
class TestReportSummary private constructor(builder: Builder) {
    /**
     * The number of nanoseconds it took to run all of the test cases in this report.
     */
    val durationInNanoSeconds: kotlin.Long? = builder.durationInNanoSeconds
    /**
     * A map that contains the number of each type of status returned by the test results in this `TestReportSummary`.
     */
    val statusCounts: Map? = builder.statusCounts
    /**
     * The number of test cases in this `TestReportSummary`. The total includes truncated test cases.
     */
    val total: kotlin.Int? = builder.total

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.TestReportSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TestReportSummary(")
        append("durationInNanoSeconds=$durationInNanoSeconds,")
        append("statusCounts=$statusCounts,")
        append("total=$total)")
    }

    override fun hashCode(): kotlin.Int {
        var result = durationInNanoSeconds?.hashCode() ?: 0
        result = 31 * result + (statusCounts?.hashCode() ?: 0)
        result = 31 * result + (total ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as TestReportSummary

        if (durationInNanoSeconds != other.durationInNanoSeconds) return false
        if (statusCounts != other.statusCounts) return false
        if (total != other.total) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.TestReportSummary = Builder(this).apply(block).build()

    class Builder {
        /**
         * The number of nanoseconds it took to run all of the test cases in this report.
         */
        var durationInNanoSeconds: kotlin.Long? = null
        /**
         * A map that contains the number of each type of status returned by the test results in this `TestReportSummary`.
         */
        var statusCounts: Map? = null
        /**
         * The number of test cases in this `TestReportSummary`. The total includes truncated test cases.
         */
        var total: kotlin.Int? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.TestReportSummary) : this() {
            this.durationInNanoSeconds = x.durationInNanoSeconds
            this.statusCounts = x.statusCounts
            this.total = x.total
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.codebuild.model.TestReportSummary = TestReportSummary(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy