
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
/**
* The input properties for an entities detection job. This includes the name of the S3 bucket and the path to the files to be analyzed.
*/
public class InputDataConfig private constructor(builder: Builder) {
/**
* The URI of the S3 bucket that contains the input data. The bucket must be in the same region as the API endpoint that you are calling.
*/
public val s3Bucket: kotlin.String = requireNotNull(builder.s3Bucket) { "A non-null value must be provided for s3Bucket" }
/**
* The path to the input data files in the S3 bucket.
*/
public val s3Key: kotlin.String? = builder.s3Key
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputDataConfig(")
append("s3Bucket=$s3Bucket,")
append("s3Key=$s3Key")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Bucket.hashCode()
result = 31 * result + (s3Key?.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 InputDataConfig
if (s3Bucket != other.s3Bucket) return false
if (s3Key != other.s3Key) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The URI of the S3 bucket that contains the input data. The bucket must be in the same region as the API endpoint that you are calling.
*/
public var s3Bucket: kotlin.String? = null
/**
* The path to the input data files in the S3 bucket.
*/
public var s3Key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig) : this() {
this.s3Bucket = x.s3Bucket
this.s3Key = x.s3Key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig = InputDataConfig(this)
internal fun correctErrors(): Builder {
if (s3Bucket == null) s3Bucket = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy