All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.pubsub.kotlin.inputs.LiteTopicPartitionConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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.LiteTopicPartitionConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property capacity The capacity configuration.
 * Structure is documented below.
 * @property count The number of partitions in the topic. Must be at least 1.
 */
public data class LiteTopicPartitionConfigArgs(
    public val capacity: Output? = null,
    public val count: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.pubsub.inputs.LiteTopicPartitionConfigArgs =
        com.pulumi.gcp.pubsub.inputs.LiteTopicPartitionConfigArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .count(count.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LiteTopicPartitionConfigArgs].
 */
@PulumiTagMarker
public class LiteTopicPartitionConfigArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var count: Output? = null

    /**
     * @param value The capacity configuration.
     * Structure is documented below.
     */
    @JvmName("bmfrfyqlprigqoiq")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value The number of partitions in the topic. Must be at least 1.
     */
    @JvmName("rxtlmtfhybgpesdf")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The capacity configuration.
     * Structure is documented below.
     */
    @JvmName("lojihjfijiarpknn")
    public suspend fun capacity(`value`: LiteTopicPartitionConfigCapacityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param argument The capacity configuration.
     * Structure is documented below.
     */
    @JvmName("svoattuxgyrgshit")
    public suspend fun capacity(argument: suspend LiteTopicPartitionConfigCapacityArgsBuilder.() -> Unit) {
        val toBeMapped = LiteTopicPartitionConfigCapacityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.capacity = mapped
    }

    /**
     * @param value The number of partitions in the topic. Must be at least 1.
     */
    @JvmName("pkdkmqqnnbsksmfi")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    internal fun build(): LiteTopicPartitionConfigArgs = LiteTopicPartitionConfigArgs(
        capacity = capacity,
        count = count ?: throw PulumiNullFieldException("count"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy