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

com.pulumi.kubernetes.helm.v4.kotlin.inputs.PostRendererArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.helm.v4.kotlin.inputs

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.kubernetes.helm.v4.inputs.PostRendererArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specification defining the post-renderer to use.
 * @property args Arguments to pass to the post-renderer command.
 * @property command Path to an executable to be used for post rendering.
 */
public data class PostRendererArgs(
    public val args: Output>? = null,
    public val command: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.helm.v4.inputs.PostRendererArgs =
        com.pulumi.kubernetes.helm.v4.inputs.PostRendererArgs.builder()
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .command(command.applyValue({ args0 -> args0 })).build()
}

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

    private var command: Output? = null

    /**
     * @param value Arguments to pass to the post-renderer command.
     */
    @JvmName("mmqmhvewtihqufht")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values Arguments to pass to the post-renderer command.
     */
    @JvmName("xysivbubxdcsnicq")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value Path to an executable to be used for post rendering.
     */
    @JvmName("eksxafahpvujjgrx")
    public suspend fun command(`value`: Output) {
        this.command = value
    }

    /**
     * @param value Arguments to pass to the post-renderer command.
     */
    @JvmName("ofydciyewxaxsohv")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values Arguments to pass to the post-renderer command.
     */
    @JvmName("ouuwhuuinyfgysnh")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value Path to an executable to be used for post rendering.
     */
    @JvmName("vsrlueeyvoesbomp")
    public suspend fun command(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.command = mapped
    }

    internal fun build(): PostRendererArgs = PostRendererArgs(
        args = args,
        command = command ?: throw PulumiNullFieldException("command"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy