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

com.pulumi.nomad.kotlin.inputs.GetJobParserPlainArgs.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.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.inputs

import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.inputs.GetJobParserPlainArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getJobParser.
 * @property canonicalize `(boolean: true)` - flag to enable setting any unset fields to their default values.
 * @property hcl `(string)` - the HCL definition of the job.
 */
public data class GetJobParserPlainArgs(
    public val canonicalize: Boolean? = null,
    public val hcl: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.GetJobParserPlainArgs =
        com.pulumi.nomad.inputs.GetJobParserPlainArgs.builder()
            .canonicalize(canonicalize?.let({ args0 -> args0 }))
            .hcl(hcl.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetJobParserPlainArgs].
 */
@PulumiTagMarker
public class GetJobParserPlainArgsBuilder internal constructor() {
    private var canonicalize: Boolean? = null

    private var hcl: String? = null

    /**
     * @param value `(boolean: true)` - flag to enable setting any unset fields to their default values.
     */
    @JvmName("ayfygqraplaaaqwd")
    public suspend fun canonicalize(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.canonicalize = mapped
    }

    /**
     * @param value `(string)` - the HCL definition of the job.
     */
    @JvmName("gahawtgtrlcmthuu")
    public suspend fun hcl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.hcl = mapped
    }

    internal fun build(): GetJobParserPlainArgs = GetJobParserPlainArgs(
        canonicalize = canonicalize,
        hcl = hcl ?: throw PulumiNullFieldException("hcl"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy