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

com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigDataRetentionConfigArgs.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.composer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigDataRetentionConfigArgs.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 taskLogsRetentionConfigs Optional. The configuration setting for Task Logs.
 */
public data class EnvironmentConfigDataRetentionConfigArgs(
    public val taskLogsRetentionConfigs: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigDataRetentionConfigArgs =
        com.pulumi.gcp.composer.inputs.EnvironmentConfigDataRetentionConfigArgs.builder()
            .taskLogsRetentionConfigs(
                taskLogsRetentionConfigs.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Optional. The configuration setting for Task Logs.
     */
    @JvmName("rvovnfeashgvavxr")
    public suspend fun taskLogsRetentionConfigs(`value`: Output>) {
        this.taskLogsRetentionConfigs = value
    }

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

    /**
     * @param values Optional. The configuration setting for Task Logs.
     */
    @JvmName("bfoybawbqeaaopow")
    public suspend fun taskLogsRetentionConfigs(values: List>) {
        this.taskLogsRetentionConfigs = Output.all(values)
    }

    /**
     * @param value Optional. The configuration setting for Task Logs.
     */
    @JvmName("flkjjnngltwdqtrv")
    public suspend fun taskLogsRetentionConfigs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskLogsRetentionConfigs = mapped
    }

    /**
     * @param argument Optional. The configuration setting for Task Logs.
     */
    @JvmName("njlgupahwxdbaitr")
    public suspend fun taskLogsRetentionConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taskLogsRetentionConfigs = mapped
    }

    /**
     * @param argument Optional. The configuration setting for Task Logs.
     */
    @JvmName("rvplqowfmjvsnfnd")
    public suspend fun taskLogsRetentionConfigs(vararg argument: suspend EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taskLogsRetentionConfigs = mapped
    }

    /**
     * @param argument Optional. The configuration setting for Task Logs.
     */
    @JvmName("pobqccuyaabajbsr")
    public suspend fun taskLogsRetentionConfigs(argument: suspend EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.taskLogsRetentionConfigs = mapped
    }

    /**
     * @param values Optional. The configuration setting for Task Logs.
     */
    @JvmName("ciwaltxttrgqugwx")
    public suspend fun taskLogsRetentionConfigs(vararg values: EnvironmentConfigDataRetentionConfigTaskLogsRetentionConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskLogsRetentionConfigs = mapped
    }

    internal fun build(): EnvironmentConfigDataRetentionConfigArgs =
        EnvironmentConfigDataRetentionConfigArgs(
            taskLogsRetentionConfigs = taskLogsRetentionConfigs ?: throw
                PulumiNullFieldException("taskLogsRetentionConfigs"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy