All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.apigateway.v1.kotlin.inputs.ApigatewayApiConfigOpenApiDocumentArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.apigateway.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.apigateway.v1.inputs.ApigatewayApiConfigOpenApiDocumentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * An OpenAPI Specification Document describing an API.
 * @property document The OpenAPI Specification document file.
 */
public data class ApigatewayApiConfigOpenApiDocumentArgs(
    public val document: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.apigateway.v1.inputs.ApigatewayApiConfigOpenApiDocumentArgs =
        com.pulumi.googlenative.apigateway.v1.inputs.ApigatewayApiConfigOpenApiDocumentArgs.builder()
            .document(document?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ApigatewayApiConfigOpenApiDocumentArgs].
 */
@PulumiTagMarker
public class ApigatewayApiConfigOpenApiDocumentArgsBuilder internal constructor() {
    private var document: Output? = null

    /**
     * @param value The OpenAPI Specification document file.
     */
    @JvmName("shgbvubesxfnenqv")
    public suspend fun document(`value`: Output) {
        this.document = value
    }

    /**
     * @param value The OpenAPI Specification document file.
     */
    @JvmName("ykvemsrctpqogdhi")
    public suspend fun document(`value`: ApigatewayApiConfigFileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.document = mapped
    }

    /**
     * @param argument The OpenAPI Specification document file.
     */
    @JvmName("xtcwgppdlwflkojh")
    public suspend fun document(argument: suspend ApigatewayApiConfigFileArgsBuilder.() -> Unit) {
        val toBeMapped = ApigatewayApiConfigFileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.document = mapped
    }

    internal fun build(): ApigatewayApiConfigOpenApiDocumentArgs =
        ApigatewayApiConfigOpenApiDocumentArgs(
            document = document,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy