commonMain.aws.sdk.kotlin.services.glue.model.MappingEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines a mapping.
*/
public class MappingEntry private constructor(builder: Builder) {
/**
* The source path.
*/
public val sourcePath: kotlin.String? = builder.sourcePath
/**
* The name of the source table.
*/
public val sourceTable: kotlin.String? = builder.sourceTable
/**
* The source type.
*/
public val sourceType: kotlin.String? = builder.sourceType
/**
* The target path.
*/
public val targetPath: kotlin.String? = builder.targetPath
/**
* The target table.
*/
public val targetTable: kotlin.String? = builder.targetTable
/**
* The target type.
*/
public val targetType: kotlin.String? = builder.targetType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.MappingEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MappingEntry(")
append("sourcePath=$sourcePath,")
append("sourceTable=$sourceTable,")
append("sourceType=$sourceType,")
append("targetPath=$targetPath,")
append("targetTable=$targetTable,")
append("targetType=$targetType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sourcePath?.hashCode() ?: 0
result = 31 * result + (sourceTable?.hashCode() ?: 0)
result = 31 * result + (sourceType?.hashCode() ?: 0)
result = 31 * result + (targetPath?.hashCode() ?: 0)
result = 31 * result + (targetTable?.hashCode() ?: 0)
result = 31 * result + (targetType?.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 MappingEntry
if (sourcePath != other.sourcePath) return false
if (sourceTable != other.sourceTable) return false
if (sourceType != other.sourceType) return false
if (targetPath != other.targetPath) return false
if (targetTable != other.targetTable) return false
if (targetType != other.targetType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.MappingEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The source path.
*/
public var sourcePath: kotlin.String? = null
/**
* The name of the source table.
*/
public var sourceTable: kotlin.String? = null
/**
* The source type.
*/
public var sourceType: kotlin.String? = null
/**
* The target path.
*/
public var targetPath: kotlin.String? = null
/**
* The target table.
*/
public var targetTable: kotlin.String? = null
/**
* The target type.
*/
public var targetType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.MappingEntry) : this() {
this.sourcePath = x.sourcePath
this.sourceTable = x.sourceTable
this.sourceType = x.sourceType
this.targetPath = x.targetPath
this.targetTable = x.targetTable
this.targetType = x.targetType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.MappingEntry = MappingEntry(this)
internal fun correctErrors(): Builder {
return this
}
}
}