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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs.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.WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs.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 retentionInDays The time in days after which to remove blobs. A value of `0` means no retention.
 * @property sasUrl SAS url to an Azure blob container with read/write/list/delete permissions.
 */
public data class WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs(
    public val retentionInDays: Output? = null,
    public val sasUrl: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs.builder()
            .retentionInDays(retentionInDays?.applyValue({ args0 -> args0 }))
            .sasUrl(sasUrl.applyValue({ args0 -> args0 })).build()
}

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

    private var sasUrl: Output? = null

    /**
     * @param value The time in days after which to remove blobs. A value of `0` means no retention.
     */
    @JvmName("xokwolljctepkdqp")
    public suspend fun retentionInDays(`value`: Output) {
        this.retentionInDays = value
    }

    /**
     * @param value SAS url to an Azure blob container with read/write/list/delete permissions.
     */
    @JvmName("eeloolhejpqrmbek")
    public suspend fun sasUrl(`value`: Output) {
        this.sasUrl = value
    }

    /**
     * @param value The time in days after which to remove blobs. A value of `0` means no retention.
     */
    @JvmName("qggpjphtebkrqkfk")
    public suspend fun retentionInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionInDays = mapped
    }

    /**
     * @param value SAS url to an Azure blob container with read/write/list/delete permissions.
     */
    @JvmName("hijwuqdvthsclrls")
    public suspend fun sasUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sasUrl = mapped
    }

    internal fun build(): WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs =
        WindowsWebAppSlotLogsHttpLogsAzureBlobStorageArgs(
            retentionInDays = retentionInDays,
            sasUrl = sasUrl ?: throw PulumiNullFieldException("sasUrl"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy