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

commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.S3Location.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticbeanstalk.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The bucket and key of an item stored in Amazon S3.
 */
public class S3Location private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket where the data is located.
     */
    public val s3Bucket: kotlin.String? = builder.s3Bucket
    /**
     * The Amazon S3 key where the data is located.
     */
    public val s3Key: kotlin.String? = builder.s3Key

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

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

    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
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon S3 bucket where the data is located.
         */
        public var s3Bucket: kotlin.String? = null
        /**
         * The Amazon S3 key where the data is located.
         */
        public var s3Key: kotlin.String? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy