
com.pulumi.azure.apimanagement.kotlin.inputs.ApiImportArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.apimanagement.kotlin.inputs
import com.pulumi.azure.apimanagement.inputs.ApiImportArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property contentFormat The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.
* @property contentValue The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.
* @property wsdlSelector A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.
*/
public data class ApiImportArgs(
public val contentFormat: Output,
public val contentValue: Output,
public val wsdlSelector: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.inputs.ApiImportArgs =
com.pulumi.azure.apimanagement.inputs.ApiImportArgs.builder()
.contentFormat(contentFormat.applyValue({ args0 -> args0 }))
.contentValue(contentValue.applyValue({ args0 -> args0 }))
.wsdlSelector(wsdlSelector?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApiImportArgs].
*/
@PulumiTagMarker
public class ApiImportArgsBuilder internal constructor() {
private var contentFormat: Output? = null
private var contentValue: Output? = null
private var wsdlSelector: Output? = null
/**
* @param value The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.
*/
@JvmName("mirfkgmdusnohlmy")
public suspend fun contentFormat(`value`: Output) {
this.contentFormat = value
}
/**
* @param value The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.
*/
@JvmName("mnoieccnuqujcojk")
public suspend fun contentValue(`value`: Output) {
this.contentValue = value
}
/**
* @param value A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.
*/
@JvmName("xrafcicwckpulmtr")
public suspend fun wsdlSelector(`value`: Output) {
this.wsdlSelector = value
}
/**
* @param value The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.
*/
@JvmName("atokrhlawlsqogwn")
public suspend fun contentFormat(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.contentFormat = mapped
}
/**
* @param value The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.
*/
@JvmName("pnqaegkhjqgqneec")
public suspend fun contentValue(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.contentValue = mapped
}
/**
* @param value A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.
*/
@JvmName("pgoauejrxhpfknxk")
public suspend fun wsdlSelector(`value`: ApiImportWsdlSelectorArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.wsdlSelector = mapped
}
/**
* @param argument A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.
*/
@JvmName("bttumsvhmxbpycnm")
public suspend fun wsdlSelector(argument: suspend ApiImportWsdlSelectorArgsBuilder.() -> Unit) {
val toBeMapped = ApiImportWsdlSelectorArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.wsdlSelector = mapped
}
internal fun build(): ApiImportArgs = ApiImportArgs(
contentFormat = contentFormat ?: throw PulumiNullFieldException("contentFormat"),
contentValue = contentValue ?: throw PulumiNullFieldException("contentValue"),
wsdlSelector = wsdlSelector,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy