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

com.pulumi.azurenative.appplatform.kotlin.inputs.ContentCertificatePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.ContentCertificatePropertiesArgs.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

/**
 * Properties of certificate imported from key vault.
 * @property content The content of uploaded certificate.
 * @property type The type of the certificate source.
 * Expected value is 'ContentCertificate'.
 */
public data class ContentCertificatePropertiesArgs(
    public val content: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.ContentCertificatePropertiesArgs = com.pulumi.azurenative.appplatform.inputs.ContentCertificatePropertiesArgs.builder()
        .content(content?.applyValue({ args0 -> args0 }))
        .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContentCertificatePropertiesArgs].
 */
@PulumiTagMarker
public class ContentCertificatePropertiesArgsBuilder internal constructor() {
    private var content: Output? = null

    private var type: Output? = null

    /**
     * @param value The content of uploaded certificate.
     */
    @JvmName("vprtppwxlarqnyir")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The type of the certificate source.
     * Expected value is 'ContentCertificate'.
     */
    @JvmName("scaxtvxxxhaomcjr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The content of uploaded certificate.
     */
    @JvmName("ycbimluseadcgswc")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value The type of the certificate source.
     * Expected value is 'ContentCertificate'.
     */
    @JvmName("suuibrnjrpgmjvyi")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ContentCertificatePropertiesArgs = ContentCertificatePropertiesArgs(
        content = content,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy