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

com.pulumi.aws.emrcontainers.kotlin.inputs.JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs.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.JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property classification The classification within a configuration.
 * @property configurations A list of additional configurations to apply within a configuration object.
 * @property properties A set of properties specified within a configuration classification.
 */
public data class JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs(
    public val classification: Output,
    public val configurations: Output>? =
        null,
    public val properties: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs =
        com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs.builder()
            .classification(classification.applyValue({ args0 -> args0 }))
            .configurations(
                configurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs].
 */
@PulumiTagMarker
public class JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgsBuilder
internal constructor() {
    private var classification: Output? = null

    private var configurations:
        Output>? =
        null

    private var properties: Output>? = null

    /**
     * @param value The classification within a configuration.
     */
    @JvmName("djiejodiyadtymbg")
    public suspend fun classification(`value`: Output) {
        this.classification = value
    }

    /**
     * @param value A list of additional configurations to apply within a configuration object.
     */
    @JvmName("rfirtrpungbjjlgj")
    public suspend fun configurations(`value`: Output>) {
        this.configurations = value
    }

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

    /**
     * @param values A list of additional configurations to apply within a configuration object.
     */
    @JvmName("toyypvklhsxhuqbt")
    public suspend fun configurations(values: List>) {
        this.configurations = Output.all(values)
    }

    /**
     * @param value A set of properties specified within a configuration classification.
     */
    @JvmName("vyikmxgleywqnyrf")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The classification within a configuration.
     */
    @JvmName("gddydvusdfyemnsf")
    public suspend fun classification(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value A list of additional configurations to apply within a configuration object.
     */
    @JvmName("evlyjxiklagphshy")
    public suspend fun configurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurations = mapped
    }

    /**
     * @param argument A list of additional configurations to apply within a configuration object.
     */
    @JvmName("nihanqajimaxkftf")
    public suspend fun configurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configurations = mapped
    }

    /**
     * @param argument A list of additional configurations to apply within a configuration object.
     */
    @JvmName("juaesdcbpkkfxgeu")
    public suspend fun configurations(vararg argument: suspend JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configurations = mapped
    }

    /**
     * @param argument A list of additional configurations to apply within a configuration object.
     */
    @JvmName("vuwirwxqfcmiddqd")
    public suspend fun configurations(argument: suspend JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.configurations = mapped
    }

    /**
     * @param values A list of additional configurations to apply within a configuration object.
     */
    @JvmName("ikumvohwecihowfm")
    public suspend fun configurations(vararg values: JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurations = mapped
    }

    /**
     * @param value A set of properties specified within a configuration classification.
     */
    @JvmName("demcehijdkkrkxnl")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values A set of properties specified within a configuration classification.
     */
    @JvmName("gfbhpwqvwkfximlq")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    internal fun build(): JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs = JobTemplateJobTemplateDataConfigurationOverridesApplicationConfigurationArgs(
        classification = classification ?: throw PulumiNullFieldException("classification"),
        configurations = configurations,
        properties = properties,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy