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

com.pulumi.awsnative.iot.kotlin.inputs.AbortConfigPropertiesArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.AbortConfigPropertiesArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The criteria that determine when and how a job abort takes place.
 * @property criteriaList The list of criteria that determine when and how to abort the job.
 */
public data class AbortConfigPropertiesArgs(
    public val criteriaList: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.AbortConfigPropertiesArgs =
        com.pulumi.awsnative.iot.inputs.AbortConfigPropertiesArgs.builder()
            .criteriaList(
                criteriaList.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The list of criteria that determine when and how to abort the job.
     */
    @JvmName("mabrjsghmavwndgb")
    public suspend fun criteriaList(`value`: Output>) {
        this.criteriaList = value
    }

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

    /**
     * @param values The list of criteria that determine when and how to abort the job.
     */
    @JvmName("gcbughtmyphfklgv")
    public suspend fun criteriaList(values: List>) {
        this.criteriaList = Output.all(values)
    }

    /**
     * @param value The list of criteria that determine when and how to abort the job.
     */
    @JvmName("udihcrsmljnkxefw")
    public suspend fun criteriaList(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.criteriaList = mapped
    }

    /**
     * @param argument The list of criteria that determine when and how to abort the job.
     */
    @JvmName("gtotbedkrjiegeyq")
    public suspend fun criteriaList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobTemplateAbortCriteriaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.criteriaList = mapped
    }

    /**
     * @param argument The list of criteria that determine when and how to abort the job.
     */
    @JvmName("dkjcycmwcmsecgvq")
    public suspend fun criteriaList(vararg argument: suspend JobTemplateAbortCriteriaArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobTemplateAbortCriteriaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.criteriaList = mapped
    }

    /**
     * @param argument The list of criteria that determine when and how to abort the job.
     */
    @JvmName("lgodnnkupvclqphf")
    public suspend fun criteriaList(argument: suspend JobTemplateAbortCriteriaArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobTemplateAbortCriteriaArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.criteriaList = mapped
    }

    /**
     * @param values The list of criteria that determine when and how to abort the job.
     */
    @JvmName("xdrvuchtnofjusqx")
    public suspend fun criteriaList(vararg values: JobTemplateAbortCriteriaArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.criteriaList = mapped
    }

    internal fun build(): AbortConfigPropertiesArgs = AbortConfigPropertiesArgs(
        criteriaList = criteriaList ?: throw PulumiNullFieldException("criteriaList"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy