
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
/**
* The output properties for a detection job.
*/
public class OutputDataConfig private constructor(builder: Builder) {
/**
* When you use the `OutputDataConfig` object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output.
*/
public val s3Bucket: kotlin.String = requireNotNull(builder.s3Bucket) { "A non-null value must be provided for s3Bucket" }
/**
* The path to the output data files in the S3 bucket. Amazon Comprehend Medical creates an output directory using the job ID so that the output from one job does not overwrite the output of another.
*/
public val s3Key: kotlin.String? = builder.s3Key
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OutputDataConfig(")
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 OutputDataConfig
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.OutputDataConfig = Builder(this).apply(block).build()
public class Builder {
/**
* When you use the `OutputDataConfig` object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output.
*/
public var s3Bucket: kotlin.String? = null
/**
* The path to the output data files in the S3 bucket. Amazon Comprehend Medical creates an output directory using the job ID so that the output from one job does not overwrite the output of another.
*/
public var s3Key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig) : this() {
this.s3Bucket = x.s3Bucket
this.s3Key = x.s3Key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig = OutputDataConfig(this)
internal fun correctErrors(): Builder {
if (s3Bucket == null) s3Bucket = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy