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

com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerCloudwatchConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin.inputs

import com.pulumi.aws.opsworks.inputs.MemcachedLayerCloudwatchConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enabled
 * @property logStreams
 */
public data class MemcachedLayerCloudwatchConfigurationArgs(
    public val enabled: Output? = null,
    public val logStreams: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.inputs.MemcachedLayerCloudwatchConfigurationArgs =
        com.pulumi.aws.opsworks.inputs.MemcachedLayerCloudwatchConfigurationArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .logStreams(
                logStreams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MemcachedLayerCloudwatchConfigurationArgs].
 */
@PulumiTagMarker
public class MemcachedLayerCloudwatchConfigurationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var logStreams: Output>? = null

    /**
     * @param value
     */
    @JvmName("hlpkrkwkfmloblst")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value
     */
    @JvmName("fmsltalijbgvycsg")
    public suspend fun logStreams(`value`: Output>) {
        this.logStreams = value
    }

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

    /**
     * @param values
     */
    @JvmName("wdkcownhqbkywbku")
    public suspend fun logStreams(values: List>) {
        this.logStreams = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("fwxovolexmqmcebv")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value
     */
    @JvmName("nlohcbqsttnuiwav")
    public suspend fun logStreams(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("mkebjqggrrgcmfdy")
    public suspend fun logStreams(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MemcachedLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("srvrrrpgyoyiboke")
    public suspend fun logStreams(vararg argument: suspend MemcachedLayerCloudwatchConfigurationLogStreamArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MemcachedLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ddwhqspdqcamraca")
    public suspend fun logStreams(argument: suspend MemcachedLayerCloudwatchConfigurationLogStreamArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MemcachedLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param values
     */
    @JvmName("fiirkageobggvrie")
    public suspend fun logStreams(vararg values: MemcachedLayerCloudwatchConfigurationLogStreamArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logStreams = mapped
    }

    internal fun build(): MemcachedLayerCloudwatchConfigurationArgs =
        MemcachedLayerCloudwatchConfigurationArgs(
            enabled = enabled,
            logStreams = logStreams,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy