
commonMain.aws.sdk.kotlin.services.s3.model.DeleteObjectsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
public class DeleteObjectsResponse private constructor(builder: Builder) {
/**
* Container element for a successful delete. It identifies the object that was successfully deleted.
*/
public val deleted: List? = builder.deleted
/**
* Container for a failed delete action that describes the object that Amazon S3 attempted to delete and the error it encountered.
*/
public val errors: List? = builder.errors
/**
* If present, indicates that the requester was successfully charged for the request.
*
* This functionality is not supported for directory buckets.
*/
public val requestCharged: aws.sdk.kotlin.services.s3.model.RequestCharged? = builder.requestCharged
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.DeleteObjectsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteObjectsResponse(")
append("deleted=$deleted,")
append("errors=$errors,")
append("requestCharged=$requestCharged")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deleted?.hashCode() ?: 0
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (requestCharged?.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 DeleteObjectsResponse
if (deleted != other.deleted) return false
if (errors != other.errors) return false
if (requestCharged != other.requestCharged) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.DeleteObjectsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Container element for a successful delete. It identifies the object that was successfully deleted.
*/
public var deleted: List? = null
/**
* Container for a failed delete action that describes the object that Amazon S3 attempted to delete and the error it encountered.
*/
public var errors: List? = null
/**
* If present, indicates that the requester was successfully charged for the request.
*
* This functionality is not supported for directory buckets.
*/
public var requestCharged: aws.sdk.kotlin.services.s3.model.RequestCharged? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.DeleteObjectsResponse) : this() {
this.deleted = x.deleted
this.errors = x.errors
this.requestCharged = x.requestCharged
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.DeleteObjectsResponse = DeleteObjectsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy