commonMain.aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdError.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
/**
* The Delete Unique Id error.
*/
public class DeleteUniqueIdError private constructor(builder: Builder) {
/**
* The error type for the batch delete unique ID operation.
*/
public val errorType: aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdErrorType = requireNotNull(builder.errorType) { "A non-null value must be provided for errorType" }
/**
* The unique ID that could not be deleted.
*/
public val uniqueId: kotlin.String = requireNotNull(builder.uniqueId) { "A non-null value must be provided for uniqueId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteUniqueIdError(")
append("errorType=$errorType,")
append("uniqueId=$uniqueId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorType.hashCode()
result = 31 * result + (uniqueId.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 DeleteUniqueIdError
if (errorType != other.errorType) return false
if (uniqueId != other.uniqueId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdError = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The error type for the batch delete unique ID operation.
*/
public var errorType: aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdErrorType? = null
/**
* The unique ID that could not be deleted.
*/
public var uniqueId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdError) : this() {
this.errorType = x.errorType
this.uniqueId = x.uniqueId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdError = DeleteUniqueIdError(this)
internal fun correctErrors(): Builder {
if (errorType == null) errorType = DeleteUniqueIdErrorType.SdkUnknown("no value provided")
if (uniqueId == null) uniqueId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy