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

com.pulumi.azurenative.servicefabric.kotlin.inputs.ClientCertificateArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.servicefabric.kotlin.inputs

import com.pulumi.azurenative.servicefabric.inputs.ClientCertificateArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Client certificate definition.
 * @property commonName Certificate common name.
 * @property isAdmin Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.
 * @property issuerThumbprint Issuer thumbprint for the certificate. Only used together with CommonName.
 * @property thumbprint Certificate thumbprint.
 */
public data class ClientCertificateArgs(
    public val commonName: Output? = null,
    public val isAdmin: Output,
    public val issuerThumbprint: Output? = null,
    public val thumbprint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabric.inputs.ClientCertificateArgs =
        com.pulumi.azurenative.servicefabric.inputs.ClientCertificateArgs.builder()
            .commonName(commonName?.applyValue({ args0 -> args0 }))
            .isAdmin(isAdmin.applyValue({ args0 -> args0 }))
            .issuerThumbprint(issuerThumbprint?.applyValue({ args0 -> args0 }))
            .thumbprint(thumbprint?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClientCertificateArgs].
 */
@PulumiTagMarker
public class ClientCertificateArgsBuilder internal constructor() {
    private var commonName: Output? = null

    private var isAdmin: Output? = null

    private var issuerThumbprint: Output? = null

    private var thumbprint: Output? = null

    /**
     * @param value Certificate common name.
     */
    @JvmName("clqulmphwqeqiyiv")
    public suspend fun commonName(`value`: Output) {
        this.commonName = value
    }

    /**
     * @param value Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.
     */
    @JvmName("ydrraqcgxmokeyrg")
    public suspend fun isAdmin(`value`: Output) {
        this.isAdmin = value
    }

    /**
     * @param value Issuer thumbprint for the certificate. Only used together with CommonName.
     */
    @JvmName("shuhpephlpxupqnp")
    public suspend fun issuerThumbprint(`value`: Output) {
        this.issuerThumbprint = value
    }

    /**
     * @param value Certificate thumbprint.
     */
    @JvmName("krdjsywgjpxxabwx")
    public suspend fun thumbprint(`value`: Output) {
        this.thumbprint = value
    }

    /**
     * @param value Certificate common name.
     */
    @JvmName("vvrcsnowqlvgopyn")
    public suspend fun commonName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commonName = mapped
    }

    /**
     * @param value Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.
     */
    @JvmName("lkxlwpemrtqocefr")
    public suspend fun isAdmin(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.isAdmin = mapped
    }

    /**
     * @param value Issuer thumbprint for the certificate. Only used together with CommonName.
     */
    @JvmName("apauftnuafxblfct")
    public suspend fun issuerThumbprint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuerThumbprint = mapped
    }

    /**
     * @param value Certificate thumbprint.
     */
    @JvmName("auvjctawyqplovwc")
    public suspend fun thumbprint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thumbprint = mapped
    }

    internal fun build(): ClientCertificateArgs = ClientCertificateArgs(
        commonName = commonName,
        isAdmin = isAdmin ?: throw PulumiNullFieldException("isAdmin"),
        issuerThumbprint = issuerThumbprint,
        thumbprint = thumbprint,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy