com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerLogDestinationArgs.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.AppSpecWorkerLogDestinationArgs.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 AppSpecWorkerLogDestinationArgs(
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.AppSpecWorkerLogDestinationArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationArgs.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 [AppSpecWorkerLogDestinationArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerLogDestinationArgsBuilder 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("upknnoosncqfahqf")
public suspend fun datadog(`value`: Output) {
this.datadog = value
}
/**
* @param value Logtail configuration.
*/
@JvmName("wersvbfbyqxwknoj")
public suspend fun logtail(`value`: Output) {
this.logtail = value
}
/**
* @param value Name of the log destination. Minimum length: 2. Maximum length: 42.
*/
@JvmName("oegknxladnllcnxg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Papertrail configuration.
*/
@JvmName("wxtaxawxpvwnwtda")
public suspend fun papertrail(`value`: Output) {
this.papertrail = value
}
/**
* @param value Datadog configuration.
*/
@JvmName("bcxgmjgfhtgvyaxe")
public suspend fun datadog(`value`: AppSpecWorkerLogDestinationDatadogArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.datadog = mapped
}
/**
* @param argument Datadog configuration.
*/
@JvmName("mqbtlkwfdyqkktqw")
public suspend fun datadog(argument: suspend AppSpecWorkerLogDestinationDatadogArgsBuilder.() -> Unit) {
val toBeMapped = AppSpecWorkerLogDestinationDatadogArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.datadog = mapped
}
/**
* @param value Logtail configuration.
*/
@JvmName("tunixhjttdddhjgj")
public suspend fun logtail(`value`: AppSpecWorkerLogDestinationLogtailArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logtail = mapped
}
/**
* @param argument Logtail configuration.
*/
@JvmName("efqvpnlinyooxpxy")
public suspend fun logtail(argument: suspend AppSpecWorkerLogDestinationLogtailArgsBuilder.() -> Unit) {
val toBeMapped = AppSpecWorkerLogDestinationLogtailArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.logtail = mapped
}
/**
* @param value Name of the log destination. Minimum length: 2. Maximum length: 42.
*/
@JvmName("ycngisvkvhbshwhx")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Papertrail configuration.
*/
@JvmName("kmdvispocmfcqkag")
public suspend fun papertrail(`value`: AppSpecWorkerLogDestinationPapertrailArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.papertrail = mapped
}
/**
* @param argument Papertrail configuration.
*/
@JvmName("huhyvbnsiwxynkem")
public suspend fun papertrail(argument: suspend AppSpecWorkerLogDestinationPapertrailArgsBuilder.() -> Unit) {
val toBeMapped = AppSpecWorkerLogDestinationPapertrailArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.papertrail = mapped
}
internal fun build(): AppSpecWorkerLogDestinationArgs = AppSpecWorkerLogDestinationArgs(
datadog = datadog,
logtail = logtail,
name = name ?: throw PulumiNullFieldException("name"),
papertrail = papertrail,
)
}