
commonMain.aws.sdk.kotlin.services.lightsail.model.UpdateBucketBundleRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class UpdateBucketBundleRequest private constructor(builder: Builder) {
/**
* The name of the bucket for which to update the bundle.
*/
public val bucketName: kotlin.String? = builder.bucketName
/**
* The ID of the new bundle to apply to the bucket.
*
* Use the [GetBucketBundles](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketBundles.html) action to get a list of bundle IDs that you can specify.
*/
public val bundleId: kotlin.String? = builder.bundleId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.UpdateBucketBundleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBucketBundleRequest(")
append("bucketName=$bucketName,")
append("bundleId=$bundleId)")
}
override fun hashCode(): kotlin.Int {
var result = bucketName?.hashCode() ?: 0
result = 31 * result + (bundleId?.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 UpdateBucketBundleRequest
if (bucketName != other.bucketName) return false
if (bundleId != other.bundleId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.UpdateBucketBundleRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the bucket for which to update the bundle.
*/
public var bucketName: kotlin.String? = null
/**
* The ID of the new bundle to apply to the bucket.
*
* Use the [GetBucketBundles](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketBundles.html) action to get a list of bundle IDs that you can specify.
*/
public var bundleId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.UpdateBucketBundleRequest) : this() {
this.bucketName = x.bucketName
this.bundleId = x.bundleId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.UpdateBucketBundleRequest = UpdateBucketBundleRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy