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

com.pulumi.azure.automation.kotlin.inputs.RunBookDraftArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.automation.kotlin.inputs

import com.pulumi.azure.automation.inputs.RunBookDraftArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property contentLink A `publish_content_link` block as defined above.
 * @property creationTime
 * @property editModeEnabled Whether the draft in edit mode.
 * @property lastModifiedTime
 * @property outputTypes Specifies the output types of the runbook.
 * @property parameters A list of `parameters` block as defined below.
 */
public data class RunBookDraftArgs(
    public val contentLink: Output? = null,
    public val creationTime: Output? = null,
    public val editModeEnabled: Output? = null,
    public val lastModifiedTime: Output? = null,
    public val outputTypes: Output>? = null,
    public val parameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.automation.inputs.RunBookDraftArgs =
        com.pulumi.azure.automation.inputs.RunBookDraftArgs.builder()
            .contentLink(contentLink?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .creationTime(creationTime?.applyValue({ args0 -> args0 }))
            .editModeEnabled(editModeEnabled?.applyValue({ args0 -> args0 }))
            .lastModifiedTime(lastModifiedTime?.applyValue({ args0 -> args0 }))
            .outputTypes(outputTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RunBookDraftArgs].
 */
@PulumiTagMarker
public class RunBookDraftArgsBuilder internal constructor() {
    private var contentLink: Output? = null

    private var creationTime: Output? = null

    private var editModeEnabled: Output? = null

    private var lastModifiedTime: Output? = null

    private var outputTypes: Output>? = null

    private var parameters: Output>? = null

    /**
     * @param value A `publish_content_link` block as defined above.
     */
    @JvmName("rcuvsejcqquktlrs")
    public suspend fun contentLink(`value`: Output) {
        this.contentLink = value
    }

    /**
     * @param value
     */
    @JvmName("slbtqlcgmyjlgthn")
    public suspend fun creationTime(`value`: Output) {
        this.creationTime = value
    }

    /**
     * @param value Whether the draft in edit mode.
     */
    @JvmName("mntkvcftlrobqhej")
    public suspend fun editModeEnabled(`value`: Output) {
        this.editModeEnabled = value
    }

    /**
     * @param value
     */
    @JvmName("uanvfgbwpqdjdywb")
    public suspend fun lastModifiedTime(`value`: Output) {
        this.lastModifiedTime = value
    }

    /**
     * @param value Specifies the output types of the runbook.
     */
    @JvmName("uwplndgqydieaoyf")
    public suspend fun outputTypes(`value`: Output>) {
        this.outputTypes = value
    }

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

    /**
     * @param values Specifies the output types of the runbook.
     */
    @JvmName("fhcqrdhogspexunt")
    public suspend fun outputTypes(values: List>) {
        this.outputTypes = Output.all(values)
    }

    /**
     * @param value A list of `parameters` block as defined below.
     */
    @JvmName("txcmmbwkumaihuvf")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values A list of `parameters` block as defined below.
     */
    @JvmName("ubxbbhuhbxpsqstf")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value A `publish_content_link` block as defined above.
     */
    @JvmName("ecmrinbghteveqhj")
    public suspend fun contentLink(`value`: RunBookDraftContentLinkArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentLink = mapped
    }

    /**
     * @param argument A `publish_content_link` block as defined above.
     */
    @JvmName("lrwqjlgwyghenslt")
    public suspend fun contentLink(argument: suspend RunBookDraftContentLinkArgsBuilder.() -> Unit) {
        val toBeMapped = RunBookDraftContentLinkArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.contentLink = mapped
    }

    /**
     * @param value
     */
    @JvmName("vsgdjbimarvxugvp")
    public suspend fun creationTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.creationTime = mapped
    }

    /**
     * @param value Whether the draft in edit mode.
     */
    @JvmName("stjrtuliniddjwds")
    public suspend fun editModeEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.editModeEnabled = mapped
    }

    /**
     * @param value
     */
    @JvmName("gjrapuvshdiaeilb")
    public suspend fun lastModifiedTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedTime = mapped
    }

    /**
     * @param value Specifies the output types of the runbook.
     */
    @JvmName("iojguqechhtdcrac")
    public suspend fun outputTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputTypes = mapped
    }

    /**
     * @param values Specifies the output types of the runbook.
     */
    @JvmName("sqntmpqpqoexqlpl")
    public suspend fun outputTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputTypes = mapped
    }

    /**
     * @param value A list of `parameters` block as defined below.
     */
    @JvmName("asikjbmvvwuidfva")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument A list of `parameters` block as defined below.
     */
    @JvmName("qisvdtrhguqscobj")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RunBookDraftParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument A list of `parameters` block as defined below.
     */
    @JvmName("igivohcjexeihhbn")
    public suspend fun parameters(vararg argument: suspend RunBookDraftParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RunBookDraftParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument A list of `parameters` block as defined below.
     */
    @JvmName("jqlfelbfcpckpsan")
    public suspend fun parameters(argument: suspend RunBookDraftParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RunBookDraftParameterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values A list of `parameters` block as defined below.
     */
    @JvmName("popgdpytbekhlabw")
    public suspend fun parameters(vararg values: RunBookDraftParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): RunBookDraftArgs = RunBookDraftArgs(
        contentLink = contentLink,
        creationTime = creationTime,
        editModeEnabled = editModeEnabled,
        lastModifiedTime = lastModifiedTime,
        outputTypes = outputTypes,
        parameters = parameters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy