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

com.pulumi.gcp.storage.kotlin.inputs.BucketLoggingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.storage.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.BucketLoggingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property logBucket The bucket that will receive log objects.
 * @property logObjectPrefix The object prefix for log objects. If it's not provided,
 * by default GCS sets this to this bucket's name.
 */
public data class BucketLoggingArgs(
    public val logBucket: Output,
    public val logObjectPrefix: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.storage.inputs.BucketLoggingArgs =
        com.pulumi.gcp.storage.inputs.BucketLoggingArgs.builder()
            .logBucket(logBucket.applyValue({ args0 -> args0 }))
            .logObjectPrefix(logObjectPrefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketLoggingArgs].
 */
@PulumiTagMarker
public class BucketLoggingArgsBuilder internal constructor() {
    private var logBucket: Output? = null

    private var logObjectPrefix: Output? = null

    /**
     * @param value The bucket that will receive log objects.
     */
    @JvmName("xpohauuqsvuufqyq")
    public suspend fun logBucket(`value`: Output) {
        this.logBucket = value
    }

    /**
     * @param value The object prefix for log objects. If it's not provided,
     * by default GCS sets this to this bucket's name.
     */
    @JvmName("icobksuenbekeywk")
    public suspend fun logObjectPrefix(`value`: Output) {
        this.logObjectPrefix = value
    }

    /**
     * @param value The bucket that will receive log objects.
     */
    @JvmName("bycbnxudjaesvagb")
    public suspend fun logBucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logBucket = mapped
    }

    /**
     * @param value The object prefix for log objects. If it's not provided,
     * by default GCS sets this to this bucket's name.
     */
    @JvmName("osaomahqivsdgyfc")
    public suspend fun logObjectPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logObjectPrefix = mapped
    }

    internal fun build(): BucketLoggingArgs = BucketLoggingArgs(
        logBucket = logBucket ?: throw PulumiNullFieldException("logBucket"),
        logObjectPrefix = logObjectPrefix,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy