
commonMain.aws.sdk.kotlin.services.s3.model.GetBucketAccelerateConfigurationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
public class GetBucketAccelerateConfigurationResponse 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
/**
* The accelerate configuration of the bucket.
*/
public val status: aws.sdk.kotlin.services.s3.model.BucketAccelerateStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.GetBucketAccelerateConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBucketAccelerateConfigurationResponse(")
append("requestCharged=$requestCharged,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestCharged?.hashCode() ?: 0
result = 31 * result + (status?.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 GetBucketAccelerateConfigurationResponse
if (requestCharged != other.requestCharged) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.GetBucketAccelerateConfigurationResponse = 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
/**
* The accelerate configuration of the bucket.
*/
public var status: aws.sdk.kotlin.services.s3.model.BucketAccelerateStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.GetBucketAccelerateConfigurationResponse) : this() {
this.requestCharged = x.requestCharged
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.GetBucketAccelerateConfigurationResponse = GetBucketAccelerateConfigurationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy