commonMain.aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques.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
/**
* An object which defines the ID mapping technique and any additional configurations.
*/
public class IdMappingTechniques private constructor(builder: Builder) {
/**
* The type of ID mapping.
*/
public val idMappingType: aws.sdk.kotlin.services.entityresolution.model.IdMappingType = requireNotNull(builder.idMappingType) { "A non-null value must be provided for idMappingType" }
/**
* An object which defines any additional configurations required by the provider service.
*/
public val providerProperties: aws.sdk.kotlin.services.entityresolution.model.ProviderProperties? = builder.providerProperties
/**
* An object which defines any additional configurations required by rule-based matching.
*/
public val ruleBasedProperties: aws.sdk.kotlin.services.entityresolution.model.IdMappingRuleBasedProperties? = builder.ruleBasedProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdMappingTechniques(")
append("idMappingType=$idMappingType,")
append("providerProperties=$providerProperties,")
append("ruleBasedProperties=$ruleBasedProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = idMappingType.hashCode()
result = 31 * result + (providerProperties?.hashCode() ?: 0)
result = 31 * result + (ruleBasedProperties?.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 IdMappingTechniques
if (idMappingType != other.idMappingType) return false
if (providerProperties != other.providerProperties) return false
if (ruleBasedProperties != other.ruleBasedProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of ID mapping.
*/
public var idMappingType: aws.sdk.kotlin.services.entityresolution.model.IdMappingType? = null
/**
* An object which defines any additional configurations required by the provider service.
*/
public var providerProperties: aws.sdk.kotlin.services.entityresolution.model.ProviderProperties? = null
/**
* An object which defines any additional configurations required by rule-based matching.
*/
public var ruleBasedProperties: aws.sdk.kotlin.services.entityresolution.model.IdMappingRuleBasedProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques) : this() {
this.idMappingType = x.idMappingType
this.providerProperties = x.providerProperties
this.ruleBasedProperties = x.ruleBasedProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.IdMappingTechniques = IdMappingTechniques(this)
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.ProviderProperties] inside the given [block]
*/
public fun providerProperties(block: aws.sdk.kotlin.services.entityresolution.model.ProviderProperties.Builder.() -> kotlin.Unit) {
this.providerProperties = aws.sdk.kotlin.services.entityresolution.model.ProviderProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.IdMappingRuleBasedProperties] inside the given [block]
*/
public fun ruleBasedProperties(block: aws.sdk.kotlin.services.entityresolution.model.IdMappingRuleBasedProperties.Builder.() -> kotlin.Unit) {
this.ruleBasedProperties = aws.sdk.kotlin.services.entityresolution.model.IdMappingRuleBasedProperties.invoke(block)
}
internal fun correctErrors(): Builder {
if (idMappingType == null) idMappingType = IdMappingType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy