commonMain.aws.sdk.kotlin.services.translate.model.ParallelDataConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translate-jvm Show documentation
Show all versions of translate-jvm Show documentation
The AWS SDK for Kotlin client for Translate
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.translate.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the format and S3 location of the parallel data input file.
*/
public class ParallelDataConfig private constructor(builder: Builder) {
/**
* The format of the parallel data input file.
*/
public val format: aws.sdk.kotlin.services.translate.model.ParallelDataFormat? = builder.format
/**
* The URI of the Amazon S3 folder that contains the parallel data input file. The folder must be in the same Region as the API endpoint you are calling.
*/
public val s3Uri: kotlin.String? = builder.s3Uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.translate.model.ParallelDataConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParallelDataConfig(")
append("format=$format,")
append("s3Uri=$s3Uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = format?.hashCode() ?: 0
result = 31 * result + (s3Uri?.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 ParallelDataConfig
if (format != other.format) return false
if (s3Uri != other.s3Uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.translate.model.ParallelDataConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The format of the parallel data input file.
*/
public var format: aws.sdk.kotlin.services.translate.model.ParallelDataFormat? = null
/**
* The URI of the Amazon S3 folder that contains the parallel data input file. The folder must be in the same Region as the API endpoint you are calling.
*/
public var s3Uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.translate.model.ParallelDataConfig) : this() {
this.format = x.format
this.s3Uri = x.s3Uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.translate.model.ParallelDataConfig = ParallelDataConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}