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

commonMain.aws.sdk.kotlin.services.translate.model.ParallelDataDataLocation.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.translate.model



/**
 * The location of the most recent parallel data input file that was successfully imported into Amazon Translate.
 */
public class ParallelDataDataLocation private constructor(builder: Builder) {
    /**
     * The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30-minute expiration.
     *
     * Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
     *
     * CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
     *
     * Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
     */
    public val location: kotlin.String? = builder.location
    /**
     * Describes the repository that contains the parallel data input file.
     */
    public val repositoryType: kotlin.String? = builder.repositoryType

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

    override fun toString(): kotlin.String = buildString {
        append("ParallelDataDataLocation(")
        append("location=$location,")
        append("repositoryType=$repositoryType")
        append(")")
    }

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

        if (location != other.location) return false
        if (repositoryType != other.repositoryType) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30-minute expiration.
         *
         * Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
         *
         * CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
         *
         * Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
         */
        public var location: kotlin.String? = null
        /**
         * Describes the repository that contains the parallel data input file.
         */
        public var repositoryType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.translate.model.ParallelDataDataLocation) : this() {
            this.location = x.location
            this.repositoryType = x.repositoryType
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy