com.pulumi.gcp.pubsub.kotlin.inputs.LiteTopicPartitionConfigCapacityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.pubsub.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.LiteTopicPartitionConfigCapacityArgs.builder
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
/**
*
* @property publishMibPerSec Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
* @property subscribeMibPerSec Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
*/
public data class LiteTopicPartitionConfigCapacityArgs(
public val publishMibPerSec: Output,
public val subscribeMibPerSec: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.pubsub.inputs.LiteTopicPartitionConfigCapacityArgs =
com.pulumi.gcp.pubsub.inputs.LiteTopicPartitionConfigCapacityArgs.builder()
.publishMibPerSec(publishMibPerSec.applyValue({ args0 -> args0 }))
.subscribeMibPerSec(subscribeMibPerSec.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LiteTopicPartitionConfigCapacityArgs].
*/
@PulumiTagMarker
public class LiteTopicPartitionConfigCapacityArgsBuilder internal constructor() {
private var publishMibPerSec: Output? = null
private var subscribeMibPerSec: Output? = null
/**
* @param value Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
*/
@JvmName("davvlcqgnsclscmq")
public suspend fun publishMibPerSec(`value`: Output) {
this.publishMibPerSec = value
}
/**
* @param value Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
*/
@JvmName("sibxfhifgpnwheoh")
public suspend fun subscribeMibPerSec(`value`: Output) {
this.subscribeMibPerSec = value
}
/**
* @param value Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
*/
@JvmName("jpqvkpatcsncwhef")
public suspend fun publishMibPerSec(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publishMibPerSec = mapped
}
/**
* @param value Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
*/
@JvmName("xkpiobiakdmonyjg")
public suspend fun subscribeMibPerSec(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subscribeMibPerSec = mapped
}
internal fun build(): LiteTopicPartitionConfigCapacityArgs = LiteTopicPartitionConfigCapacityArgs(
publishMibPerSec = publishMibPerSec ?: throw PulumiNullFieldException("publishMibPerSec"),
subscribeMibPerSec = subscribeMibPerSec ?: throw PulumiNullFieldException("subscribeMibPerSec"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy