![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.apimanagement.kotlin.inputs.AuthorizationProviderOAuth2SettingsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.apimanagement.kotlin.inputs
import com.pulumi.azurenative.apimanagement.inputs.AuthorizationProviderOAuth2SettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* OAuth2 settings details
* @property grantTypes OAuth2 settings
* @property redirectUrl Redirect URL to be set in the OAuth application.
*/
public data class AuthorizationProviderOAuth2SettingsArgs(
public val grantTypes: Output? = null,
public val redirectUrl: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.inputs.AuthorizationProviderOAuth2SettingsArgs =
com.pulumi.azurenative.apimanagement.inputs.AuthorizationProviderOAuth2SettingsArgs.builder()
.grantTypes(grantTypes?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.redirectUrl(redirectUrl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AuthorizationProviderOAuth2SettingsArgs].
*/
@PulumiTagMarker
public class AuthorizationProviderOAuth2SettingsArgsBuilder internal constructor() {
private var grantTypes: Output? = null
private var redirectUrl: Output? = null
/**
* @param value OAuth2 settings
*/
@JvmName("tonduqiudfuhedrp")
public suspend fun grantTypes(`value`: Output) {
this.grantTypes = value
}
/**
* @param value Redirect URL to be set in the OAuth application.
*/
@JvmName("dpsjpiimjpfoheop")
public suspend fun redirectUrl(`value`: Output) {
this.redirectUrl = value
}
/**
* @param value OAuth2 settings
*/
@JvmName("yagcrgyxitxlrihg")
public suspend fun grantTypes(`value`: AuthorizationProviderOAuth2GrantTypesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.grantTypes = mapped
}
/**
* @param argument OAuth2 settings
*/
@JvmName("alirkajwlagvakuu")
public suspend fun grantTypes(argument: suspend AuthorizationProviderOAuth2GrantTypesArgsBuilder.() -> Unit) {
val toBeMapped = AuthorizationProviderOAuth2GrantTypesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.grantTypes = mapped
}
/**
* @param value Redirect URL to be set in the OAuth application.
*/
@JvmName("tolwsarabgowewwu")
public suspend fun redirectUrl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.redirectUrl = mapped
}
internal fun build(): AuthorizationProviderOAuth2SettingsArgs =
AuthorizationProviderOAuth2SettingsArgs(
grantTypes = grantTypes,
redirectUrl = redirectUrl,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy