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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateParallelDataRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A custom description for the parallel data resource in Amazon Translate.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the parallel data resource being updated.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Specifies the format and S3 location of the parallel data input file.
     */
    public val parallelDataConfig: aws.sdk.kotlin.services.translate.model.ParallelDataConfig? = builder.parallelDataConfig

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateParallelDataRequest(")
        append("clientToken=$clientToken,")
        append("description=$description,")
        append("name=$name,")
        append("parallelDataConfig=$parallelDataConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (parallelDataConfig?.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 UpdateParallelDataRequest

        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (parallelDataConfig != other.parallelDataConfig) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A custom description for the parallel data resource in Amazon Translate.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the parallel data resource being updated.
         */
        public var name: kotlin.String? = null
        /**
         * Specifies the format and S3 location of the parallel data input file.
         */
        public var parallelDataConfig: aws.sdk.kotlin.services.translate.model.ParallelDataConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.translate.model.UpdateParallelDataRequest) : this() {
            this.clientToken = x.clientToken
            this.description = x.description
            this.name = x.name
            this.parallelDataConfig = x.parallelDataConfig
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.translate.model.ParallelDataConfig] inside the given [block]
         */
        public fun parallelDataConfig(block: aws.sdk.kotlin.services.translate.model.ParallelDataConfig.Builder.() -> kotlin.Unit) {
            this.parallelDataConfig = aws.sdk.kotlin.services.translate.model.ParallelDataConfig.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy