com.pulumi.nomad.kotlin.inputs.GetPluginPlainArgs.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.GetPluginPlainArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getPlugin.
* @property pluginId `(string)` ID of the plugin.
* @property waitForHealthy `(boolean)` retry until the plugin exists and all controllers are healthy
* @property waitForRegistration `(boolean)` if the plugin doesn't exist, retry until it does
*/
public data class GetPluginPlainArgs(
public val pluginId: String,
public val waitForHealthy: Boolean? = null,
public val waitForRegistration: Boolean? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.inputs.GetPluginPlainArgs =
com.pulumi.nomad.inputs.GetPluginPlainArgs.builder()
.pluginId(pluginId.let({ args0 -> args0 }))
.waitForHealthy(waitForHealthy?.let({ args0 -> args0 }))
.waitForRegistration(waitForRegistration?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetPluginPlainArgs].
*/
@PulumiTagMarker
public class GetPluginPlainArgsBuilder internal constructor() {
private var pluginId: String? = null
private var waitForHealthy: Boolean? = null
private var waitForRegistration: Boolean? = null
/**
* @param value `(string)` ID of the plugin.
*/
@JvmName("btqdjfmegttlsxsm")
public suspend fun pluginId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.pluginId = mapped
}
/**
* @param value `(boolean)` retry until the plugin exists and all controllers are healthy
*/
@JvmName("vglgxqvpuxsmsdol")
public suspend fun waitForHealthy(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.waitForHealthy = mapped
}
/**
* @param value `(boolean)` if the plugin doesn't exist, retry until it does
*/
@JvmName("hlbomhlhmyojtgnp")
public suspend fun waitForRegistration(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.waitForRegistration = mapped
}
internal fun build(): GetPluginPlainArgs = GetPluginPlainArgs(
pluginId = pluginId ?: throw PulumiNullFieldException("pluginId"),
waitForHealthy = waitForHealthy,
waitForRegistration = waitForRegistration,
)
}