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

commonMain.aws.sdk.kotlin.services.lookoutvision.model.InputS3Object.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutvision.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Amazon S3 Location information for an input manifest file.
 */
public class InputS3Object private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket that contains the manifest.
     */
    public val bucket: kotlin.String? = builder.bucket
    /**
     * The name and location of the manifest file withiin the bucket.
     */
    public val key: kotlin.String? = builder.key
    /**
     * The version ID of the bucket.
     */
    public val versionId: kotlin.String? = builder.versionId

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

    override fun toString(): kotlin.String = buildString {
        append("InputS3Object(")
        append("bucket=$bucket,")
        append("key=$key,")
        append("versionId=$versionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bucket?.hashCode() ?: 0
        result = 31 * result + (key?.hashCode() ?: 0)
        result = 31 * result + (versionId?.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 InputS3Object

        if (bucket != other.bucket) return false
        if (key != other.key) return false
        if (versionId != other.versionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon S3 bucket that contains the manifest.
         */
        public var bucket: kotlin.String? = null
        /**
         * The name and location of the manifest file withiin the bucket.
         */
        public var key: kotlin.String? = null
        /**
         * The version ID of the bucket.
         */
        public var versionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.InputS3Object) : this() {
            this.bucket = x.bucket
            this.key = x.key
            this.versionId = x.versionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy