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

commonMain.aws.sdk.kotlin.services.pi.model.AnalysisReportSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pi.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Retrieves the details of the performance analysis report.
 */
public class AnalysisReportSummary private constructor(builder: Builder) {
    /**
     * The name of the analysis report.
     */
    public val analysisReportId: kotlin.String? = builder.analysisReportId
    /**
     * The time you created the analysis report.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * The end time of the analysis in the report.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The start time of the analysis in the report.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The status of the analysis report.
     */
    public val status: aws.sdk.kotlin.services.pi.model.AnalysisStatus? = builder.status
    /**
     * List of all the tags added to the analysis report.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("AnalysisReportSummary(")
        append("analysisReportId=$analysisReportId,")
        append("createTime=$createTime,")
        append("endTime=$endTime,")
        append("startTime=$startTime,")
        append("status=$status,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = analysisReportId?.hashCode() ?: 0
        result = 31 * result + (createTime?.hashCode() ?: 0)
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 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 AnalysisReportSummary

        if (analysisReportId != other.analysisReportId) return false
        if (createTime != other.createTime) return false
        if (endTime != other.endTime) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the analysis report.
         */
        public var analysisReportId: kotlin.String? = null
        /**
         * The time you created the analysis report.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The end time of the analysis in the report.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The start time of the analysis in the report.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the analysis report.
         */
        public var status: aws.sdk.kotlin.services.pi.model.AnalysisStatus? = null
        /**
         * List of all the tags added to the analysis report.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pi.model.AnalysisReportSummary) : this() {
            this.analysisReportId = x.analysisReportId
            this.createTime = x.createTime
            this.endTime = x.endTime
            this.startTime = x.startTime
            this.status = x.status
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.pi.model.AnalysisReportSummary = AnalysisReportSummary(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy