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

com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.appplatform.kotlin.inputs

import com.pulumi.azure.appplatform.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs.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

/**
 *
 * @property size Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
 * @property timeToLive Specifies the time before a cached entry is expired (300s, 5m, 1h...).
 */
public data class SpringCloudGatewayLocalResponseCachePerRouteArgs(
    public val size: Output? = null,
    public val timeToLive: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs =
        com.pulumi.azure.appplatform.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs.builder()
            .size(size?.applyValue({ args0 -> args0 }))
            .timeToLive(timeToLive?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpringCloudGatewayLocalResponseCachePerRouteArgs].
 */
@PulumiTagMarker
public class SpringCloudGatewayLocalResponseCachePerRouteArgsBuilder internal constructor() {
    private var size: Output? = null

    private var timeToLive: Output? = null

    /**
     * @param value Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
     */
    @JvmName("pulncwshsopbkmhk")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value Specifies the time before a cached entry is expired (300s, 5m, 1h...).
     */
    @JvmName("yesjjbkpagndfpet")
    public suspend fun timeToLive(`value`: Output) {
        this.timeToLive = value
    }

    /**
     * @param value Specifies the maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.
     */
    @JvmName("emtktxaidrnliqri")
    public suspend fun size(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

    /**
     * @param value Specifies the time before a cached entry is expired (300s, 5m, 1h...).
     */
    @JvmName("tinnffepfjpxhqlv")
    public suspend fun timeToLive(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeToLive = mapped
    }

    internal fun build(): SpringCloudGatewayLocalResponseCachePerRouteArgs =
        SpringCloudGatewayLocalResponseCachePerRouteArgs(
            size = size,
            timeToLive = timeToLive,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy