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

com.pulumi.azurenative.eventgrid.kotlin.inputs.ClientCertificateSubjectDistinguishedNameArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.eventgrid.kotlin.inputs

import com.pulumi.azurenative.eventgrid.inputs.ClientCertificateSubjectDistinguishedNameArgs.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

/**
 * CA certificate subject distinguished name information used by service to authenticate clients.
 * For more information, see https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x500distinguishedname?view=net-6.0#remarks
 * @property commonName The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
 * @property countryCode The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
 * @property organization The organization field in the subject name. If present, the allowed limit is 64 characters.
 * @property organizationUnit The organization unit field in the subject name. If present, the allowed limit is 32 characters.
 */
public data class ClientCertificateSubjectDistinguishedNameArgs(
    public val commonName: Output? = null,
    public val countryCode: Output? = null,
    public val organization: Output? = null,
    public val organizationUnit: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.ClientCertificateSubjectDistinguishedNameArgs =
        com.pulumi.azurenative.eventgrid.inputs.ClientCertificateSubjectDistinguishedNameArgs.builder()
            .commonName(commonName?.applyValue({ args0 -> args0 }))
            .countryCode(countryCode?.applyValue({ args0 -> args0 }))
            .organization(organization?.applyValue({ args0 -> args0 }))
            .organizationUnit(organizationUnit?.applyValue({ args0 -> args0 })).build()
}

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

    private var countryCode: Output? = null

    private var organization: Output? = null

    private var organizationUnit: Output? = null

    /**
     * @param value The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
     */
    @JvmName("fqvyskynudqjrdmm")
    public suspend fun commonName(`value`: Output) {
        this.commonName = value
    }

    /**
     * @param value The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
     */
    @JvmName("khlcjwdidrdnsarl")
    public suspend fun countryCode(`value`: Output) {
        this.countryCode = value
    }

    /**
     * @param value The organization field in the subject name. If present, the allowed limit is 64 characters.
     */
    @JvmName("supirkycgqbnsjur")
    public suspend fun organization(`value`: Output) {
        this.organization = value
    }

    /**
     * @param value The organization unit field in the subject name. If present, the allowed limit is 32 characters.
     */
    @JvmName("xlgqfkumwhsbxlcg")
    public suspend fun organizationUnit(`value`: Output) {
        this.organizationUnit = value
    }

    /**
     * @param value The common name field in the subject name. The allowed limit is 64 characters and it should be specified.
     */
    @JvmName("ekcghwotsshmwwyf")
    public suspend fun commonName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commonName = mapped
    }

    /**
     * @param value The country code field in the subject name. If present, the country code should be represented by two-letter code defined in ISO 2166-1 (alpha-2). For example: 'US'.
     */
    @JvmName("htqabcnhesfchnui")
    public suspend fun countryCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.countryCode = mapped
    }

    /**
     * @param value The organization field in the subject name. If present, the allowed limit is 64 characters.
     */
    @JvmName("qesasafgjkpkknur")
    public suspend fun organization(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organization = mapped
    }

    /**
     * @param value The organization unit field in the subject name. If present, the allowed limit is 32 characters.
     */
    @JvmName("olnvtopcqqaeghmg")
    public suspend fun organizationUnit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationUnit = mapped
    }

    internal fun build(): ClientCertificateSubjectDistinguishedNameArgs =
        ClientCertificateSubjectDistinguishedNameArgs(
            commonName = commonName,
            countryCode = countryCode,
            organization = organization,
            organizationUnit = organizationUnit,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy