
commonMain.aws.sdk.kotlin.services.lightsail.model.UpdateBucketResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class UpdateBucketResponse private constructor(builder: Builder) {
/**
* An object that describes the bucket that is updated.
*/
public val bucket: aws.sdk.kotlin.services.lightsail.model.Bucket? = builder.bucket
/**
* An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
*/
public val operations: List? = builder.operations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.UpdateBucketResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBucketResponse(")
append("bucket=$bucket,")
append("operations=$operations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucket?.hashCode() ?: 0
result = 31 * result + (operations?.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 UpdateBucketResponse
if (bucket != other.bucket) return false
if (operations != other.operations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.UpdateBucketResponse = Builder(this).apply(block).build()
public class Builder {
/**
* An object that describes the bucket that is updated.
*/
public var bucket: aws.sdk.kotlin.services.lightsail.model.Bucket? = null
/**
* An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
*/
public var operations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.UpdateBucketResponse) : this() {
this.bucket = x.bucket
this.operations = x.operations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.UpdateBucketResponse = UpdateBucketResponse(this)
/**
* construct an [aws.sdk.kotlin.services.lightsail.model.Bucket] inside the given [block]
*/
public fun bucket(block: aws.sdk.kotlin.services.lightsail.model.Bucket.Builder.() -> kotlin.Unit) {
this.bucket = aws.sdk.kotlin.services.lightsail.model.Bucket.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy