com.pulumi.azurenative.app.kotlin.inputs.AzureStaticWebAppsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.AzureStaticWebAppsArgs.builder
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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The configuration settings of the Azure Static Web Apps provider.
* @property enabled false
if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true
.
* @property registration The configuration settings of the Azure Static Web Apps registration.
*/
public data class AzureStaticWebAppsArgs(
public val enabled: Output? = null,
public val registration: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.AzureStaticWebAppsArgs =
com.pulumi.azurenative.app.inputs.AzureStaticWebAppsArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.registration(registration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AzureStaticWebAppsArgs].
*/
@PulumiTagMarker
public class AzureStaticWebAppsArgsBuilder internal constructor() {
private var enabled: Output? = null
private var registration: Output? = null
/**
* @param value false
if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("pmdxtnjuhhgvhptu")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The configuration settings of the Azure Static Web Apps registration.
*/
@JvmName("snifhpqxcmgrnelj")
public suspend fun registration(`value`: Output) {
this.registration = value
}
/**
* @param value false
if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true
.
*/
@JvmName("ercqtbipmxgxrwem")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The configuration settings of the Azure Static Web Apps registration.
*/
@JvmName("ablstaqcyqvdjdpj")
public suspend fun registration(`value`: AzureStaticWebAppsRegistrationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registration = mapped
}
/**
* @param argument The configuration settings of the Azure Static Web Apps registration.
*/
@JvmName("wylrhklhmtghyill")
public suspend fun registration(argument: suspend AzureStaticWebAppsRegistrationArgsBuilder.() -> Unit) {
val toBeMapped = AzureStaticWebAppsRegistrationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.registration = mapped
}
internal fun build(): AzureStaticWebAppsArgs = AzureStaticWebAppsArgs(
enabled = enabled,
registration = registration,
)
}