All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lightsail.model.UpdateDistributionBundleRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lightsail.model



public class UpdateDistributionBundleRequest private constructor(builder: Builder) {
    /**
     * The bundle ID of the new bundle to apply to your distribution.
     *
     * Use the `GetDistributionBundles` action to get a list of distribution bundle IDs that you can specify.
     */
    public val bundleId: kotlin.String? = builder.bundleId
    /**
     * The name of the distribution for which to update the bundle.
     *
     * Use the `GetDistributions` action to get a list of distribution names that you can specify.
     */
    public val distributionName: kotlin.String? = builder.distributionName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.UpdateDistributionBundleRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateDistributionBundleRequest(")
        append("bundleId=$bundleId,")
        append("distributionName=$distributionName)")
    }

    override fun hashCode(): kotlin.Int {
        var result = bundleId?.hashCode() ?: 0
        result = 31 * result + (distributionName?.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 UpdateDistributionBundleRequest

        if (bundleId != other.bundleId) return false
        if (distributionName != other.distributionName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.UpdateDistributionBundleRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The bundle ID of the new bundle to apply to your distribution.
         *
         * Use the `GetDistributionBundles` action to get a list of distribution bundle IDs that you can specify.
         */
        public var bundleId: kotlin.String? = null
        /**
         * The name of the distribution for which to update the bundle.
         *
         * Use the `GetDistributions` action to get a list of distribution names that you can specify.
         */
        public var distributionName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.UpdateDistributionBundleRequest) : this() {
            this.bundleId = x.bundleId
            this.distributionName = x.distributionName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lightsail.model.UpdateDistributionBundleRequest = UpdateDistributionBundleRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy