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

commonMain.aws.sdk.kotlin.services.appstream.model.CreateAppBlockResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model



class CreateAppBlockResponse private constructor(builder: Builder) {
    /**
     * The app block.
     */
    val appBlock: aws.sdk.kotlin.services.appstream.model.AppBlock? = builder.appBlock

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

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

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

        if (appBlock != other.appBlock) return false

        return true
    }

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

    class Builder {
        /**
         * The app block.
         */
        var appBlock: aws.sdk.kotlin.services.appstream.model.AppBlock? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.CreateAppBlockResponse) : this() {
            this.appBlock = x.appBlock
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy