com.pulumi.azurenative.iotoperations.kotlin.inputs.FrontendArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.iotoperations.kotlin.inputs
import com.pulumi.azurenative.iotoperations.inputs.FrontendArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The desired properties of the frontend instances of the Broker
* @property replicas The desired number of frontend instances (pods).
* @property workers Number of logical frontend workers per instance (pod).
*/
public data class FrontendArgs(
public val replicas: Output,
public val workers: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.FrontendArgs =
com.pulumi.azurenative.iotoperations.inputs.FrontendArgs.builder()
.replicas(replicas.applyValue({ args0 -> args0 }))
.workers(workers?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FrontendArgs].
*/
@PulumiTagMarker
public class FrontendArgsBuilder internal constructor() {
private var replicas: Output? = null
private var workers: Output? = null
/**
* @param value The desired number of frontend instances (pods).
*/
@JvmName("khxhggbnkfaekgul")
public suspend fun replicas(`value`: Output) {
this.replicas = value
}
/**
* @param value Number of logical frontend workers per instance (pod).
*/
@JvmName("ugjdrhrmnxwpfxnt")
public suspend fun workers(`value`: Output) {
this.workers = value
}
/**
* @param value The desired number of frontend instances (pods).
*/
@JvmName("noyhshdirsmondgf")
public suspend fun replicas(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.replicas = mapped
}
/**
* @param value Number of logical frontend workers per instance (pod).
*/
@JvmName("kfwlqixgiuafwjqm")
public suspend fun workers(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workers = mapped
}
internal fun build(): FrontendArgs = FrontendArgs(
replicas = replicas ?: throw PulumiNullFieldException("replicas"),
workers = workers,
)
}