
com.pulumi.gcp.vertex.kotlin.inputs.AiIndexEndpointDeployedIndexDedicatedResourcesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.vertex.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiIndexEndpointDeployedIndexDedicatedResourcesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property machineSpec The minimum number of replicas this DeployedModel will be always deployed on.
* Structure is documented below.
* @property maxReplicaCount The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If maxReplicaCount is not set, the default value is minReplicaCount
* @property minReplicaCount The minimum number of machine replicas this DeployedModel will be always deployed on. This value must be greater than or equal to 1.
*/
public data class AiIndexEndpointDeployedIndexDedicatedResourcesArgs(
public val machineSpec: Output,
public val maxReplicaCount: Output? = null,
public val minReplicaCount: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.vertex.inputs.AiIndexEndpointDeployedIndexDedicatedResourcesArgs =
com.pulumi.gcp.vertex.inputs.AiIndexEndpointDeployedIndexDedicatedResourcesArgs.builder()
.machineSpec(machineSpec.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxReplicaCount(maxReplicaCount?.applyValue({ args0 -> args0 }))
.minReplicaCount(minReplicaCount.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AiIndexEndpointDeployedIndexDedicatedResourcesArgs].
*/
@PulumiTagMarker
public class AiIndexEndpointDeployedIndexDedicatedResourcesArgsBuilder internal constructor() {
private var machineSpec: Output? =
null
private var maxReplicaCount: Output? = null
private var minReplicaCount: Output? = null
/**
* @param value The minimum number of replicas this DeployedModel will be always deployed on.
* Structure is documented below.
*/
@JvmName("qnyveaxvlywwgrup")
public suspend fun machineSpec(`value`: Output) {
this.machineSpec = value
}
/**
* @param value The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If maxReplicaCount is not set, the default value is minReplicaCount
*/
@JvmName("qrjcarncwjhqwtsl")
public suspend fun maxReplicaCount(`value`: Output) {
this.maxReplicaCount = value
}
/**
* @param value The minimum number of machine replicas this DeployedModel will be always deployed on. This value must be greater than or equal to 1.
*/
@JvmName("honetbiyfjrfwxyq")
public suspend fun minReplicaCount(`value`: Output) {
this.minReplicaCount = value
}
/**
* @param value The minimum number of replicas this DeployedModel will be always deployed on.
* Structure is documented below.
*/
@JvmName("dsplkjmjcmiidyie")
public suspend fun machineSpec(`value`: AiIndexEndpointDeployedIndexDedicatedResourcesMachineSpecArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.machineSpec = mapped
}
/**
* @param argument The minimum number of replicas this DeployedModel will be always deployed on.
* Structure is documented below.
*/
@JvmName("ebqmqtvsohxxmamj")
public suspend fun machineSpec(argument: suspend AiIndexEndpointDeployedIndexDedicatedResourcesMachineSpecArgsBuilder.() -> Unit) {
val toBeMapped =
AiIndexEndpointDeployedIndexDedicatedResourcesMachineSpecArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.machineSpec = mapped
}
/**
* @param value The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If maxReplicaCount is not set, the default value is minReplicaCount
*/
@JvmName("oumftlksmsybgvfe")
public suspend fun maxReplicaCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxReplicaCount = mapped
}
/**
* @param value The minimum number of machine replicas this DeployedModel will be always deployed on. This value must be greater than or equal to 1.
*/
@JvmName("rljbcnqircqievbj")
public suspend fun minReplicaCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minReplicaCount = mapped
}
internal fun build(): AiIndexEndpointDeployedIndexDedicatedResourcesArgs =
AiIndexEndpointDeployedIndexDedicatedResourcesArgs(
machineSpec = machineSpec ?: throw PulumiNullFieldException("machineSpec"),
maxReplicaCount = maxReplicaCount,
minReplicaCount = minReplicaCount ?: throw PulumiNullFieldException("minReplicaCount"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy