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

com.pulumi.gcp.compute.kotlin.inputs.RegionCommitmentLicenseResourceArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionCommitmentLicenseResourceArgs.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 amount The number of licenses purchased.
 * @property coresPerLicense Specifies the core range of the instance for which this license applies.
 * @property license Any applicable license URI.
 */
public data class RegionCommitmentLicenseResourceArgs(
    public val amount: Output? = null,
    public val coresPerLicense: Output? = null,
    public val license: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionCommitmentLicenseResourceArgs =
        com.pulumi.gcp.compute.inputs.RegionCommitmentLicenseResourceArgs.builder()
            .amount(amount?.applyValue({ args0 -> args0 }))
            .coresPerLicense(coresPerLicense?.applyValue({ args0 -> args0 }))
            .license(license.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionCommitmentLicenseResourceArgs].
 */
@PulumiTagMarker
public class RegionCommitmentLicenseResourceArgsBuilder internal constructor() {
    private var amount: Output? = null

    private var coresPerLicense: Output? = null

    private var license: Output? = null

    /**
     * @param value The number of licenses purchased.
     */
    @JvmName("hwwqjrrhtqislosp")
    public suspend fun amount(`value`: Output) {
        this.amount = value
    }

    /**
     * @param value Specifies the core range of the instance for which this license applies.
     */
    @JvmName("tecbutbjyffrkeaw")
    public suspend fun coresPerLicense(`value`: Output) {
        this.coresPerLicense = value
    }

    /**
     * @param value Any applicable license URI.
     */
    @JvmName("fnnmiwbmkupwachn")
    public suspend fun license(`value`: Output) {
        this.license = value
    }

    /**
     * @param value The number of licenses purchased.
     */
    @JvmName("egaiegknvuffvpgx")
    public suspend fun amount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amount = mapped
    }

    /**
     * @param value Specifies the core range of the instance for which this license applies.
     */
    @JvmName("tjnibvwcmxpncjqd")
    public suspend fun coresPerLicense(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coresPerLicense = mapped
    }

    /**
     * @param value Any applicable license URI.
     */
    @JvmName("btrpmrdrkklamrry")
    public suspend fun license(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.license = mapped
    }

    internal fun build(): RegionCommitmentLicenseResourceArgs = RegionCommitmentLicenseResourceArgs(
        amount = amount,
        coresPerLicense = coresPerLicense,
        license = license ?: throw PulumiNullFieldException("license"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy