![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.apimanagement.kotlin.inputs.ApiOauth2AuthorizationArgs.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.ApiOauth2AuthorizationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property authorizationServerName OAuth authorization server identifier. The name of an OAuth2 Authorization Server.
* @property scope Operations scope.
*/
public data class ApiOauth2AuthorizationArgs(
public val authorizationServerName: Output,
public val scope: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.inputs.ApiOauth2AuthorizationArgs =
com.pulumi.azure.apimanagement.inputs.ApiOauth2AuthorizationArgs.builder()
.authorizationServerName(authorizationServerName.applyValue({ args0 -> args0 }))
.scope(scope?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApiOauth2AuthorizationArgs].
*/
@PulumiTagMarker
public class ApiOauth2AuthorizationArgsBuilder internal constructor() {
private var authorizationServerName: Output? = null
private var scope: Output? = null
/**
* @param value OAuth authorization server identifier. The name of an OAuth2 Authorization Server.
*/
@JvmName("omfumhfaqwinjqoa")
public suspend fun authorizationServerName(`value`: Output) {
this.authorizationServerName = value
}
/**
* @param value Operations scope.
*/
@JvmName("hqjmcpthonqjabhg")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value OAuth authorization server identifier. The name of an OAuth2 Authorization Server.
*/
@JvmName("xqevqeoekuoyhrdx")
public suspend fun authorizationServerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authorizationServerName = mapped
}
/**
* @param value Operations scope.
*/
@JvmName("ssaxrrshdtlcyieb")
public suspend fun scope(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scope = mapped
}
internal fun build(): ApiOauth2AuthorizationArgs = ApiOauth2AuthorizationArgs(
authorizationServerName = authorizationServerName ?: throw
PulumiNullFieldException("authorizationServerName"),
scope = scope,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy