
commonMain.aws.sdk.kotlin.services.comprehendmedical.model.StartRxNormInferenceJobRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehendmedical.model
public class StartRxNormInferenceJobRequest 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. For more information, see [ Role-Based Permissions Required for Asynchronous Operations](https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
*/
public val dataAccessRoleArn: kotlin.String? = builder.dataAccessRoleArn
/**
* Specifies the format and location of the input data for the job.
*/
public val inputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig? = builder.inputDataConfig
/**
* The identifier of the job.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* An AWS Key Management Service key 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
/**
* Specifies where to send the output files.
*/
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.StartRxNormInferenceJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartRxNormInferenceJobRequest(")
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 StartRxNormInferenceJobRequest
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.StartRxNormInferenceJobRequest = 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. For more information, see [ Role-Based Permissions Required for Asynchronous Operations](https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
*/
public var dataAccessRoleArn: kotlin.String? = null
/**
* Specifies the format and location of the input data for the job.
*/
public var inputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.InputDataConfig? = null
/**
* The identifier of the job.
*/
public var jobName: kotlin.String? = null
/**
* An AWS Key Management Service key 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
/**
* Specifies where to send the output files.
*/
public var outputDataConfig: aws.sdk.kotlin.services.comprehendmedical.model.OutputDataConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehendmedical.model.StartRxNormInferenceJobRequest) : 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.StartRxNormInferenceJobRequest = StartRxNormInferenceJobRequest(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