
commonMain.aws.sdk.kotlin.services.comprehend.model.PiiOutputDataConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
/**
* Provides configuration parameters for the output of PII entity detection jobs.
*/
public class PiiOutputDataConfig private constructor(builder: Builder) {
/**
* ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job.
*/
public val kmsKeyId: kotlin.String? = builder.kmsKeyId
/**
* When you use the `PiiOutputDataConfig` object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data.
*
* For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with `.out` appended at the end.
*/
public val s3Uri: kotlin.String? = builder.s3Uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.PiiOutputDataConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PiiOutputDataConfig(")
append("kmsKeyId=$kmsKeyId,")
append("s3Uri=$s3Uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsKeyId?.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 PiiOutputDataConfig
if (kmsKeyId != other.kmsKeyId) return false
if (s3Uri != other.s3Uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.PiiOutputDataConfig = Builder(this).apply(block).build()
public class Builder {
/**
* ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job.
*/
public var kmsKeyId: kotlin.String? = null
/**
* When you use the `PiiOutputDataConfig` object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data.
*
* For a PII entity detection job, the output file is plain text, not a compressed archive. The output file name is the same as the input file, with `.out` appended at the end.
*/
public var s3Uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.PiiOutputDataConfig) : this() {
this.kmsKeyId = x.kmsKeyId
this.s3Uri = x.s3Uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.PiiOutputDataConfig = PiiOutputDataConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy