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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.CheckDetail.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.wellarchitected.model

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

/**
 * Account details for a Well-Architected best practice in relation to Trusted Advisor checks.
 */
public class CheckDetail private constructor(builder: Builder) {
    /**
     * An Amazon Web Services account ID.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The ID of a choice.
     */
    public val choiceId: kotlin.String? = builder.choiceId
    /**
     * Trusted Advisor check description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Count of flagged resources associated to the check.
     */
    public val flaggedResources: kotlin.Int = builder.flaggedResources
    /**
     * Trusted Advisor check ID.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Well-Architected Lens ARN associated to the check.
     */
    public val lensArn: kotlin.String? = builder.lensArn
    /**
     * Trusted Advisor check name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ID used to identify a pillar, for example, `security`.
     *
     * A pillar is identified by its PillarReviewSummary$PillarId.
     */
    public val pillarId: kotlin.String? = builder.pillarId
    /**
     * Provider of the check related to the best practice.
     */
    public val provider: aws.sdk.kotlin.services.wellarchitected.model.CheckProvider? = builder.provider
    /**
     * The ID of the question.
     */
    public val questionId: kotlin.String? = builder.questionId
    /**
     * Reason associated to the check.
     */
    public val reason: aws.sdk.kotlin.services.wellarchitected.model.CheckFailureReason? = builder.reason
    /**
     * Status associated to the check.
     */
    public val status: aws.sdk.kotlin.services.wellarchitected.model.CheckStatus? = builder.status
    /**
     * The date and time recorded.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("CheckDetail(")
        append("accountId=$accountId,")
        append("choiceId=$choiceId,")
        append("description=$description,")
        append("flaggedResources=$flaggedResources,")
        append("id=$id,")
        append("lensArn=$lensArn,")
        append("name=$name,")
        append("pillarId=$pillarId,")
        append("provider=$provider,")
        append("questionId=$questionId,")
        append("reason=$reason,")
        append("status=$status,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (choiceId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (flaggedResources)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (lensArn?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (pillarId?.hashCode() ?: 0)
        result = 31 * result + (provider?.hashCode() ?: 0)
        result = 31 * result + (questionId?.hashCode() ?: 0)
        result = 31 * result + (reason?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 CheckDetail

        if (accountId != other.accountId) return false
        if (choiceId != other.choiceId) return false
        if (description != other.description) return false
        if (flaggedResources != other.flaggedResources) return false
        if (id != other.id) return false
        if (lensArn != other.lensArn) return false
        if (name != other.name) return false
        if (pillarId != other.pillarId) return false
        if (provider != other.provider) return false
        if (questionId != other.questionId) return false
        if (reason != other.reason) return false
        if (status != other.status) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    public class Builder {
        /**
         * An Amazon Web Services account ID.
         */
        public var accountId: kotlin.String? = null
        /**
         * The ID of a choice.
         */
        public var choiceId: kotlin.String? = null
        /**
         * Trusted Advisor check description.
         */
        public var description: kotlin.String? = null
        /**
         * Count of flagged resources associated to the check.
         */
        public var flaggedResources: kotlin.Int = 0
        /**
         * Trusted Advisor check ID.
         */
        public var id: kotlin.String? = null
        /**
         * Well-Architected Lens ARN associated to the check.
         */
        public var lensArn: kotlin.String? = null
        /**
         * Trusted Advisor check name.
         */
        public var name: kotlin.String? = null
        /**
         * The ID used to identify a pillar, for example, `security`.
         *
         * A pillar is identified by its PillarReviewSummary$PillarId.
         */
        public var pillarId: kotlin.String? = null
        /**
         * Provider of the check related to the best practice.
         */
        public var provider: aws.sdk.kotlin.services.wellarchitected.model.CheckProvider? = null
        /**
         * The ID of the question.
         */
        public var questionId: kotlin.String? = null
        /**
         * Reason associated to the check.
         */
        public var reason: aws.sdk.kotlin.services.wellarchitected.model.CheckFailureReason? = null
        /**
         * Status associated to the check.
         */
        public var status: aws.sdk.kotlin.services.wellarchitected.model.CheckStatus? = null
        /**
         * The date and time recorded.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.CheckDetail) : this() {
            this.accountId = x.accountId
            this.choiceId = x.choiceId
            this.description = x.description
            this.flaggedResources = x.flaggedResources
            this.id = x.id
            this.lensArn = x.lensArn
            this.name = x.name
            this.pillarId = x.pillarId
            this.provider = x.provider
            this.questionId = x.questionId
            this.reason = x.reason
            this.status = x.status
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy