![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.inputs.GetDatacentersPlainArgs.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.PulumiTagMarker
import com.pulumi.nomad.inputs.GetDatacentersPlainArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getDatacenters.
* @property ignoreDownNodes `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
* @property prefix `(string)`: An optional string to filter datacenters based on name prefix. If not provided, all datacenters are returned.
*/
public data class GetDatacentersPlainArgs(
public val ignoreDownNodes: Boolean? = null,
public val prefix: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.inputs.GetDatacentersPlainArgs =
com.pulumi.nomad.inputs.GetDatacentersPlainArgs.builder()
.ignoreDownNodes(ignoreDownNodes?.let({ args0 -> args0 }))
.prefix(prefix?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDatacentersPlainArgs].
*/
@PulumiTagMarker
public class GetDatacentersPlainArgsBuilder internal constructor() {
private var ignoreDownNodes: Boolean? = null
private var prefix: String? = null
/**
* @param value `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
*/
@JvmName("sjcmjnaxnlgmqliu")
public suspend fun ignoreDownNodes(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.ignoreDownNodes = mapped
}
/**
* @param value `(string)`: An optional string to filter datacenters based on name prefix. If not provided, all datacenters are returned.
*/
@JvmName("korqpkdcegfyibox")
public suspend fun prefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.prefix = mapped
}
internal fun build(): GetDatacentersPlainArgs = GetDatacentersPlainArgs(
ignoreDownNodes = ignoreDownNodes,
prefix = prefix,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy