commonMain.aws.sdk.kotlin.services.entityresolution.model.IdNamespaceIdMappingWorkflowProperties.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.entityresolution.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object containing `IdMappingType`, `ProviderProperties`, and `RuleBasedProperties`.
*/
public class IdNamespaceIdMappingWorkflowProperties 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.NamespaceProviderProperties? = builder.providerProperties
/**
* An object which defines any additional configurations required by rule-based matching.
*/
public val ruleBasedProperties: aws.sdk.kotlin.services.entityresolution.model.NamespaceRuleBasedProperties? = builder.ruleBasedProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.IdNamespaceIdMappingWorkflowProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdNamespaceIdMappingWorkflowProperties(")
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 IdNamespaceIdMappingWorkflowProperties
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.IdNamespaceIdMappingWorkflowProperties = 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.NamespaceProviderProperties? = null
/**
* An object which defines any additional configurations required by rule-based matching.
*/
public var ruleBasedProperties: aws.sdk.kotlin.services.entityresolution.model.NamespaceRuleBasedProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.IdNamespaceIdMappingWorkflowProperties) : this() {
this.idMappingType = x.idMappingType
this.providerProperties = x.providerProperties
this.ruleBasedProperties = x.ruleBasedProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.IdNamespaceIdMappingWorkflowProperties = IdNamespaceIdMappingWorkflowProperties(this)
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.NamespaceProviderProperties] inside the given [block]
*/
public fun providerProperties(block: aws.sdk.kotlin.services.entityresolution.model.NamespaceProviderProperties.Builder.() -> kotlin.Unit) {
this.providerProperties = aws.sdk.kotlin.services.entityresolution.model.NamespaceProviderProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.entityresolution.model.NamespaceRuleBasedProperties] inside the given [block]
*/
public fun ruleBasedProperties(block: aws.sdk.kotlin.services.entityresolution.model.NamespaceRuleBasedProperties.Builder.() -> kotlin.Unit) {
this.ruleBasedProperties = aws.sdk.kotlin.services.entityresolution.model.NamespaceRuleBasedProperties.invoke(block)
}
internal fun correctErrors(): Builder {
if (idMappingType == null) idMappingType = IdMappingType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy