commonMain.aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The input source of the ID mapping table.
*/
public class IdMappingTableInputSource private constructor(builder: Builder) {
/**
* The unique identifier of the ID namespace association.
*/
public val idNamespaceAssociationId: kotlin.String = requireNotNull(builder.idNamespaceAssociationId) { "A non-null value must be provided for idNamespaceAssociationId" }
/**
* The type of the input source of the ID mapping table.
*/
public val type: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdMappingTableInputSource(")
append("idNamespaceAssociationId=$idNamespaceAssociationId,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = idNamespaceAssociationId.hashCode()
result = 31 * result + (type.hashCode())
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 IdMappingTableInputSource
if (idNamespaceAssociationId != other.idNamespaceAssociationId) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputSource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the ID namespace association.
*/
public var idNamespaceAssociationId: kotlin.String? = null
/**
* The type of the input source of the ID mapping table.
*/
public var type: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputSource) : this() {
this.idNamespaceAssociationId = x.idNamespaceAssociationId
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputSource = IdMappingTableInputSource(this)
internal fun correctErrors(): Builder {
if (idNamespaceAssociationId == null) idNamespaceAssociationId = ""
if (type == null) type = IdNamespaceType.SdkUnknown("no value provided")
return this
}
}
}