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

com.pulumi.digitalocean.kotlin.inputs.AppSpecJobLogDestinationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property datadog Datadog configuration.
 * @property logtail Logtail configuration.
 * @property name Name of the log destination. Minimum length: 2. Maximum length: 42.
 * @property papertrail Papertrail configuration.
 */
public data class AppSpecJobLogDestinationArgs(
    public val datadog: Output? = null,
    public val logtail: Output? = null,
    public val name: Output,
    public val papertrail: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationArgs =
        com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationArgs.builder()
            .datadog(datadog?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .logtail(logtail?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .papertrail(papertrail?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AppSpecJobLogDestinationArgs].
 */
@PulumiTagMarker
public class AppSpecJobLogDestinationArgsBuilder internal constructor() {
    private var datadog: Output? = null

    private var logtail: Output? = null

    private var name: Output? = null

    private var papertrail: Output? = null

    /**
     * @param value Datadog configuration.
     */
    @JvmName("sjmitlrosrrmhpko")
    public suspend fun datadog(`value`: Output) {
        this.datadog = value
    }

    /**
     * @param value Logtail configuration.
     */
    @JvmName("jifyvqffthykllun")
    public suspend fun logtail(`value`: Output) {
        this.logtail = value
    }

    /**
     * @param value Name of the log destination. Minimum length: 2. Maximum length: 42.
     */
    @JvmName("ckoymkkgtwxmjerm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Papertrail configuration.
     */
    @JvmName("vvqirppcxawxtxli")
    public suspend fun papertrail(`value`: Output) {
        this.papertrail = value
    }

    /**
     * @param value Datadog configuration.
     */
    @JvmName("bdfskwbejjkhtvkt")
    public suspend fun datadog(`value`: AppSpecJobLogDestinationDatadogArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datadog = mapped
    }

    /**
     * @param argument Datadog configuration.
     */
    @JvmName("thrmcmmlsuwibnur")
    public suspend fun datadog(argument: suspend AppSpecJobLogDestinationDatadogArgsBuilder.() -> Unit) {
        val toBeMapped = AppSpecJobLogDestinationDatadogArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.datadog = mapped
    }

    /**
     * @param value Logtail configuration.
     */
    @JvmName("rcpmswfvgqtwvjmp")
    public suspend fun logtail(`value`: AppSpecJobLogDestinationLogtailArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logtail = mapped
    }

    /**
     * @param argument Logtail configuration.
     */
    @JvmName("fbnlbspixiwhnkcy")
    public suspend fun logtail(argument: suspend AppSpecJobLogDestinationLogtailArgsBuilder.() -> Unit) {
        val toBeMapped = AppSpecJobLogDestinationLogtailArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logtail = mapped
    }

    /**
     * @param value Name of the log destination. Minimum length: 2. Maximum length: 42.
     */
    @JvmName("kiekjvjpsysyjbgh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Papertrail configuration.
     */
    @JvmName("mtsrhqqigirvtqxp")
    public suspend fun papertrail(`value`: AppSpecJobLogDestinationPapertrailArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.papertrail = mapped
    }

    /**
     * @param argument Papertrail configuration.
     */
    @JvmName("pwiiawwraooklpqn")
    public suspend fun papertrail(argument: suspend AppSpecJobLogDestinationPapertrailArgsBuilder.() -> Unit) {
        val toBeMapped = AppSpecJobLogDestinationPapertrailArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.papertrail = mapped
    }

    internal fun build(): AppSpecJobLogDestinationArgs = AppSpecJobLogDestinationArgs(
        datadog = datadog,
        logtail = logtail,
        name = name ?: throw PulumiNullFieldException("name"),
        papertrail = papertrail,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy