commonMain.aws.sdk.kotlin.services.entityresolution.model.CreateIdMappingWorkflowResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entityresolution-jvm Show documentation
Show all versions of entityresolution-jvm Show documentation
The AWS SDK for Kotlin client for EntityResolution
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.entityresolution.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateIdMappingWorkflowResponse private constructor(builder: Builder) {
/**
* A description of the workflow.
*/
public val description: kotlin.String? = builder.description
/**
* An object which defines the ID mapping technique and any additional configurations.
*/
public val idMappingTechniques: aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques? = builder.idMappingTechniques
/**
* A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
*/
public val inputSourceConfig: List = requireNotNull(builder.inputSourceConfig) { "A non-null value must be provided for inputSourceConfig" }
/**
* A list of `IdMappingWorkflowOutputSource` objects, each of which contains fields `OutputS3Path` and `Output`.
*/
public val outputSourceConfig: List? = builder.outputSourceConfig
/**
* The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
*/
public val roleArn: kotlin.String = builder.roleArn
/**
* The ARN (Amazon Resource Name) that Entity Resolution generated for the `IDMappingWorkflow`.
*/
public val workflowArn: kotlin.String = requireNotNull(builder.workflowArn) { "A non-null value must be provided for workflowArn" }
/**
* The name of the workflow.
*/
public val workflowName: kotlin.String = requireNotNull(builder.workflowName) { "A non-null value must be provided for workflowName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.CreateIdMappingWorkflowResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateIdMappingWorkflowResponse(")
append("description=$description,")
append("idMappingTechniques=$idMappingTechniques,")
append("inputSourceConfig=$inputSourceConfig,")
append("outputSourceConfig=$outputSourceConfig,")
append("roleArn=$roleArn,")
append("workflowArn=$workflowArn,")
append("workflowName=$workflowName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (idMappingTechniques?.hashCode() ?: 0)
result = 31 * result + (inputSourceConfig.hashCode())
result = 31 * result + (outputSourceConfig?.hashCode() ?: 0)
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (workflowArn.hashCode())
result = 31 * result + (workflowName.hashCode())
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 CreateIdMappingWorkflowResponse
if (description != other.description) return false
if (idMappingTechniques != other.idMappingTechniques) return false
if (inputSourceConfig != other.inputSourceConfig) return false
if (outputSourceConfig != other.outputSourceConfig) return false
if (roleArn != other.roleArn) return false
if (workflowArn != other.workflowArn) return false
if (workflowName != other.workflowName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.CreateIdMappingWorkflowResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the workflow.
*/
public var description: kotlin.String? = null
/**
* An object which defines the ID mapping technique and any additional configurations.
*/
public var idMappingTechniques: aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques? = null
/**
* A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
*/
public var inputSourceConfig: List? = null
/**
* A list of `IdMappingWorkflowOutputSource` objects, each of which contains fields `OutputS3Path` and `Output`.
*/
public var outputSourceConfig: List? = null
/**
* The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
*/
public var roleArn: kotlin.String = ""
/**
* The ARN (Amazon Resource Name) that Entity Resolution generated for the `IDMappingWorkflow`.
*/
public var workflowArn: kotlin.String? = null
/**
* The name of the workflow.
*/
public var workflowName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.CreateIdMappingWorkflowResponse) : this() {
this.description = x.description
this.idMappingTechniques = x.idMappingTechniques
this.inputSourceConfig = x.inputSourceConfig
this.outputSourceConfig = x.outputSourceConfig
this.roleArn = x.roleArn
this.workflowArn = x.workflowArn
this.workflowName = x.workflowName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.CreateIdMappingWorkflowResponse = CreateIdMappingWorkflowResponse(this)
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques] inside the given [block]
*/
public fun idMappingTechniques(block: aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques.Builder.() -> kotlin.Unit) {
this.idMappingTechniques = aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques.invoke(block)
}
internal fun correctErrors(): Builder {
if (inputSourceConfig == null) inputSourceConfig = emptyList()
if (workflowArn == null) workflowArn = ""
if (workflowName == null) workflowName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy