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

commonMain.aws.sdk.kotlin.services.appstream.model.S3Location.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



/**
 * Describes the S3 location.
 */
class S3Location private constructor(builder: Builder) {
    /**
     * The S3 bucket of the S3 object.
     */
    val s3Bucket: kotlin.String? = builder.s3Bucket
    /**
     * The S3 key of the S3 object.
     */
    val s3Key: kotlin.String? = builder.s3Key

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

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

    override fun hashCode(): kotlin.Int {
        var result = s3Bucket?.hashCode() ?: 0
        result = 31 * result + (s3Key?.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 (s3Bucket != other.s3Bucket) return false
        if (s3Key != other.s3Key) return false

        return true
    }

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

    class Builder {
        /**
         * The S3 bucket of the S3 object.
         */
        var s3Bucket: kotlin.String? = null
        /**
         * The S3 key of the S3 object.
         */
        var s3Key: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.S3Location) : this() {
            this.s3Bucket = x.s3Bucket
            this.s3Key = x.s3Key
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy