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

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

package com.pulumi.gcp.cloudrun.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeEmptyDirArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property medium The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
 * @property sizeLimit Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
 */
public data class ServiceTemplateSpecVolumeEmptyDirArgs(
    public val medium: Output? = null,
    public val sizeLimit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeEmptyDirArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecVolumeEmptyDirArgs.builder()
            .medium(medium?.applyValue({ args0 -> args0 }))
            .sizeLimit(sizeLimit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateSpecVolumeEmptyDirArgs].
 */
@PulumiTagMarker
public class ServiceTemplateSpecVolumeEmptyDirArgsBuilder internal constructor() {
    private var medium: Output? = null

    private var sizeLimit: Output? = null

    /**
     * @param value The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
     */
    @JvmName("pcmckujjvqkjdmsa")
    public suspend fun medium(`value`: Output) {
        this.medium = value
    }

    /**
     * @param value Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
     */
    @JvmName("dtjitkmexfeisxjh")
    public suspend fun sizeLimit(`value`: Output) {
        this.sizeLimit = value
    }

    /**
     * @param value The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
     */
    @JvmName("exwrnmkfardjnicc")
    public suspend fun medium(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.medium = mapped
    }

    /**
     * @param value Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
     */
    @JvmName("qmwtrpkunqvdigxa")
    public suspend fun sizeLimit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeLimit = mapped
    }

    internal fun build(): ServiceTemplateSpecVolumeEmptyDirArgs =
        ServiceTemplateSpecVolumeEmptyDirArgs(
            medium = medium,
            sizeLimit = sizeLimit,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy