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

com.pulumi.azurenative.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.automation.kotlin.inputs

import com.pulumi.azurenative.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property creationTime Gets or sets the creation time of the runbook draft.
 * @property draftContentLink Gets or sets the draft runbook content link.
 * @property inEdit Gets or sets whether runbook is in edit mode.
 * @property lastModifiedTime Gets or sets the last modified time of the runbook draft.
 * @property outputTypes Gets or sets the runbook output types.
 * @property parameters Gets or sets the runbook draft parameters.
 */
public data class RunbookDraftArgs(
    public val creationTime: Output? = null,
    public val draftContentLink: Output? = null,
    public val inEdit: Output? = null,
    public val lastModifiedTime: Output? = null,
    public val outputTypes: Output>? = null,
    public val parameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.automation.inputs.RunbookDraftArgs =
        com.pulumi.azurenative.automation.inputs.RunbookDraftArgs.builder()
            .creationTime(creationTime?.applyValue({ args0 -> args0 }))
            .draftContentLink(draftContentLink?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .inEdit(inEdit?.applyValue({ args0 -> args0 }))
            .lastModifiedTime(lastModifiedTime?.applyValue({ args0 -> args0 }))
            .outputTypes(outputTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RunbookDraftArgs].
 */
@PulumiTagMarker
public class RunbookDraftArgsBuilder internal constructor() {
    private var creationTime: Output? = null

    private var draftContentLink: Output? = null

    private var inEdit: Output? = null

    private var lastModifiedTime: Output? = null

    private var outputTypes: Output>? = null

    private var parameters: Output>? = null

    /**
     * @param value Gets or sets the creation time of the runbook draft.
     */
    @JvmName("xwjyqovgpnglhbbc")
    public suspend fun creationTime(`value`: Output) {
        this.creationTime = value
    }

    /**
     * @param value Gets or sets the draft runbook content link.
     */
    @JvmName("nxvtkdoencesqxik")
    public suspend fun draftContentLink(`value`: Output) {
        this.draftContentLink = value
    }

    /**
     * @param value Gets or sets whether runbook is in edit mode.
     */
    @JvmName("bunumesytutixqvd")
    public suspend fun inEdit(`value`: Output) {
        this.inEdit = value
    }

    /**
     * @param value Gets or sets the last modified time of the runbook draft.
     */
    @JvmName("jdfchqqasrqvsous")
    public suspend fun lastModifiedTime(`value`: Output) {
        this.lastModifiedTime = value
    }

    /**
     * @param value Gets or sets the runbook output types.
     */
    @JvmName("pcvnltctykfjmkmb")
    public suspend fun outputTypes(`value`: Output>) {
        this.outputTypes = value
    }

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

    /**
     * @param values Gets or sets the runbook output types.
     */
    @JvmName("kpnsqdwquwmnivgi")
    public suspend fun outputTypes(values: List>) {
        this.outputTypes = Output.all(values)
    }

    /**
     * @param value Gets or sets the runbook draft parameters.
     */
    @JvmName("riqmpmofvlbfhnbx")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Gets or sets the creation time of the runbook draft.
     */
    @JvmName("uooioxfocxwbaivm")
    public suspend fun creationTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.creationTime = mapped
    }

    /**
     * @param value Gets or sets the draft runbook content link.
     */
    @JvmName("fustgffuepdgxxss")
    public suspend fun draftContentLink(`value`: ContentLinkArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.draftContentLink = mapped
    }

    /**
     * @param argument Gets or sets the draft runbook content link.
     */
    @JvmName("ktpqpjklmipyrljl")
    public suspend fun draftContentLink(argument: suspend ContentLinkArgsBuilder.() -> Unit) {
        val toBeMapped = ContentLinkArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.draftContentLink = mapped
    }

    /**
     * @param value Gets or sets whether runbook is in edit mode.
     */
    @JvmName("fuqqwvjjpjtabqex")
    public suspend fun inEdit(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inEdit = mapped
    }

    /**
     * @param value Gets or sets the last modified time of the runbook draft.
     */
    @JvmName("wycgcrmptbpabohf")
    public suspend fun lastModifiedTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedTime = mapped
    }

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

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

    /**
     * @param value Gets or sets the runbook draft parameters.
     */
    @JvmName("djekanrhgsslxrur")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Gets or sets the runbook draft parameters.
     */
    @JvmName("pjliaeiwpwsqedbe")
    public suspend fun parameters(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                RunbookParameterArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Gets or sets the runbook draft parameters.
     */
    @JvmName("tiivxxdxfymvdtxd")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): RunbookDraftArgs = RunbookDraftArgs(
        creationTime = creationTime,
        draftContentLink = draftContentLink,
        inEdit = inEdit,
        lastModifiedTime = lastModifiedTime,
        outputTypes = outputTypes,
        parameters = parameters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy