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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplatePillarReviewSummary.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.SdkDsl

/**
 * Summary of a review template.
 */
public class ReviewTemplatePillarReviewSummary private constructor(builder: Builder) {
    /**
     * The notes associated with the workload.
     *
     * For a review template, these are the notes that will be associated with the workload when the template is applied.
     */
    public val notes: kotlin.String? = builder.notes
    /**
     * 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
    /**
     * The name of the pillar.
     */
    public val pillarName: kotlin.String? = builder.pillarName
    /**
     * A count of how many questions are answered and unanswered in the requested pillar of the lens review.
     */
    public val questionCounts: Map? = builder.questionCounts

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

    override fun toString(): kotlin.String = buildString {
        append("ReviewTemplatePillarReviewSummary(")
        append("notes=$notes,")
        append("pillarId=$pillarId,")
        append("pillarName=$pillarName,")
        append("questionCounts=$questionCounts")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = notes?.hashCode() ?: 0
        result = 31 * result + (pillarId?.hashCode() ?: 0)
        result = 31 * result + (pillarName?.hashCode() ?: 0)
        result = 31 * result + (questionCounts?.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 ReviewTemplatePillarReviewSummary

        if (notes != other.notes) return false
        if (pillarId != other.pillarId) return false
        if (pillarName != other.pillarName) return false
        if (questionCounts != other.questionCounts) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The notes associated with the workload.
         *
         * For a review template, these are the notes that will be associated with the workload when the template is applied.
         */
        public var notes: 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
        /**
         * The name of the pillar.
         */
        public var pillarName: kotlin.String? = null
        /**
         * A count of how many questions are answered and unanswered in the requested pillar of the lens review.
         */
        public var questionCounts: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplatePillarReviewSummary) : this() {
            this.notes = x.notes
            this.pillarId = x.pillarId
            this.pillarName = x.pillarName
            this.questionCounts = x.questionCounts
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy