com.pulumi.azure.apimanagement.kotlin.inputs.ServiceProtocolsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.apimanagement.kotlin.inputs
import com.pulumi.azure.apimanagement.inputs.ServiceProtocolsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enableHttp2 Should HTTP/2 be supported by the API Management Service? Defaults to `false`.
*/
public data class ServiceProtocolsArgs(
public val enableHttp2: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.inputs.ServiceProtocolsArgs =
com.pulumi.azure.apimanagement.inputs.ServiceProtocolsArgs.builder()
.enableHttp2(enableHttp2?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceProtocolsArgs].
*/
@PulumiTagMarker
public class ServiceProtocolsArgsBuilder internal constructor() {
private var enableHttp2: Output? = null
/**
* @param value Should HTTP/2 be supported by the API Management Service? Defaults to `false`.
*/
@JvmName("gdpwyskijrgrxmgo")
public suspend fun enableHttp2(`value`: Output) {
this.enableHttp2 = value
}
/**
* @param value Should HTTP/2 be supported by the API Management Service? Defaults to `false`.
*/
@JvmName("pnpwjxtqpsyqeeda")
public suspend fun enableHttp2(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableHttp2 = mapped
}
internal fun build(): ServiceProtocolsArgs = ServiceProtocolsArgs(
enableHttp2 = enableHttp2,
)
}