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

com.pulumi.azure.storage.kotlin.inputs.AccountQueuePropertiesLoggingArgs.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.storage.kotlin.inputs

import com.pulumi.azure.storage.inputs.AccountQueuePropertiesLoggingArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property delete Indicates whether all delete requests should be logged.
 * @property read Indicates whether all read requests should be logged.
 * @property retentionPolicyDays Specifies the number of days that logs will be retained.
 * @property version The version of storage analytics to configure.
 * @property write Indicates whether all write requests should be logged.
 */
public data class AccountQueuePropertiesLoggingArgs(
    public val delete: Output,
    public val read: Output,
    public val retentionPolicyDays: Output? = null,
    public val version: Output,
    public val write: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.storage.inputs.AccountQueuePropertiesLoggingArgs =
        com.pulumi.azure.storage.inputs.AccountQueuePropertiesLoggingArgs.builder()
            .delete(delete.applyValue({ args0 -> args0 }))
            .read(read.applyValue({ args0 -> args0 }))
            .retentionPolicyDays(retentionPolicyDays?.applyValue({ args0 -> args0 }))
            .version(version.applyValue({ args0 -> args0 }))
            .write(write.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccountQueuePropertiesLoggingArgs].
 */
@PulumiTagMarker
public class AccountQueuePropertiesLoggingArgsBuilder internal constructor() {
    private var delete: Output? = null

    private var read: Output? = null

    private var retentionPolicyDays: Output? = null

    private var version: Output? = null

    private var write: Output? = null

    /**
     * @param value Indicates whether all delete requests should be logged.
     */
    @JvmName("rlhvslxlwqfwcmkq")
    public suspend fun delete(`value`: Output) {
        this.delete = value
    }

    /**
     * @param value Indicates whether all read requests should be logged.
     */
    @JvmName("yrtykplycpcuebfy")
    public suspend fun read(`value`: Output) {
        this.read = value
    }

    /**
     * @param value Specifies the number of days that logs will be retained.
     */
    @JvmName("qfaxlbwlgwxipnsb")
    public suspend fun retentionPolicyDays(`value`: Output) {
        this.retentionPolicyDays = value
    }

    /**
     * @param value The version of storage analytics to configure.
     */
    @JvmName("prrhkfbtbrjwobwc")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Indicates whether all write requests should be logged.
     */
    @JvmName("fantyesrrngpfitv")
    public suspend fun write(`value`: Output) {
        this.write = value
    }

    /**
     * @param value Indicates whether all delete requests should be logged.
     */
    @JvmName("jwvavrwaanncugck")
    public suspend fun delete(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.delete = mapped
    }

    /**
     * @param value Indicates whether all read requests should be logged.
     */
    @JvmName("hvkqxgaqvcgyytju")
    public suspend fun read(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.read = mapped
    }

    /**
     * @param value Specifies the number of days that logs will be retained.
     */
    @JvmName("fpqtbjqsrhvpxmww")
    public suspend fun retentionPolicyDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPolicyDays = mapped
    }

    /**
     * @param value The version of storage analytics to configure.
     */
    @JvmName("haxrxualpiagmkhd")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    /**
     * @param value Indicates whether all write requests should be logged.
     */
    @JvmName("oqwkblmfumbwqspf")
    public suspend fun write(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.write = mapped
    }

    internal fun build(): AccountQueuePropertiesLoggingArgs = AccountQueuePropertiesLoggingArgs(
        delete = delete ?: throw PulumiNullFieldException("delete"),
        read = read ?: throw PulumiNullFieldException("read"),
        retentionPolicyDays = retentionPolicyDays,
        version = version ?: throw PulumiNullFieldException("version"),
        write = write ?: throw PulumiNullFieldException("write"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy