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

com.pulumi.awsnative.elasticache.kotlin.inputs.ServerlessCacheDataStorageArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticache.kotlin.inputs

import com.pulumi.awsnative.elasticache.inputs.ServerlessCacheDataStorageArgs.builder
import com.pulumi.awsnative.elasticache.kotlin.enums.ServerlessCacheDataStorageUnit
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The cached data capacity of the Serverless Cache.
 * @property maximum The maximum cached data capacity of the Serverless Cache.
 * @property minimum The minimum cached data capacity of the Serverless Cache.
 * @property unit The unit of cached data capacity of the Serverless Cache.
 */
public data class ServerlessCacheDataStorageArgs(
    public val maximum: Output? = null,
    public val minimum: Output? = null,
    public val unit: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.elasticache.inputs.ServerlessCacheDataStorageArgs =
        com.pulumi.awsnative.elasticache.inputs.ServerlessCacheDataStorageArgs.builder()
            .maximum(maximum?.applyValue({ args0 -> args0 }))
            .minimum(minimum?.applyValue({ args0 -> args0 }))
            .unit(unit.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServerlessCacheDataStorageArgs].
 */
@PulumiTagMarker
public class ServerlessCacheDataStorageArgsBuilder internal constructor() {
    private var maximum: Output? = null

    private var minimum: Output? = null

    private var unit: Output? = null

    /**
     * @param value The maximum cached data capacity of the Serverless Cache.
     */
    @JvmName("ptkxhtwevhnrfern")
    public suspend fun maximum(`value`: Output) {
        this.maximum = value
    }

    /**
     * @param value The minimum cached data capacity of the Serverless Cache.
     */
    @JvmName("otovkhwmrcorchbx")
    public suspend fun minimum(`value`: Output) {
        this.minimum = value
    }

    /**
     * @param value The unit of cached data capacity of the Serverless Cache.
     */
    @JvmName("lpjxgfiltajnwhth")
    public suspend fun unit(`value`: Output) {
        this.unit = value
    }

    /**
     * @param value The maximum cached data capacity of the Serverless Cache.
     */
    @JvmName("xutyuxqevpfnanid")
    public suspend fun maximum(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximum = mapped
    }

    /**
     * @param value The minimum cached data capacity of the Serverless Cache.
     */
    @JvmName("cdpjwbboiekajhgk")
    public suspend fun minimum(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimum = mapped
    }

    /**
     * @param value The unit of cached data capacity of the Serverless Cache.
     */
    @JvmName("wutgxseqwqhgauvy")
    public suspend fun unit(`value`: ServerlessCacheDataStorageUnit) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.unit = mapped
    }

    internal fun build(): ServerlessCacheDataStorageArgs = ServerlessCacheDataStorageArgs(
        maximum = maximum,
        minimum = minimum,
        unit = unit ?: throw PulumiNullFieldException("unit"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy