commonMain.aws.sdk.kotlin.services.entityresolution.model.CreateMatchingWorkflowRequest.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 CreateMatchingWorkflowRequest private constructor(builder: Builder) {
/**
* A description of the workflow.
*/
public val description: kotlin.String? = builder.description
/**
* An object which defines an incremental run type and has only `incrementalRunType` as a field.
*/
public val incrementalRunConfig: aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig? = builder.incrementalRunConfig
/**
* A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
*/
public val inputSourceConfig: List? = builder.inputSourceConfig
/**
* A list of `OutputSource` objects, each of which contains fields `OutputS3Path`, `ApplyNormalization`, and `Output`.
*/
public val outputSourceConfig: List? = builder.outputSourceConfig
/**
* An object which defines the `resolutionType` and the `ruleBasedProperties`.
*/
public val resolutionTechniques: aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques? = builder.resolutionTechniques
/**
* 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 tags used to organize, track, or control access for this resource.
*/
public val tags: Map? = builder.tags
/**
* The name of the workflow. There can't be multiple `MatchingWorkflows` with the same name.
*/
public val workflowName: kotlin.String? = builder.workflowName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.CreateMatchingWorkflowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMatchingWorkflowRequest(")
append("description=$description,")
append("incrementalRunConfig=$incrementalRunConfig,")
append("inputSourceConfig=$inputSourceConfig,")
append("outputSourceConfig=$outputSourceConfig,")
append("resolutionTechniques=$resolutionTechniques,")
append("roleArn=$roleArn,")
append("tags=$tags,")
append("workflowName=$workflowName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (incrementalRunConfig?.hashCode() ?: 0)
result = 31 * result + (inputSourceConfig?.hashCode() ?: 0)
result = 31 * result + (outputSourceConfig?.hashCode() ?: 0)
result = 31 * result + (resolutionTechniques?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (workflowName?.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 CreateMatchingWorkflowRequest
if (description != other.description) return false
if (incrementalRunConfig != other.incrementalRunConfig) return false
if (inputSourceConfig != other.inputSourceConfig) return false
if (outputSourceConfig != other.outputSourceConfig) return false
if (resolutionTechniques != other.resolutionTechniques) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
if (workflowName != other.workflowName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.CreateMatchingWorkflowRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the workflow.
*/
public var description: kotlin.String? = null
/**
* An object which defines an incremental run type and has only `incrementalRunType` as a field.
*/
public var incrementalRunConfig: aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig? = null
/**
* A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
*/
public var inputSourceConfig: List? = null
/**
* A list of `OutputSource` objects, each of which contains fields `OutputS3Path`, `ApplyNormalization`, and `Output`.
*/
public var outputSourceConfig: List? = null
/**
* An object which defines the `resolutionType` and the `ruleBasedProperties`.
*/
public var resolutionTechniques: aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques? = 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? = null
/**
* The tags used to organize, track, or control access for this resource.
*/
public var tags: Map? = null
/**
* The name of the workflow. There can't be multiple `MatchingWorkflows` with the same name.
*/
public var workflowName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.CreateMatchingWorkflowRequest) : this() {
this.description = x.description
this.incrementalRunConfig = x.incrementalRunConfig
this.inputSourceConfig = x.inputSourceConfig
this.outputSourceConfig = x.outputSourceConfig
this.resolutionTechniques = x.resolutionTechniques
this.roleArn = x.roleArn
this.tags = x.tags
this.workflowName = x.workflowName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.CreateMatchingWorkflowRequest = CreateMatchingWorkflowRequest(this)
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig] inside the given [block]
*/
public fun incrementalRunConfig(block: aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig.Builder.() -> kotlin.Unit) {
this.incrementalRunConfig = aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques] inside the given [block]
*/
public fun resolutionTechniques(block: aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques.Builder.() -> kotlin.Unit) {
this.resolutionTechniques = aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy