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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobArgs.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.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property actions Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
 * Structure is documented below.
 * @property inspectConfig The core content of the template.
 * Structure is documented below.
 * @property inspectTemplateName The name of the template to run when this job is triggered.
 * @property storageConfig Information on where to inspect
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobArgs(
    public val actions: Output>? = null,
    public val inspectConfig: Output? = null,
    public val inspectTemplateName: Output? = null,
    public val storageConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobArgs.builder()
            .actions(
                actions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .inspectConfig(inspectConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .inspectTemplateName(inspectTemplateName?.applyValue({ args0 -> args0 }))
            .storageConfig(storageConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var inspectConfig: Output? = null

    private var inspectTemplateName: Output? = null

    private var storageConfig: Output? = null

    /**
     * @param value Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("tuwuucquchdnjifn")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param values Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("etjyxsvdgbdcbdag")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value The core content of the template.
     * Structure is documented below.
     */
    @JvmName("qrruesmgyttjdmay")
    public suspend fun inspectConfig(`value`: Output) {
        this.inspectConfig = value
    }

    /**
     * @param value The name of the template to run when this job is triggered.
     */
    @JvmName("rntjicaevvfskgxa")
    public suspend fun inspectTemplateName(`value`: Output) {
        this.inspectTemplateName = value
    }

    /**
     * @param value Information on where to inspect
     * Structure is documented below.
     */
    @JvmName("nalvboorccenupry")
    public suspend fun storageConfig(`value`: Output) {
        this.storageConfig = value
    }

    /**
     * @param value Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("vlcyajmhafjbqbkv")
    public suspend fun actions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param argument Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("wbysjxeobixifppt")
    public suspend fun actions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param argument Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("ahxjrjligyxcbrlu")
    public suspend fun actions(vararg argument: suspend PreventionJobTriggerInspectJobActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param argument Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("tdnsxbtumdnsxnpp")
    public suspend fun actions(argument: suspend PreventionJobTriggerInspectJobActionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PreventionJobTriggerInspectJobActionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param values Configuration block for the actions to execute on the completion of a job. Can be specified multiple times, but only one for each type. Each action block supports fields documented below. This argument is processed in attribute-as-blocks mode.
     * Structure is documented below.
     */
    @JvmName("bfxisffoenjxxmxh")
    public suspend fun actions(vararg values: PreventionJobTriggerInspectJobActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param value The core content of the template.
     * Structure is documented below.
     */
    @JvmName("gcqbtotdoacmfwsw")
    public suspend fun inspectConfig(`value`: PreventionJobTriggerInspectJobInspectConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inspectConfig = mapped
    }

    /**
     * @param argument The core content of the template.
     * Structure is documented below.
     */
    @JvmName("eackvndjbcbuibck")
    public suspend fun inspectConfig(argument: suspend PreventionJobTriggerInspectJobInspectConfigArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionJobTriggerInspectJobInspectConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.inspectConfig = mapped
    }

    /**
     * @param value The name of the template to run when this job is triggered.
     */
    @JvmName("ojcfhwkmugduamca")
    public suspend fun inspectTemplateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inspectTemplateName = mapped
    }

    /**
     * @param value Information on where to inspect
     * Structure is documented below.
     */
    @JvmName("mjmkjwhvqaufewgt")
    public suspend fun storageConfig(`value`: PreventionJobTriggerInspectJobStorageConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageConfig = mapped
    }

    /**
     * @param argument Information on where to inspect
     * Structure is documented below.
     */
    @JvmName("jextftcojelbupmb")
    public suspend fun storageConfig(argument: suspend PreventionJobTriggerInspectJobStorageConfigArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionJobTriggerInspectJobStorageConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.storageConfig = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobArgs = PreventionJobTriggerInspectJobArgs(
        actions = actions,
        inspectConfig = inspectConfig,
        inspectTemplateName = inspectTemplateName,
        storageConfig = storageConfig ?: throw PulumiNullFieldException("storageConfig"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy