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

com.pulumi.gcp.vertex.kotlin.inputs.AiFeatureStoreOnlineServingConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.AiFeatureStoreOnlineServingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property fixedNodeCount The number of nodes for each cluster. The number of nodes will not scale automatically but can be scaled manually by providing different values when updating.
 * @property scaling Online serving scaling configuration. Only one of fixedNodeCount and scaling can be set. Setting one will reset the other.
 * Structure is documented below.
 */
public data class AiFeatureStoreOnlineServingConfigArgs(
    public val fixedNodeCount: Output? = null,
    public val scaling: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs =
        com.pulumi.gcp.vertex.inputs.AiFeatureStoreOnlineServingConfigArgs.builder()
            .fixedNodeCount(fixedNodeCount?.applyValue({ args0 -> args0 }))
            .scaling(scaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AiFeatureStoreOnlineServingConfigArgs].
 */
@PulumiTagMarker
public class AiFeatureStoreOnlineServingConfigArgsBuilder internal constructor() {
    private var fixedNodeCount: Output? = null

    private var scaling: Output? = null

    /**
     * @param value The number of nodes for each cluster. The number of nodes will not scale automatically but can be scaled manually by providing different values when updating.
     */
    @JvmName("rnjnjwqlutcbiwbf")
    public suspend fun fixedNodeCount(`value`: Output) {
        this.fixedNodeCount = value
    }

    /**
     * @param value Online serving scaling configuration. Only one of fixedNodeCount and scaling can be set. Setting one will reset the other.
     * Structure is documented below.
     */
    @JvmName("umtiiusubutixbcw")
    public suspend fun scaling(`value`: Output) {
        this.scaling = value
    }

    /**
     * @param value The number of nodes for each cluster. The number of nodes will not scale automatically but can be scaled manually by providing different values when updating.
     */
    @JvmName("ykuasvftptflgkff")
    public suspend fun fixedNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixedNodeCount = mapped
    }

    /**
     * @param value Online serving scaling configuration. Only one of fixedNodeCount and scaling can be set. Setting one will reset the other.
     * Structure is documented below.
     */
    @JvmName("khnypmavpekbgpsy")
    public suspend fun scaling(`value`: AiFeatureStoreOnlineServingConfigScalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scaling = mapped
    }

    /**
     * @param argument Online serving scaling configuration. Only one of fixedNodeCount and scaling can be set. Setting one will reset the other.
     * Structure is documented below.
     */
    @JvmName("qgdmimvhmghvjadi")
    public suspend fun scaling(argument: suspend AiFeatureStoreOnlineServingConfigScalingArgsBuilder.() -> Unit) {
        val toBeMapped = AiFeatureStoreOnlineServingConfigScalingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.scaling = mapped
    }

    internal fun build(): AiFeatureStoreOnlineServingConfigArgs =
        AiFeatureStoreOnlineServingConfigArgs(
            fixedNodeCount = fixedNodeCount,
            scaling = scaling,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy