
com.pulumi.azurenative.botservice.kotlin.inputs.FacebookChannelArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.botservice.kotlin.inputs
import com.pulumi.azurenative.botservice.inputs.FacebookChannelArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Facebook channel definition
* @property channelName The channel name
* Expected value is 'FacebookChannel'.
* @property etag Entity Tag of the resource
* @property location Specifies the location of the resource.
* @property properties The set of properties specific to bot facebook channel
*/
public data class FacebookChannelArgs(
public val channelName: Output,
public val etag: Output? = null,
public val location: Output? = null,
public val properties: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.botservice.inputs.FacebookChannelArgs =
com.pulumi.azurenative.botservice.inputs.FacebookChannelArgs.builder()
.channelName(channelName.applyValue({ args0 -> args0 }))
.etag(etag?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [FacebookChannelArgs].
*/
@PulumiTagMarker
public class FacebookChannelArgsBuilder internal constructor() {
private var channelName: Output? = null
private var etag: Output? = null
private var location: Output? = null
private var properties: Output? = null
/**
* @param value The channel name
* Expected value is 'FacebookChannel'.
*/
@JvmName("ghwkwqbvkikyregr")
public suspend fun channelName(`value`: Output) {
this.channelName = value
}
/**
* @param value Entity Tag of the resource
*/
@JvmName("vxgrvxxxmytqkrdo")
public suspend fun etag(`value`: Output) {
this.etag = value
}
/**
* @param value Specifies the location of the resource.
*/
@JvmName("exaobymbixhlbevb")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The set of properties specific to bot facebook channel
*/
@JvmName("igsowbtocmxbdtwf")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The channel name
* Expected value is 'FacebookChannel'.
*/
@JvmName("ysgiodciwdalofov")
public suspend fun channelName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.channelName = mapped
}
/**
* @param value Entity Tag of the resource
*/
@JvmName("nsisuweqsuxyyhkh")
public suspend fun etag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.etag = mapped
}
/**
* @param value Specifies the location of the resource.
*/
@JvmName("cyfexeohulmiwweb")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The set of properties specific to bot facebook channel
*/
@JvmName("vmcqakgabpiwgdmi")
public suspend fun properties(`value`: FacebookChannelPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument The set of properties specific to bot facebook channel
*/
@JvmName("mtamnryfginluqgq")
public suspend fun properties(argument: suspend FacebookChannelPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = FacebookChannelPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
internal fun build(): FacebookChannelArgs = FacebookChannelArgs(
channelName = channelName ?: throw PulumiNullFieldException("channelName"),
etag = etag,
location = location,
properties = properties,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy