
com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDataSourcesLogFileSettingsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesLogFileSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property text A `text` block as defined below.
*/
public data class DataCollectionRuleDataSourcesLogFileSettingsArgs(
public val text: Output,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesLogFileSettingsArgs =
com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesLogFileSettingsArgs.builder()
.text(text.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DataCollectionRuleDataSourcesLogFileSettingsArgs].
*/
@PulumiTagMarker
public class DataCollectionRuleDataSourcesLogFileSettingsArgsBuilder internal constructor() {
private var text: Output? = null
/**
* @param value A `text` block as defined below.
*/
@JvmName("xkiqvpxxnqhmuqkw")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value A `text` block as defined below.
*/
@JvmName("yaecsitjsfrwptqt")
public suspend fun text(`value`: DataCollectionRuleDataSourcesLogFileSettingsTextArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.text = mapped
}
/**
* @param argument A `text` block as defined below.
*/
@JvmName("lxqbrdfppuqobkxv")
public suspend
fun text(argument: suspend DataCollectionRuleDataSourcesLogFileSettingsTextArgsBuilder.() -> Unit) {
val toBeMapped = DataCollectionRuleDataSourcesLogFileSettingsTextArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.text = mapped
}
internal fun build(): DataCollectionRuleDataSourcesLogFileSettingsArgs =
DataCollectionRuleDataSourcesLogFileSettingsArgs(
text = text ?: throw PulumiNullFieldException("text"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy