Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appplatform.kotlin.inputs
import com.pulumi.azurenative.appplatform.inputs.ResourceRequestsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Deployment resource request payload
* @property cpu Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier.
* @property memory Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
*/
public data class ResourceRequestsArgs(
public val cpu: Output? = null,
public val memory: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.inputs.ResourceRequestsArgs =
com.pulumi.azurenative.appplatform.inputs.ResourceRequestsArgs.builder()
.cpu(cpu?.applyValue({ args0 -> args0 }))
.memory(memory?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceRequestsArgs].
*/
@PulumiTagMarker
public class ResourceRequestsArgsBuilder internal constructor() {
private var cpu: Output? = null
private var memory: Output? = null
/**
* @param value Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier.
*/
@JvmName("rmsnyksfeqhtstax")
public suspend fun cpu(`value`: Output) {
this.cpu = value
}
/**
* @param value Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
*/
@JvmName("dnruyqpsayuowpxu")
public suspend fun memory(`value`: Output) {
this.memory = value
}
/**
* @param value Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier.
*/
@JvmName("gigvuvvwvfinuwtw")
public suspend fun cpu(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpu = mapped
}
/**
* @param value Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
*/
@JvmName("jbagnjjserwfxqxh")
public suspend fun memory(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memory = mapped
}
internal fun build(): ResourceRequestsArgs = ResourceRequestsArgs(
cpu = cpu,
memory = memory,
)
}