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

com.pulumi.digitalocean.kotlin.inputs.AppSpecFunctionLogDestinationPapertrailArgs.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.AppSpecFunctionLogDestinationPapertrailArgs.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 AppSpecFunctionLogDestinationPapertrailArgs(
    public val endpoint: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationPapertrailArgs = com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationPapertrailArgs.builder()
        .endpoint(endpoint.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecFunctionLogDestinationPapertrailArgs].
 */
@PulumiTagMarker
public class AppSpecFunctionLogDestinationPapertrailArgsBuilder internal constructor() {
    private var endpoint: Output? = null

    /**
     * @param value Papertrail syslog endpoint.
     */
    @JvmName("kobkkxgxygnchomh")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value Papertrail syslog endpoint.
     */
    @JvmName("hcmdfcuitpcdwokm")
    public suspend fun endpoint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    internal fun build(): AppSpecFunctionLogDestinationPapertrailArgs =
        AppSpecFunctionLogDestinationPapertrailArgs(
            endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy