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

com.pulumi.azurenative.monitor.kotlin.inputs.CacheConfigurationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.monitor.kotlin.inputs

import com.pulumi.azurenative.monitor.inputs.CacheConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Cache configurations.
 * @property maxStorageUsage Max storage usage in megabytes.
 * @property retentionPeriod Retention period in minutes.
 */
public data class CacheConfigurationArgs(
    public val maxStorageUsage: Output? = null,
    public val retentionPeriod: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.monitor.inputs.CacheConfigurationArgs =
        com.pulumi.azurenative.monitor.inputs.CacheConfigurationArgs.builder()
            .maxStorageUsage(maxStorageUsage?.applyValue({ args0 -> args0 }))
            .retentionPeriod(retentionPeriod?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CacheConfigurationArgs].
 */
@PulumiTagMarker
public class CacheConfigurationArgsBuilder internal constructor() {
    private var maxStorageUsage: Output? = null

    private var retentionPeriod: Output? = null

    /**
     * @param value Max storage usage in megabytes.
     */
    @JvmName("asqfxefdwpsncxsc")
    public suspend fun maxStorageUsage(`value`: Output) {
        this.maxStorageUsage = value
    }

    /**
     * @param value Retention period in minutes.
     */
    @JvmName("xofrgwjunknyneyd")
    public suspend fun retentionPeriod(`value`: Output) {
        this.retentionPeriod = value
    }

    /**
     * @param value Max storage usage in megabytes.
     */
    @JvmName("hrdembqsorlwxaci")
    public suspend fun maxStorageUsage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxStorageUsage = mapped
    }

    /**
     * @param value Retention period in minutes.
     */
    @JvmName("fgwmojfihmdrehay")
    public suspend fun retentionPeriod(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPeriod = mapped
    }

    internal fun build(): CacheConfigurationArgs = CacheConfigurationArgs(
        maxStorageUsage = maxStorageUsage,
        retentionPeriod = retentionPeriod,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy