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

commonMain.aws.sdk.kotlin.services.codestar.model.ToolchainSource.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codestar.model



/**
 * The Amazon S3 location where the toolchain template file provided with the project request is stored. AWS CodeStar retrieves the file during project creation.
 */
public class ToolchainSource private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket where the toolchain template file provided with the project request is stored.
     */
    public val s3: aws.sdk.kotlin.services.codestar.model.S3Location? = builder.s3

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

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

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

        if (s3 != other.s3) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon S3 bucket where the toolchain template file provided with the project request is stored.
         */
        public var s3: aws.sdk.kotlin.services.codestar.model.S3Location? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.ToolchainSource) : this() {
            this.s3 = x.s3
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy