com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionResourcesArgs.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.appengine.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionResourcesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property cpu Number of CPU cores needed.
* @property diskGb Disk size (GB) needed.
* @property memoryGb Memory (GB) needed.
* @property volumes List of ports, or port pairs, to forward from the virtual machine to the application container.
* Structure is documented below.
*/
public data class FlexibleAppVersionResourcesArgs(
public val cpu: Output? = null,
public val diskGb: Output? = null,
public val memoryGb: Output? = null,
public val volumes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionResourcesArgs =
com.pulumi.gcp.appengine.inputs.FlexibleAppVersionResourcesArgs.builder()
.cpu(cpu?.applyValue({ args0 -> args0 }))
.diskGb(diskGb?.applyValue({ args0 -> args0 }))
.memoryGb(memoryGb?.applyValue({ args0 -> args0 }))
.volumes(
volumes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [FlexibleAppVersionResourcesArgs].
*/
@PulumiTagMarker
public class FlexibleAppVersionResourcesArgsBuilder internal constructor() {
private var cpu: Output? = null
private var diskGb: Output? = null
private var memoryGb: Output? = null
private var volumes: Output>? = null
/**
* @param value Number of CPU cores needed.
*/
@JvmName("qvookatmvdoirbsb")
public suspend fun cpu(`value`: Output) {
this.cpu = value
}
/**
* @param value Disk size (GB) needed.
*/
@JvmName("qpcxroemdakajvrc")
public suspend fun diskGb(`value`: Output) {
this.diskGb = value
}
/**
* @param value Memory (GB) needed.
*/
@JvmName("kjlkeaiyfsunmruc")
public suspend fun memoryGb(`value`: Output) {
this.memoryGb = value
}
/**
* @param value List of ports, or port pairs, to forward from the virtual machine to the application container.
* Structure is documented below.
*/
@JvmName("axsycwgnkefrihej")
public suspend fun volumes(`value`: Output>) {
this.volumes = value
}
@JvmName("rwdhjgimvpgwceyv")
public suspend fun volumes(vararg values: Output) {
this.volumes = Output.all(values.asList())
}
/**
* @param values List of ports, or port pairs, to forward from the virtual machine to the application container.
* Structure is documented below.
*/
@JvmName("nqwqoosbpdpbkkwe")
public suspend fun volumes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy