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

com.pulumi.azurenative.redhatopenshift.kotlin.inputs.ServicePrincipalProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.redhatopenshift.kotlin.inputs

import com.pulumi.azurenative.redhatopenshift.inputs.ServicePrincipalProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * ServicePrincipalProfile represents a service principal profile.
 * @property clientId The client ID used for the cluster.
 * @property clientSecret The client secret used for the cluster.
 */
public data class ServicePrincipalProfileArgs(
    public val clientId: Output? = null,
    public val clientSecret: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.redhatopenshift.inputs.ServicePrincipalProfileArgs =
        com.pulumi.azurenative.redhatopenshift.inputs.ServicePrincipalProfileArgs.builder()
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .clientSecret(clientSecret?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServicePrincipalProfileArgs].
 */
@PulumiTagMarker
public class ServicePrincipalProfileArgsBuilder internal constructor() {
    private var clientId: Output? = null

    private var clientSecret: Output? = null

    /**
     * @param value The client ID used for the cluster.
     */
    @JvmName("qsvblioxbkqjreel")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The client secret used for the cluster.
     */
    @JvmName("cqsjvdmbqwkqtucc")
    public suspend fun clientSecret(`value`: Output) {
        this.clientSecret = value
    }

    /**
     * @param value The client ID used for the cluster.
     */
    @JvmName("eldvgmabbghmxmal")
    public suspend fun clientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The client secret used for the cluster.
     */
    @JvmName("jntqbbjlxkadvrqa")
    public suspend fun clientSecret(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientSecret = mapped
    }

    internal fun build(): ServicePrincipalProfileArgs = ServicePrincipalProfileArgs(
        clientId = clientId,
        clientSecret = clientSecret,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy