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

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

public class UpdateReviewTemplateRequest private constructor(builder: Builder) {
    /**
     * The review template description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A list of lens aliases or ARNs to apply to the review template.
     */
    public val lensesToAssociate: List? = builder.lensesToAssociate
    /**
     * A list of lens aliases or ARNs to unapply to the review template. The `wellarchitected` lens cannot be unapplied.
     */
    public val lensesToDisassociate: List? = builder.lensesToDisassociate
    /**
     * 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 review template ARN.
     */
    public val templateArn: kotlin.String? = builder.templateArn
    /**
     * The review template name.
     */
    public val templateName: kotlin.String? = builder.templateName

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateReviewTemplateRequest(")
        append("description=$description,")
        append("lensesToAssociate=$lensesToAssociate,")
        append("lensesToDisassociate=$lensesToDisassociate,")
        append("notes=$notes,")
        append("templateArn=$templateArn,")
        append("templateName=$templateName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (lensesToAssociate?.hashCode() ?: 0)
        result = 31 * result + (lensesToDisassociate?.hashCode() ?: 0)
        result = 31 * result + (notes?.hashCode() ?: 0)
        result = 31 * result + (templateArn?.hashCode() ?: 0)
        result = 31 * result + (templateName?.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 UpdateReviewTemplateRequest

        if (description != other.description) return false
        if (lensesToAssociate != other.lensesToAssociate) return false
        if (lensesToDisassociate != other.lensesToDisassociate) return false
        if (notes != other.notes) return false
        if (templateArn != other.templateArn) return false
        if (templateName != other.templateName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The review template description.
         */
        public var description: kotlin.String? = null
        /**
         * A list of lens aliases or ARNs to apply to the review template.
         */
        public var lensesToAssociate: List? = null
        /**
         * A list of lens aliases or ARNs to unapply to the review template. The `wellarchitected` lens cannot be unapplied.
         */
        public var lensesToDisassociate: List? = null
        /**
         * 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 review template ARN.
         */
        public var templateArn: kotlin.String? = null
        /**
         * The review template name.
         */
        public var templateName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateRequest) : this() {
            this.description = x.description
            this.lensesToAssociate = x.lensesToAssociate
            this.lensesToDisassociate = x.lensesToDisassociate
            this.notes = x.notes
            this.templateArn = x.templateArn
            this.templateName = x.templateName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy