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

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

@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.AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property featureGroups List of features that need to be synced to Online Store.
 * Structure is documented below.
 * @property projectNumber The project number of the parent project of the feature Groups.
 */
public data class AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs(
    public val featureGroups: Output>,
    public val projectNumber: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs =
        com.pulumi.gcp.vertex.inputs.AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs.builder()
            .featureGroups(
                featureGroups.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .projectNumber(projectNumber?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs].
 */
@PulumiTagMarker
public class AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgsBuilder internal constructor() {
    private var featureGroups:
        Output>? = null

    private var projectNumber: Output? = null

    /**
     * @param value List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("gsahebmbrwycujww")
    public suspend fun featureGroups(`value`: Output>) {
        this.featureGroups = value
    }

    @JvmName("sueadqloieoybqxu")
    public suspend fun featureGroups(vararg values: Output) {
        this.featureGroups = Output.all(values.asList())
    }

    /**
     * @param values List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("pvfbxrnsmqaeqrna")
    public suspend fun featureGroups(values: List>) {
        this.featureGroups = Output.all(values)
    }

    /**
     * @param value The project number of the parent project of the feature Groups.
     */
    @JvmName("xebkfpqqecvyneaf")
    public suspend fun projectNumber(`value`: Output) {
        this.projectNumber = value
    }

    /**
     * @param value List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("xohgwebwvyiqqlss")
    public suspend fun featureGroups(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.featureGroups = mapped
    }

    /**
     * @param argument List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("ygvbnajvoweohfqk")
    public suspend fun featureGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.featureGroups = mapped
    }

    /**
     * @param argument List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("lxjeawxwpuodljcg")
    public suspend fun featureGroups(vararg argument: suspend AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.featureGroups = mapped
    }

    /**
     * @param argument List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("mvjixxifosxbsbqh")
    public suspend fun featureGroups(argument: suspend AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.featureGroups = mapped
    }

    /**
     * @param values List of features that need to be synced to Online Store.
     * Structure is documented below.
     */
    @JvmName("xbafaontnoyfvhpv")
    public suspend fun featureGroups(vararg values: AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceFeatureGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.featureGroups = mapped
    }

    /**
     * @param value The project number of the parent project of the feature Groups.
     */
    @JvmName("nrdakkrsdblpcuym")
    public suspend fun projectNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectNumber = mapped
    }

    internal fun build(): AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs =
        AiFeatureOnlineStoreFeatureviewFeatureRegistrySourceArgs(
            featureGroups = featureGroups ?: throw PulumiNullFieldException("featureGroups"),
            projectNumber = projectNumber,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy