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

com.pulumi.azurenative.notificationhubs.kotlin.inputs.AdmCredentialPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.notificationhubs.kotlin.inputs

import com.pulumi.azurenative.notificationhubs.inputs.AdmCredentialPropertiesArgs.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

/**
 * Description of a NotificationHub AdmCredential.
 * @property authTokenUrl Gets or sets the URL of the authorization token.
 * @property clientId Gets or sets the client identifier.
 * @property clientSecret Gets or sets the credential secret access key.
 */
public data class AdmCredentialPropertiesArgs(
    public val authTokenUrl: Output,
    public val clientId: Output,
    public val clientSecret: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.notificationhubs.inputs.AdmCredentialPropertiesArgs = com.pulumi.azurenative.notificationhubs.inputs.AdmCredentialPropertiesArgs.builder()
        .authTokenUrl(authTokenUrl.applyValue({ args0 -> args0 }))
        .clientId(clientId.applyValue({ args0 -> args0 }))
        .clientSecret(clientSecret.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AdmCredentialPropertiesArgs].
 */
@PulumiTagMarker
public class AdmCredentialPropertiesArgsBuilder internal constructor() {
    private var authTokenUrl: Output? = null

    private var clientId: Output? = null

    private var clientSecret: Output? = null

    /**
     * @param value Gets or sets the URL of the authorization token.
     */
    @JvmName("chnggfqmaujvacho")
    public suspend fun authTokenUrl(`value`: Output) {
        this.authTokenUrl = value
    }

    /**
     * @param value Gets or sets the client identifier.
     */
    @JvmName("pxpgbkxdwuomxhmu")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Gets or sets the credential secret access key.
     */
    @JvmName("jqdaaynwplnhsqrt")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value Gets or sets the URL of the authorization token.
     */
    @JvmName("hhbgehwgnyfnusoq")
    public suspend fun authTokenUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authTokenUrl = mapped
    }

    /**
     * @param value Gets or sets the client identifier.
     */
    @JvmName("lujcbymllmrvcjrs")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Gets or sets the credential secret access key.
     */
    @JvmName("gukjyakdgindcwpp")
    public suspend fun clientSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    internal fun build(): AdmCredentialPropertiesArgs = AdmCredentialPropertiesArgs(
        authTokenUrl = authTokenUrl ?: throw PulumiNullFieldException("authTokenUrl"),
        clientId = clientId ?: throw PulumiNullFieldException("clientId"),
        clientSecret = clientSecret ?: throw PulumiNullFieldException("clientSecret"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy