commonMain.aws.sdk.kotlin.services.entityresolution.model.CreateSchemaMappingRequest.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 CreateSchemaMappingRequest private constructor(builder: Builder) {
/**
* A description of the schema.
*/
public val description: kotlin.String? = builder.description
/**
* A list of `MappedInputFields`. Each `MappedInputField` corresponds to a column the source data table, and contains column name plus additional information that Entity Resolution uses for matching.
*/
public val mappedInputFields: List? = builder.mappedInputFields
/**
* The name of the schema. There can't be multiple `SchemaMappings` with the same name.
*/
public val schemaName: kotlin.String? = builder.schemaName
/**
* The tags used to organize, track, or control access for this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.CreateSchemaMappingRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSchemaMappingRequest(")
append("description=$description,")
append("mappedInputFields=$mappedInputFields,")
append("schemaName=$schemaName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (mappedInputFields?.hashCode() ?: 0)
result = 31 * result + (schemaName?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateSchemaMappingRequest
if (description != other.description) return false
if (mappedInputFields != other.mappedInputFields) return false
if (schemaName != other.schemaName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.CreateSchemaMappingRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the schema.
*/
public var description: kotlin.String? = null
/**
* A list of `MappedInputFields`. Each `MappedInputField` corresponds to a column the source data table, and contains column name plus additional information that Entity Resolution uses for matching.
*/
public var mappedInputFields: List? = null
/**
* The name of the schema. There can't be multiple `SchemaMappings` with the same name.
*/
public var schemaName: kotlin.String? = null
/**
* The tags used to organize, track, or control access for this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.CreateSchemaMappingRequest) : this() {
this.description = x.description
this.mappedInputFields = x.mappedInputFields
this.schemaName = x.schemaName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.CreateSchemaMappingRequest = CreateSchemaMappingRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy