
commonMain.aws.sdk.kotlin.services.voiceid.model.DeleteDomainRequest.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 DeleteDomainRequest private constructor(builder: Builder) {
/**
* The identifier of the domain you want to delete.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.DeleteDomainRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDomainRequest(")
append("domainId=$domainId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainId.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 DeleteDomainRequest
if (domainId != other.domainId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.DeleteDomainRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the domain you want to delete.
*/
public var domainId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.DeleteDomainRequest) : this() {
this.domainId = x.domainId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.voiceid.model.DeleteDomainRequest = DeleteDomainRequest(this)
internal fun correctErrors(): Builder {
if (domainId == null) domainId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy