
commonMain.aws.sdk.kotlin.services.s3.model.GetObjectTorrentResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
import aws.smithy.kotlin.runtime.content.ByteStream
public class GetObjectTorrentResponse private constructor(builder: Builder) {
/**
* A Bencoded dictionary as defined by the BitTorrent specification
*/
public val body: aws.smithy.kotlin.runtime.content.ByteStream? = builder.body
/**
* 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.GetObjectTorrentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetObjectTorrentResponse(")
append("body=$body,")
append("requestCharged=$requestCharged")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = body?.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 GetObjectTorrentResponse
if (body != other.body) return false
if (requestCharged != other.requestCharged) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.GetObjectTorrentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A Bencoded dictionary as defined by the BitTorrent specification
*/
public var body: aws.smithy.kotlin.runtime.content.ByteStream? = 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.GetObjectTorrentResponse) : this() {
this.body = x.body
this.requestCharged = x.requestCharged
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.GetObjectTorrentResponse = GetObjectTorrentResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy