com.pulumi.aws.msk.kotlin.inputs.GetKafkaVersionPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.msk.kotlin.inputs
import com.pulumi.aws.msk.inputs.GetKafkaVersionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getKafkaVersion.
* @property preferredVersions Ordered list of preferred Kafka versions. The first match in this list will be returned. Either `preferred_versions` or `version` must be set.
* @property version Version of MSK Kafka. For example 2.4.1.1 or "2.2.1" etc. Either `preferred_versions` or `version` must be set.
*/
public data class GetKafkaVersionPlainArgs(
public val preferredVersions: List? = null,
public val version: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.msk.inputs.GetKafkaVersionPlainArgs =
com.pulumi.aws.msk.inputs.GetKafkaVersionPlainArgs.builder()
.preferredVersions(preferredVersions?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.version(version?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetKafkaVersionPlainArgs].
*/
@PulumiTagMarker
public class GetKafkaVersionPlainArgsBuilder internal constructor() {
private var preferredVersions: List? = null
private var version: String? = null
/**
* @param value Ordered list of preferred Kafka versions. The first match in this list will be returned. Either `preferred_versions` or `version` must be set.
*/
@JvmName("sfoxyqigjdluykcu")
public suspend fun preferredVersions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.preferredVersions = mapped
}
/**
* @param values Ordered list of preferred Kafka versions. The first match in this list will be returned. Either `preferred_versions` or `version` must be set.
*/
@JvmName("eixekiepvpmtufnl")
public suspend fun preferredVersions(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.preferredVersions = mapped
}
/**
* @param value Version of MSK Kafka. For example 2.4.1.1 or "2.2.1" etc. Either `preferred_versions` or `version` must be set.
*/
@JvmName("sugslxlxelpfonec")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.version = mapped
}
internal fun build(): GetKafkaVersionPlainArgs = GetKafkaVersionPlainArgs(
preferredVersions = preferredVersions,
version = version,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy