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

commonMain.aws.sdk.kotlin.services.comprehendmedical.model.StartSnomedctInferenceJobRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.comprehendmedical.model



public class StartSnomedctInferenceJobRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data.
     */
    public val dataAccessRoleArn: kotlin.String? = builder.dataAccessRoleArn
    /**
     * 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 val inputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig? = builder.inputDataConfig
    /**
     * The user generated name the asynchronous InferSNOMEDCT job.
     */
    public val jobName: kotlin.String? = builder.jobName
    /**
     * An AWS Key Management Service key used to encrypt your output files. If you do not specify a key, the files are written in plain text.
     */
    public val kmsKey: kotlin.String? = builder.kmsKey
    /**
     * The language of the input documents. All documents must be in the same language.
     */
    public val languageCode: aws.sdk.kotlin.services.comprehendmedical.model.LanguageCode? = builder.languageCode
    /**
     * The output properties for a detection job.
     */
    public val outputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig? = builder.outputDataConfig

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

    override fun toString(): kotlin.String = buildString {
        append("StartSnomedctInferenceJobRequest(")
        append("clientRequestToken=$clientRequestToken,")
        append("dataAccessRoleArn=$dataAccessRoleArn,")
        append("inputDataConfig=$inputDataConfig,")
        append("jobName=$jobName,")
        append("kmsKey=$kmsKey,")
        append("languageCode=$languageCode,")
        append("outputDataConfig=$outputDataConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (dataAccessRoleArn?.hashCode() ?: 0)
        result = 31 * result + (inputDataConfig?.hashCode() ?: 0)
        result = 31 * result + (jobName?.hashCode() ?: 0)
        result = 31 * result + (kmsKey?.hashCode() ?: 0)
        result = 31 * result + (languageCode?.hashCode() ?: 0)
        result = 31 * result + (outputDataConfig?.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 StartSnomedctInferenceJobRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (dataAccessRoleArn != other.dataAccessRoleArn) return false
        if (inputDataConfig != other.inputDataConfig) return false
        if (jobName != other.jobName) return false
        if (kmsKey != other.kmsKey) return false
        if (languageCode != other.languageCode) return false
        if (outputDataConfig != other.outputDataConfig) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data.
         */
        public var dataAccessRoleArn: kotlin.String? = null
        /**
         * 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 var inputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig? = null
        /**
         * The user generated name the asynchronous InferSNOMEDCT job.
         */
        public var jobName: kotlin.String? = null
        /**
         * An AWS Key Management Service key used to encrypt your output files. If you do not specify a key, the files are written in plain text.
         */
        public var kmsKey: kotlin.String? = null
        /**
         * The language of the input documents. All documents must be in the same language.
         */
        public var languageCode: aws.sdk.kotlin.services.comprehendmedical.model.LanguageCode? = null
        /**
         * The output properties for a detection job.
         */
        public var outputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.StartSnomedctInferenceJobRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.dataAccessRoleArn = x.dataAccessRoleArn
            this.inputDataConfig = x.inputDataConfig
            this.jobName = x.jobName
            this.kmsKey = x.kmsKey
            this.languageCode = x.languageCode
            this.outputDataConfig = x.outputDataConfig
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy