
commonMain.aws.sdk.kotlin.services.qbusiness.model.DeleteDocument.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* A document deleted from an Amazon Q Business data source connector.
*/
public class DeleteDocument private constructor(builder: Builder) {
/**
* The identifier of the deleted document.
*/
public val documentId: kotlin.String = requireNotNull(builder.documentId) { "A non-null value must be provided for documentId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.DeleteDocument = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDocument(")
append("documentId=$documentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentId.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 DeleteDocument
if (documentId != other.documentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.DeleteDocument = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the deleted document.
*/
public var documentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.DeleteDocument) : this() {
this.documentId = x.documentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.DeleteDocument = DeleteDocument(this)
internal fun correctErrors(): Builder {
if (documentId == null) documentId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy