
com.pulumi.azurenative.appplatform.kotlin.inputs.ConfigServerPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appplatform.kotlin.inputs
import com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs.builder
import com.pulumi.azurenative.appplatform.kotlin.enums.ConfigServerEnabledState
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Config server git properties payload
* @property configServer Settings of config server.
* @property enabledState Enabled state of the config server. This is only used in Consumption tier.
* @property error Error when apply config server settings.
*/
public data class ConfigServerPropertiesArgs(
public val configServer: Output? = null,
public val enabledState: Output>? = null,
public val error: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs =
com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs.builder()
.configServer(configServer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enabledState(
enabledState?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.error(error?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConfigServerPropertiesArgs].
*/
@PulumiTagMarker
public class ConfigServerPropertiesArgsBuilder internal constructor() {
private var configServer: Output? = null
private var enabledState: Output>? = null
private var error: Output? = null
/**
* @param value Settings of config server.
*/
@JvmName("gwskqdqicdvpvyna")
public suspend fun configServer(`value`: Output) {
this.configServer = value
}
/**
* @param value Enabled state of the config server. This is only used in Consumption tier.
*/
@JvmName("mjemupxbchcupbhk")
public suspend fun enabledState(`value`: Output>) {
this.enabledState = value
}
/**
* @param value Error when apply config server settings.
*/
@JvmName("riirhkfoanmpkccl")
public suspend fun error(`value`: Output) {
this.error = value
}
/**
* @param value Settings of config server.
*/
@JvmName("xbtdjufdvnjwxsej")
public suspend fun configServer(`value`: ConfigServerSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configServer = mapped
}
/**
* @param argument Settings of config server.
*/
@JvmName("wefkaisokcegvmco")
public suspend fun configServer(argument: suspend ConfigServerSettingsArgsBuilder.() -> Unit) {
val toBeMapped = ConfigServerSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.configServer = mapped
}
/**
* @param value Enabled state of the config server. This is only used in Consumption tier.
*/
@JvmName("rqjurcjpvpfthowq")
public suspend fun enabledState(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabledState = mapped
}
/**
* @param value Enabled state of the config server. This is only used in Consumption tier.
*/
@JvmName("nfxoyfxuygffrwys")
public fun enabledState(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabledState = mapped
}
/**
* @param value Enabled state of the config server. This is only used in Consumption tier.
*/
@JvmName("cfphfwbqgwwdsiyt")
public fun enabledState(`value`: ConfigServerEnabledState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabledState = mapped
}
/**
* @param value Error when apply config server settings.
*/
@JvmName("yschkpkrmtclqtxf")
public suspend fun error(`value`: ErrorArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.error = mapped
}
/**
* @param argument Error when apply config server settings.
*/
@JvmName("bsnbjdwuitqnmkrw")
public suspend fun error(argument: suspend ErrorArgsBuilder.() -> Unit) {
val toBeMapped = ErrorArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.error = mapped
}
internal fun build(): ConfigServerPropertiesArgs = ConfigServerPropertiesArgs(
configServer = configServer,
enabledState = enabledState,
error = error,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy