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

com.pulumi.gcp.gkebackup.kotlin.inputs.BackupPlanBackupConfigSelectedApplicationsArgs.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.gkebackup.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupConfigSelectedApplicationsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 namespacedNames A list of namespaced Kubernetes resources.
 * Structure is documented below.
 */
public data class BackupPlanBackupConfigSelectedApplicationsArgs(
    public val namespacedNames: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupConfigSelectedApplicationsArgs =
        com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupConfigSelectedApplicationsArgs.builder()
            .namespacedNames(
                namespacedNames.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("fxxvbymxjgpsrsbf")
    public suspend fun namespacedNames(`value`: Output>) {
        this.namespacedNames = value
    }

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

    /**
     * @param values A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("wtiygqlskwaydqrh")
    public suspend fun namespacedNames(values: List>) {
        this.namespacedNames = Output.all(values)
    }

    /**
     * @param value A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("jqskeanaippcnxtl")
    public suspend fun namespacedNames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespacedNames = mapped
    }

    /**
     * @param argument A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("nuvfattoprsxxqwl")
    public suspend fun namespacedNames(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.namespacedNames = mapped
    }

    /**
     * @param argument A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("onlbomnmqctrhkbl")
    public suspend fun namespacedNames(vararg argument: suspend BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.namespacedNames = mapped
    }

    /**
     * @param argument A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("sthjvfmajhmvfnmn")
    public suspend fun namespacedNames(argument: suspend BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.namespacedNames = mapped
    }

    /**
     * @param values A list of namespaced Kubernetes resources.
     * Structure is documented below.
     */
    @JvmName("akvnlqiqopmksoew")
    public suspend fun namespacedNames(vararg values: BackupPlanBackupConfigSelectedApplicationsNamespacedNameArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespacedNames = mapped
    }

    internal fun build(): BackupPlanBackupConfigSelectedApplicationsArgs =
        BackupPlanBackupConfigSelectedApplicationsArgs(
            namespacedNames = namespacedNames ?: throw PulumiNullFieldException("namespacedNames"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy