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

commonMain.aws.sdk.kotlin.services.codestar.model.S3Location.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 source code files provided with the project request are stored.
 */
public class S3Location private constructor(builder: Builder) {
    /**
     * The Amazon S3 object key where the source code files provided with the project request are stored.
     */
    public val bucketKey: kotlin.String? = builder.bucketKey
    /**
     * The Amazon S3 bucket name where the source code files provided with the project request are stored.
     */
    public val bucketName: kotlin.String? = builder.bucketName

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

    override fun toString(): kotlin.String = buildString {
        append("S3Location(")
        append("bucketKey=$bucketKey,")
        append("bucketName=$bucketName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bucketKey?.hashCode() ?: 0
        result = 31 * result + (bucketName?.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 S3Location

        if (bucketKey != other.bucketKey) return false
        if (bucketName != other.bucketName) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon S3 object key where the source code files provided with the project request are stored.
         */
        public var bucketKey: kotlin.String? = null
        /**
         * The Amazon S3 bucket name where the source code files provided with the project request are stored.
         */
        public var bucketName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.S3Location) : this() {
            this.bucketKey = x.bucketKey
            this.bucketName = x.bucketName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy