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

com.pulumi.aws.elasticache.kotlin.inputs.ServerlessCacheCacheUsageLimitsDataStorageArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.elasticache.kotlin.inputs

import com.pulumi.aws.elasticache.inputs.ServerlessCacheCacheUsageLimitsDataStorageArgs.builder
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maximum The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
 * @property minimum The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
 * @property unit The unit that the storage is measured in, in GB.
 */
public data class ServerlessCacheCacheUsageLimitsDataStorageArgs(
    public val maximum: Output? = null,
    public val minimum: Output? = null,
    public val unit: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.elasticache.inputs.ServerlessCacheCacheUsageLimitsDataStorageArgs =
        com.pulumi.aws.elasticache.inputs.ServerlessCacheCacheUsageLimitsDataStorageArgs.builder()
            .maximum(maximum?.applyValue({ args0 -> args0 }))
            .minimum(minimum?.applyValue({ args0 -> args0 }))
            .unit(unit.applyValue({ args0 -> args0 })).build()
}

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

    private var minimum: Output? = null

    private var unit: Output? = null

    /**
     * @param value The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
     */
    @JvmName("ekueundygkjormin")
    public suspend fun maximum(`value`: Output) {
        this.maximum = value
    }

    /**
     * @param value The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
     */
    @JvmName("nfvccgqmxeomnypc")
    public suspend fun minimum(`value`: Output) {
        this.minimum = value
    }

    /**
     * @param value The unit that the storage is measured in, in GB.
     */
    @JvmName("ymqltamofdrjgygn")
    public suspend fun unit(`value`: Output) {
        this.unit = value
    }

    /**
     * @param value The upper limit for data storage the cache is set to use. Must be between 1 and 5,000.
     */
    @JvmName("hcbqarvvcpqpgfap")
    public suspend fun maximum(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximum = mapped
    }

    /**
     * @param value The lower limit for data storage the cache is set to use. Must be between 1 and 5,000.
     */
    @JvmName("knpcpmjpdgnhqaxb")
    public suspend fun minimum(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimum = mapped
    }

    /**
     * @param value The unit that the storage is measured in, in GB.
     */
    @JvmName("dadajjybbanysqdr")
    public suspend fun unit(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.unit = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy