com.pulumi.azurenative.web.kotlin.inputs.ConnStringInfoArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.ConnStringInfoArgs.builder
import com.pulumi.azurenative.web.kotlin.enums.ConnectionStringType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Database connection string information.
* @property connectionString Connection string value.
* @property name Name of connection string.
* @property type Type of database.
*/
public data class ConnStringInfoArgs(
public val connectionString: Output? = null,
public val name: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.ConnStringInfoArgs =
com.pulumi.azurenative.web.inputs.ConnStringInfoArgs.builder()
.connectionString(connectionString?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnStringInfoArgs].
*/
@PulumiTagMarker
public class ConnStringInfoArgsBuilder internal constructor() {
private var connectionString: Output? = null
private var name: Output? = null
private var type: Output? = null
/**
* @param value Connection string value.
*/
@JvmName("metftihjqrleuofx")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value Name of connection string.
*/
@JvmName("nrqjlmvqlyggjncd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Type of database.
*/
@JvmName("ickvswmxmqcphqjp")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Connection string value.
*/
@JvmName("xxspyfywcivroxir")
public suspend fun connectionString(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectionString = mapped
}
/**
* @param value Name of connection string.
*/
@JvmName("vuxxpgxscxjjecxw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Type of database.
*/
@JvmName("rytylslermpdraeq")
public suspend fun type(`value`: ConnectionStringType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ConnStringInfoArgs = ConnStringInfoArgs(
connectionString = connectionString,
name = name,
type = type,
)
}