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

commonMain.aws.sdk.kotlin.services.bedrock.model.UpdateProvisionedModelThroughputRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrock.model



public class UpdateProvisionedModelThroughputRequest private constructor(builder: Builder) {
    /**
     * The ARN of the new model to associate with this provisioned throughput.
     */
    public val desiredModelId: kotlin.String? = builder.desiredModelId
    /**
     * The new name for this provisioned throughput.
     */
    public val desiredProvisionedModelName: kotlin.String? = builder.desiredProvisionedModelName
    /**
     * The ARN or name of the provisioned throughput to update.
     */
    public val provisionedModelId: kotlin.String? = builder.provisionedModelId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateProvisionedModelThroughputRequest(")
        append("desiredModelId=$desiredModelId,")
        append("desiredProvisionedModelName=$desiredProvisionedModelName,")
        append("provisionedModelId=$provisionedModelId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = desiredModelId?.hashCode() ?: 0
        result = 31 * result + (desiredProvisionedModelName?.hashCode() ?: 0)
        result = 31 * result + (provisionedModelId?.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 UpdateProvisionedModelThroughputRequest

        if (desiredModelId != other.desiredModelId) return false
        if (desiredProvisionedModelName != other.desiredProvisionedModelName) return false
        if (provisionedModelId != other.provisionedModelId) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the new model to associate with this provisioned throughput.
         */
        public var desiredModelId: kotlin.String? = null
        /**
         * The new name for this provisioned throughput.
         */
        public var desiredProvisionedModelName: kotlin.String? = null
        /**
         * The ARN or name of the provisioned throughput to update.
         */
        public var provisionedModelId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrock.model.UpdateProvisionedModelThroughputRequest) : this() {
            this.desiredModelId = x.desiredModelId
            this.desiredProvisionedModelName = x.desiredProvisionedModelName
            this.provisionedModelId = x.provisionedModelId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.bedrock.model.UpdateProvisionedModelThroughputRequest = UpdateProvisionedModelThroughputRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy