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

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

package com.pulumi.gcp.composer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigTriggererArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property count The number of triggerers.
 * @property cpu CPU request and limit for a single Airflow triggerer replica.
 * @property memoryGb Memory (GB) request and limit for a single Airflow triggerer replica.
 */
public data class EnvironmentConfigWorkloadsConfigTriggererArgs(
    public val count: Output,
    public val cpu: Output,
    public val memoryGb: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigTriggererArgs =
        com.pulumi.gcp.composer.inputs.EnvironmentConfigWorkloadsConfigTriggererArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .cpu(cpu.applyValue({ args0 -> args0 }))
            .memoryGb(memoryGb.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentConfigWorkloadsConfigTriggererArgs].
 */
@PulumiTagMarker
public class EnvironmentConfigWorkloadsConfigTriggererArgsBuilder internal constructor() {
    private var count: Output? = null

    private var cpu: Output? = null

    private var memoryGb: Output? = null

    /**
     * @param value The number of triggerers.
     */
    @JvmName("auvjhkjwxxqbwcxr")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value CPU request and limit for a single Airflow triggerer replica.
     */
    @JvmName("djfqtkdjqtvwrrwl")
    public suspend fun cpu(`value`: Output) {
        this.cpu = value
    }

    /**
     * @param value Memory (GB) request and limit for a single Airflow triggerer replica.
     */
    @JvmName("hqracqlmhcohvptl")
    public suspend fun memoryGb(`value`: Output) {
        this.memoryGb = value
    }

    /**
     * @param value The number of triggerers.
     */
    @JvmName("ataqinipmksyqdld")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value CPU request and limit for a single Airflow triggerer replica.
     */
    @JvmName("ktkoxfliamjvqjgm")
    public suspend fun cpu(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cpu = mapped
    }

    /**
     * @param value Memory (GB) request and limit for a single Airflow triggerer replica.
     */
    @JvmName("wnkndfvdetsrbfco")
    public suspend fun memoryGb(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.memoryGb = mapped
    }

    internal fun build(): EnvironmentConfigWorkloadsConfigTriggererArgs =
        EnvironmentConfigWorkloadsConfigTriggererArgs(
            count = count ?: throw PulumiNullFieldException("count"),
            cpu = cpu ?: throw PulumiNullFieldException("cpu"),
            memoryGb = memoryGb ?: throw PulumiNullFieldException("memoryGb"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy