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

com.pulumi.gcp.managedkafka.kotlin.inputs.ClusterCapacityConfigArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.managedkafka.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.managedkafka.inputs.ClusterCapacityConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property memoryBytes The memory to provision for the cluster in bytes. The value must be between 1 GiB and 8 GiB per vCPU. Ex. 1024Mi, 4Gi.
 * - - -
 * @property vcpuCount The number of vCPUs to provision for the cluster. The minimum is 3.
 */
public data class ClusterCapacityConfigArgs(
    public val memoryBytes: Output,
    public val vcpuCount: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.managedkafka.inputs.ClusterCapacityConfigArgs =
        com.pulumi.gcp.managedkafka.inputs.ClusterCapacityConfigArgs.builder()
            .memoryBytes(memoryBytes.applyValue({ args0 -> args0 }))
            .vcpuCount(vcpuCount.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterCapacityConfigArgs].
 */
@PulumiTagMarker
public class ClusterCapacityConfigArgsBuilder internal constructor() {
    private var memoryBytes: Output? = null

    private var vcpuCount: Output? = null

    /**
     * @param value The memory to provision for the cluster in bytes. The value must be between 1 GiB and 8 GiB per vCPU. Ex. 1024Mi, 4Gi.
     * - - -
     */
    @JvmName("dgjuylblabuaglvh")
    public suspend fun memoryBytes(`value`: Output) {
        this.memoryBytes = value
    }

    /**
     * @param value The number of vCPUs to provision for the cluster. The minimum is 3.
     */
    @JvmName("jdqfdwbypfrqfauw")
    public suspend fun vcpuCount(`value`: Output) {
        this.vcpuCount = value
    }

    /**
     * @param value The memory to provision for the cluster in bytes. The value must be between 1 GiB and 8 GiB per vCPU. Ex. 1024Mi, 4Gi.
     * - - -
     */
    @JvmName("gswegxjamparcikg")
    public suspend fun memoryBytes(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.memoryBytes = mapped
    }

    /**
     * @param value The number of vCPUs to provision for the cluster. The minimum is 3.
     */
    @JvmName("pemunhflmuasvywa")
    public suspend fun vcpuCount(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vcpuCount = mapped
    }

    internal fun build(): ClusterCapacityConfigArgs = ClusterCapacityConfigArgs(
        memoryBytes = memoryBytes ?: throw PulumiNullFieldException("memoryBytes"),
        vcpuCount = vcpuCount ?: throw PulumiNullFieldException("vcpuCount"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy