commonMain.aws.sdk.kotlin.services.bedrock.model.UpdateProvisionedModelThroughputRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateProvisionedModelThroughputRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
*
* If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
* + The base model from which the custom model was customized.
* + Another custom model that was customized from the same base model as the custom model.
*/
public val desiredModelId: kotlin.String? = builder.desiredModelId
/**
* The new name for this Provisioned Throughput.
*/
public val desiredProvisionedModelName: kotlin.String? = builder.desiredProvisionedModelName
/**
* The Amazon Resource Name (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()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
*
* If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
* + The base model from which the custom model was customized.
* + Another custom model that was customized from the same base model as the custom model.
*/
public var desiredModelId: kotlin.String? = null
/**
* The new name for this Provisioned Throughput.
*/
public var desiredProvisionedModelName: kotlin.String? = null
/**
* The Amazon Resource Name (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