com.pulumi.azurenative.botservice.kotlin.outputs.SmsChannelResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.botservice.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Sms channel definition
* @property channelName The channel name
* Expected value is 'SmsChannel'.
* @property etag Entity Tag of the resource
* @property location Specifies the location of the resource.
* @property properties The set of properties specific to Sms channel resource
* @property provisioningState Provisioning state of the resource
*/
public data class SmsChannelResponse(
public val channelName: String,
public val etag: String? = null,
public val location: String? = null,
public val properties: SmsChannelPropertiesResponse? = null,
public val provisioningState: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.botservice.outputs.SmsChannelResponse): SmsChannelResponse = SmsChannelResponse(
channelName = javaType.channelName(),
etag = javaType.etag().map({ args0 -> args0 }).orElse(null),
location = javaType.location().map({ args0 -> args0 }).orElse(null),
properties = javaType.properties().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.botservice.kotlin.outputs.SmsChannelPropertiesResponse.Companion.toKotlin(args0)
})
}).orElse(null),
provisioningState = javaType.provisioningState(),
)
}
}