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

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

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

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



/**
 * The S3 location where Amazon Lookout for Vision saves training output.
 */
public class OutputS3Object private constructor(builder: Builder) {
    /**
     * The bucket that contains the training output.
     */
    public val bucket: kotlin.String? = builder.bucket
    /**
     * The location of the training output in the bucket.
     */
    public val key: kotlin.String? = builder.key

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * The bucket that contains the training output.
         */
        public var bucket: kotlin.String? = null
        /**
         * The location of the training output in the bucket.
         */
        public var key: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy