com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceLogDestination.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @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 AppSpecServiceLogDestination(
public val datadog: AppSpecServiceLogDestinationDatadog? = null,
public val logtail: AppSpecServiceLogDestinationLogtail? = null,
public val name: String,
public val papertrail: AppSpecServiceLogDestinationPapertrail? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecServiceLogDestination): AppSpecServiceLogDestination = AppSpecServiceLogDestination(
datadog = javaType.datadog().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceLogDestinationDatadog.Companion.toKotlin(args0)
})
}).orElse(null),
logtail = javaType.logtail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceLogDestinationLogtail.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
papertrail = javaType.papertrail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceLogDestinationPapertrail.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}