
commonMain.aws.sdk.kotlin.services.s3.model.RestoreObjectResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
public class RestoreObjectResponse private constructor(builder: Builder) {
/**
* 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
/**
* Indicates the path in the provided S3 output location where Select results will be restored to.
*/
public val restoreOutputPath: kotlin.String? = builder.restoreOutputPath
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.RestoreObjectResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RestoreObjectResponse(")
append("requestCharged=$requestCharged,")
append("restoreOutputPath=$restoreOutputPath")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestCharged?.hashCode() ?: 0
result = 31 * result + (restoreOutputPath?.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 RestoreObjectResponse
if (requestCharged != other.requestCharged) return false
if (restoreOutputPath != other.restoreOutputPath) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.RestoreObjectResponse = Builder(this).apply(block).build()
public class Builder {
/**
* 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
/**
* Indicates the path in the provided S3 output location where Select results will be restored to.
*/
public var restoreOutputPath: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.RestoreObjectResponse) : this() {
this.requestCharged = x.requestCharged
this.restoreOutputPath = x.restoreOutputPath
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.RestoreObjectResponse = RestoreObjectResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy