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

com.pulumi.googlenative.deploymentmanager.v2beta.kotlin.inputs.CollectionOverrideArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.deploymentmanager.v2beta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.deploymentmanager.v2beta.inputs.CollectionOverrideArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * CollectionOverride allows resource handling overrides for specific resources within a BaseType
 * @property collection The collection that identifies this resource within its service.
 * @property options The options to apply to this resource-level override
 */
public data class CollectionOverrideArgs(
    public val collection: Output? = null,
    public val options: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.deploymentmanager.v2beta.inputs.CollectionOverrideArgs =
        com.pulumi.googlenative.deploymentmanager.v2beta.inputs.CollectionOverrideArgs.builder()
            .collection(collection?.applyValue({ args0 -> args0 }))
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CollectionOverrideArgs].
 */
@PulumiTagMarker
public class CollectionOverrideArgsBuilder internal constructor() {
    private var collection: Output? = null

    private var options: Output? = null

    /**
     * @param value The collection that identifies this resource within its service.
     */
    @JvmName("bbegnfifqkcuknsi")
    public suspend fun collection(`value`: Output) {
        this.collection = value
    }

    /**
     * @param value The options to apply to this resource-level override
     */
    @JvmName("fgooycmwpxxtbilu")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value The collection that identifies this resource within its service.
     */
    @JvmName("hbqtnquhiclqvmnv")
    public suspend fun collection(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collection = mapped
    }

    /**
     * @param value The options to apply to this resource-level override
     */
    @JvmName("vbsahnlufjvisceb")
    public suspend fun options(`value`: OptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument The options to apply to this resource-level override
     */
    @JvmName("jqdetclfhnbbuhyh")
    public suspend fun options(argument: suspend OptionsArgsBuilder.() -> Unit) {
        val toBeMapped = OptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    internal fun build(): CollectionOverrideArgs = CollectionOverrideArgs(
        collection = collection,
        options = options,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy