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

com.pulumi.azure.appservice.kotlin.inputs.LinuxWebAppLogsHttpLogsFileSystemArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxWebAppLogsHttpLogsFileSystemArgs.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.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property retentionInDays The retention period in days. A value of `0` means no retention.
 * @property retentionInMb The maximum size in megabytes that log files can use.
 */
public data class LinuxWebAppLogsHttpLogsFileSystemArgs(
    public val retentionInDays: Output,
    public val retentionInMb: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.LinuxWebAppLogsHttpLogsFileSystemArgs =
        com.pulumi.azure.appservice.inputs.LinuxWebAppLogsHttpLogsFileSystemArgs.builder()
            .retentionInDays(retentionInDays.applyValue({ args0 -> args0 }))
            .retentionInMb(retentionInMb.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxWebAppLogsHttpLogsFileSystemArgs].
 */
@PulumiTagMarker
public class LinuxWebAppLogsHttpLogsFileSystemArgsBuilder internal constructor() {
    private var retentionInDays: Output? = null

    private var retentionInMb: Output? = null

    /**
     * @param value The retention period in days. A value of `0` means no retention.
     */
    @JvmName("smbpohbwolchxmdd")
    public suspend fun retentionInDays(`value`: Output) {
        this.retentionInDays = value
    }

    /**
     * @param value The maximum size in megabytes that log files can use.
     */
    @JvmName("oiiurufgrmbmtaxh")
    public suspend fun retentionInMb(`value`: Output) {
        this.retentionInMb = value
    }

    /**
     * @param value The retention period in days. A value of `0` means no retention.
     */
    @JvmName("kycknkeeqysxeura")
    public suspend fun retentionInDays(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retentionInDays = mapped
    }

    /**
     * @param value The maximum size in megabytes that log files can use.
     */
    @JvmName("dkvkjjmykxmkjehj")
    public suspend fun retentionInMb(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retentionInMb = mapped
    }

    internal fun build(): LinuxWebAppLogsHttpLogsFileSystemArgs =
        LinuxWebAppLogsHttpLogsFileSystemArgs(
            retentionInDays = retentionInDays ?: throw PulumiNullFieldException("retentionInDays"),
            retentionInMb = retentionInMb ?: throw PulumiNullFieldException("retentionInMb"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy