
commonMain.aws.sdk.kotlin.services.voiceid.model.DeleteFraudsterRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.voiceid.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteFraudsterRequest private constructor(builder: Builder) {
/**
* The identifier of the domain that contains the fraudster.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* The identifier of the fraudster you want to delete.
*/
public val fraudsterId: kotlin.String = requireNotNull(builder.fraudsterId) { "A non-null value must be provided for fraudsterId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.DeleteFraudsterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFraudsterRequest(")
append("domainId=$domainId,")
append("fraudsterId=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainId.hashCode()
result = 31 * result + (fraudsterId.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 DeleteFraudsterRequest
if (domainId != other.domainId) return false
if (fraudsterId != other.fraudsterId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.DeleteFraudsterRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the domain that contains the fraudster.
*/
public var domainId: kotlin.String? = null
/**
* The identifier of the fraudster you want to delete.
*/
public var fraudsterId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.DeleteFraudsterRequest) : this() {
this.domainId = x.domainId
this.fraudsterId = x.fraudsterId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.voiceid.model.DeleteFraudsterRequest = DeleteFraudsterRequest(this)
internal fun correctErrors(): Builder {
if (domainId == null) domainId = ""
if (fraudsterId == null) fraudsterId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy