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

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

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

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



public class GetProfileTemplateResponse private constructor(builder: Builder) {
    /**
     * The profile template.
     */
    public val profileTemplate: aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate? = builder.profileTemplate

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

    override fun toString(): kotlin.String = buildString {
        append("GetProfileTemplateResponse(")
        append("profileTemplate=$profileTemplate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = profileTemplate?.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 GetProfileTemplateResponse

        if (profileTemplate != other.profileTemplate) return false

        return true
    }

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

    public class Builder {
        /**
         * The profile template.
         */
        public var profileTemplate: aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.GetProfileTemplateResponse) : this() {
            this.profileTemplate = x.profileTemplate
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate] inside the given [block]
         */
        public fun profileTemplate(block: aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate.Builder.() -> kotlin.Unit) {
            this.profileTemplate = aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy