com.pulumi.gcp.apigateway.kotlin.inputs.ApiConfigOpenapiDocumentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.apigateway.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apigateway.inputs.ApiConfigOpenapiDocumentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property document The OpenAPI Specification document file.
* Structure is documented below.
*/
public data class ApiConfigOpenapiDocumentArgs(
public val document: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.apigateway.inputs.ApiConfigOpenapiDocumentArgs =
com.pulumi.gcp.apigateway.inputs.ApiConfigOpenapiDocumentArgs.builder()
.document(document.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApiConfigOpenapiDocumentArgs].
*/
@PulumiTagMarker
public class ApiConfigOpenapiDocumentArgsBuilder internal constructor() {
private var document: Output? = null
/**
* @param value The OpenAPI Specification document file.
* Structure is documented below.
*/
@JvmName("srfklmwugohbhtrq")
public suspend fun document(`value`: Output) {
this.document = value
}
/**
* @param value The OpenAPI Specification document file.
* Structure is documented below.
*/
@JvmName("xdednmlodjjfnltg")
public suspend fun document(`value`: ApiConfigOpenapiDocumentDocumentArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.document = mapped
}
/**
* @param argument The OpenAPI Specification document file.
* Structure is documented below.
*/
@JvmName("nyoxfcwqtrdcegun")
public suspend fun document(argument: suspend ApiConfigOpenapiDocumentDocumentArgsBuilder.() -> Unit) {
val toBeMapped = ApiConfigOpenapiDocumentDocumentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.document = mapped
}
internal fun build(): ApiConfigOpenapiDocumentArgs = ApiConfigOpenapiDocumentArgs(
document = document ?: throw PulumiNullFieldException("document"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy