commonMain.aws.sdk.kotlin.services.datazone.model.DeleteDomainRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteDomainRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The identifier of the Amazon Web Services domain that is to be deleted.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* Specifies the optional flag to delete all child entities within the domain.
*/
public val skipDeletionCheck: kotlin.Boolean? = builder.skipDeletionCheck
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.DeleteDomainRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDomainRequest(")
append("clientToken=$clientToken,")
append("identifier=$identifier,")
append("skipDeletionCheck=$skipDeletionCheck")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (skipDeletionCheck?.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 DeleteDomainRequest
if (clientToken != other.clientToken) return false
if (identifier != other.identifier) return false
if (skipDeletionCheck != other.skipDeletionCheck) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.DeleteDomainRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* The identifier of the Amazon Web Services domain that is to be deleted.
*/
public var identifier: kotlin.String? = null
/**
* Specifies the optional flag to delete all child entities within the domain.
*/
public var skipDeletionCheck: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.DeleteDomainRequest) : this() {
this.clientToken = x.clientToken
this.identifier = x.identifier
this.skipDeletionCheck = x.skipDeletionCheck
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.DeleteDomainRequest = DeleteDomainRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy