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

com.pulumi.aws.emrcontainers.kotlin.inputs.JobTemplateJobTemplateDataConfigurationOverridesArgs.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.emrcontainers.kotlin.inputs

import com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataConfigurationOverridesArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property applicationConfigurations The configurations for the application running by the job run.
 * @property monitoringConfiguration The configurations for monitoring.
 */
public data class JobTemplateJobTemplateDataConfigurationOverridesArgs(
    public val applicationConfigurations: Output>? =
        null,
    public val monitoringConfiguration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataConfigurationOverridesArgs =
        com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataConfigurationOverridesArgs.builder()
            .applicationConfigurations(
                applicationConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .monitoringConfiguration(
                monitoringConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var monitoringConfiguration:
        Output? = null

    /**
     * @param value The configurations for the application running by the job run.
     */
    @JvmName("hspglevyyonertyc")
    public suspend fun applicationConfigurations(`value`: Output>) {
        this.applicationConfigurations = value
    }

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

    /**
     * @param values The configurations for the application running by the job run.
     */
    @JvmName("xkkgjoudkmlgwtbb")
    public suspend fun applicationConfigurations(values: List>) {
        this.applicationConfigurations = Output.all(values)
    }

    /**
     * @param value The configurations for monitoring.
     */
    @JvmName("fmkfgdgjxiaiatxi")
    public suspend fun monitoringConfiguration(`value`: Output) {
        this.monitoringConfiguration = value
    }

    /**
     * @param value The configurations for the application running by the job run.
     */
    @JvmName("enmkscxtdkvyuadc")
    public suspend fun applicationConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationConfigurations = mapped
    }

    /**
     * @param argument The configurations for the application running by the job run.
     */
    @JvmName("peormuqkfbahivfa")
    public suspend fun applicationConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.applicationConfigurations = mapped
    }

    /**
     * @param argument The configurations for the application running by the job run.
     */
    @JvmName("imnqywrvyfripkcs")
    public suspend fun applicationConfigurations(vararg argument: suspend JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.applicationConfigurations = mapped
    }

    /**
     * @param argument The configurations for the application running by the job run.
     */
    @JvmName("efrhlvvydknsdiub")
    public suspend fun applicationConfigurations(argument: suspend JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.applicationConfigurations = mapped
    }

    /**
     * @param values The configurations for the application running by the job run.
     */
    @JvmName("xppeftmpilvbdvxt")
    public suspend fun applicationConfigurations(vararg values: JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationConfigurations = mapped
    }

    /**
     * @param value The configurations for monitoring.
     */
    @JvmName("aiqpqsxtpvolmiil")
    public suspend fun monitoringConfiguration(`value`: JobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringConfiguration = mapped
    }

    /**
     * @param argument The configurations for monitoring.
     */
    @JvmName("wtfnketrrqohlntf")
    public suspend fun monitoringConfiguration(argument: suspend JobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            JobTemplateJobTemplateDataConfigurationOverridesMonitoringConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.monitoringConfiguration = mapped
    }

    internal fun build(): JobTemplateJobTemplateDataConfigurationOverridesArgs =
        JobTemplateJobTemplateDataConfigurationOverridesArgs(
            applicationConfigurations = applicationConfigurations,
            monitoringConfiguration = monitoringConfiguration,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy