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

com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs.EntitlementApprovalWorkflowManualApprovalsArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.privilegedaccessmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementApprovalWorkflowManualApprovalsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 requireApproverJustification Optional. Do the approvers need to provide a justification for their actions?
 * @property steps List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
 * Structure is documented below.
 */
public data class EntitlementApprovalWorkflowManualApprovalsArgs(
    public val requireApproverJustification: Output? = null,
    public val steps: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementApprovalWorkflowManualApprovalsArgs =
        com.pulumi.gcp.privilegedaccessmanager.inputs.EntitlementApprovalWorkflowManualApprovalsArgs.builder()
            .requireApproverJustification(requireApproverJustification?.applyValue({ args0 -> args0 }))
            .steps(
                steps.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EntitlementApprovalWorkflowManualApprovalsArgs].
 */
@PulumiTagMarker
public class EntitlementApprovalWorkflowManualApprovalsArgsBuilder internal constructor() {
    private var requireApproverJustification: Output? = null

    private var steps: Output>? = null

    /**
     * @param value Optional. Do the approvers need to provide a justification for their actions?
     */
    @JvmName("nyfueiwoyusrreyv")
    public suspend fun requireApproverJustification(`value`: Output) {
        this.requireApproverJustification = value
    }

    /**
     * @param value List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("fmapvthhmublnmxm")
    public suspend fun steps(`value`: Output>) {
        this.steps = value
    }

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

    /**
     * @param values List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("ahybslhmdooqtpgp")
    public suspend fun steps(values: List>) {
        this.steps = Output.all(values)
    }

    /**
     * @param value Optional. Do the approvers need to provide a justification for their actions?
     */
    @JvmName("wvgelaugdesilqko")
    public suspend fun requireApproverJustification(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireApproverJustification = mapped
    }

    /**
     * @param value List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("bjtqlaomjlxmsuls")
    public suspend fun steps(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param argument List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("fanahpxnndilutoo")
    public suspend fun steps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EntitlementApprovalWorkflowManualApprovalsStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("lyyecmitnseynjgw")
    public suspend fun steps(vararg argument: suspend EntitlementApprovalWorkflowManualApprovalsStepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EntitlementApprovalWorkflowManualApprovalsStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("rpfopcncpjrccscu")
    public suspend fun steps(argument: suspend EntitlementApprovalWorkflowManualApprovalsStepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EntitlementApprovalWorkflowManualApprovalsStepArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param values List of approval steps in this workflow. These steps would be followed in the specified order sequentially.  1 step is supported for now.
     * Structure is documented below.
     */
    @JvmName("pneutdfstctyogbr")
    public suspend fun steps(vararg values: EntitlementApprovalWorkflowManualApprovalsStepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    internal fun build(): EntitlementApprovalWorkflowManualApprovalsArgs =
        EntitlementApprovalWorkflowManualApprovalsArgs(
            requireApproverJustification = requireApproverJustification,
            steps = steps ?: throw PulumiNullFieldException("steps"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy