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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bundles map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
 * @property templateLibrary Configures the installation of the Template Library. Structure is documented below.
 */
public data class FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs(
    public val bundles: Output>? =
        null,
    public val templateLibrary: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs.builder()
            .bundles(
                bundles?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .templateLibrary(
                templateLibrary?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var templateLibrary:
        Output? =
        null

    /**
     * @param value map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("yercbqcrleysqlim")
    public suspend fun bundles(`value`: Output>) {
        this.bundles = value
    }

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

    /**
     * @param values map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("umqusnnkymfwavlh")
    public suspend fun bundles(values: List>) {
        this.bundles = Output.all(values)
    }

    /**
     * @param value Configures the installation of the Template Library. Structure is documented below.
     */
    @JvmName("rlnmkoiberylpvmc")
    public suspend fun templateLibrary(`value`: Output) {
        this.templateLibrary = value
    }

    /**
     * @param value map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("tbtkaljjgjsreqyh")
    public suspend fun bundles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bundles = mapped
    }

    /**
     * @param argument map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("pgycaqbfpousgpjk")
    public suspend fun bundles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.bundles = mapped
    }

    /**
     * @param argument map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("flkoyvgifojhtfje")
    public suspend fun bundles(vararg argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.bundles = mapped
    }

    /**
     * @param argument map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("rugykdobjwdjlqcs")
    public suspend fun bundles(argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.bundles = mapped
    }

    /**
     * @param values map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.
     */
    @JvmName("wxaoyngisfamselj")
    public suspend fun bundles(vararg values: FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentBundleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bundles = mapped
    }

    /**
     * @param value Configures the installation of the Template Library. Structure is documented below.
     */
    @JvmName("cglbxuxphuqgqnvj")
    public suspend fun templateLibrary(`value`: FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentTemplateLibraryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateLibrary = mapped
    }

    /**
     * @param argument Configures the installation of the Template Library. Structure is documented below.
     */
    @JvmName("hfwvqxpvfepfdhfi")
    public suspend fun templateLibrary(argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentTemplateLibraryArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentTemplateLibraryArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.templateLibrary = mapped
    }

    internal fun build(): FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs = FeatureMembershipPolicycontrollerPolicyControllerHubConfigPolicyContentArgs(
        bundles = bundles,
        templateLibrary = templateLibrary,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy