![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.inputs.GetJobPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.GetJobPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getJob.
* @property jobId `(string)` ID of the job.
* @property namespace `(string)` Namespace of the specified job.
*/
public data class GetJobPlainArgs(
public val jobId: String,
public val namespace: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.inputs.GetJobPlainArgs =
com.pulumi.nomad.inputs.GetJobPlainArgs.builder()
.jobId(jobId.let({ args0 -> args0 }))
.namespace(namespace?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetJobPlainArgs].
*/
@PulumiTagMarker
public class GetJobPlainArgsBuilder internal constructor() {
private var jobId: String? = null
private var namespace: String? = null
/**
* @param value `(string)` ID of the job.
*/
@JvmName("lwccsceebfnkwbmm")
public suspend fun jobId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.jobId = mapped
}
/**
* @param value `(string)` Namespace of the specified job.
*/
@JvmName("jxergrsrsjecprgl")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.namespace = mapped
}
internal fun build(): GetJobPlainArgs = GetJobPlainArgs(
jobId = jobId ?: throw PulumiNullFieldException("jobId"),
namespace = namespace,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy