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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.CreateReviewTemplateRequest.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 CreateReviewTemplateRequest private constructor(builder: Builder) {
    /**
     * A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
     *
     * You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
     *
     * This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The review template description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Lenses applied to the review template.
     */
    public val lenses: List? = builder.lenses
    /**
     * 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 tags assigned to the review template.
     */
    public val tags: Map? = builder.tags
    /**
     * Name of the review template.
     */
    public val templateName: kotlin.String? = builder.templateName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateReviewTemplateRequest(")
        append("clientRequestToken=$clientRequestToken,")
        append("description=$description,")
        append("lenses=$lenses,")
        append("notes=$notes,")
        append("tags=$tags,")
        append("templateName=$templateName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (lenses?.hashCode() ?: 0)
        result = 31 * result + (notes?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateReviewTemplateRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (description != other.description) return false
        if (lenses != other.lenses) return false
        if (notes != other.notes) return false
        if (tags != other.tags) return false
        if (templateName != other.templateName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
         *
         * You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
         *
         * This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The review template description.
         */
        public var description: kotlin.String? = null
        /**
         * Lenses applied to the review template.
         */
        public var lenses: 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 tags assigned to the review template.
         */
        public var tags: Map? = null
        /**
         * Name of the review template.
         */
        public var templateName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.CreateReviewTemplateRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.description = x.description
            this.lenses = x.lenses
            this.notes = x.notes
            this.tags = x.tags
            this.templateName = x.templateName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy