com.pulumi.digitalocean.kotlin.inputs.AppSpecWorkerLogDestinationPapertrailArgs.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.AppSpecWorkerLogDestinationPapertrailArgs.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 endpoint Papertrail syslog endpoint.
*/
public data class AppSpecWorkerLogDestinationPapertrailArgs(
public val endpoint: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationPapertrailArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationPapertrailArgs.builder()
.endpoint(endpoint.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecWorkerLogDestinationPapertrailArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerLogDestinationPapertrailArgsBuilder internal constructor() {
private var endpoint: Output? = null
/**
* @param value Papertrail syslog endpoint.
*/
@JvmName("xhtwwetcbnhmqrri")
public suspend fun endpoint(`value`: Output) {
this.endpoint = value
}
/**
* @param value Papertrail syslog endpoint.
*/
@JvmName("ymudoqalcsoimpbp")
public suspend fun endpoint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endpoint = mapped
}
internal fun build(): AppSpecWorkerLogDestinationPapertrailArgs =
AppSpecWorkerLogDestinationPapertrailArgs(
endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
)
}