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

com.pulumi.azurenative.iotoperations.kotlin.outputs.TlsCertMethodResponse.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.iotoperations.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Collection of different TLS types, NOTE- Enum at a time only one of them needs to be supported
 * @property automatic Option 1 - Automatic TLS server certificate management with cert-manager.
 * @property manual Option 2 - Manual TLS server certificate management through a defined secret.
 * @property mode Mode of TLS server certificate management.
 */
public data class TlsCertMethodResponse(
    public val automatic: AutomaticCertMethodResponse? = null,
    public val manual: X509ManualCertificateResponse? = null,
    public val mode: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.iotoperations.outputs.TlsCertMethodResponse): TlsCertMethodResponse = TlsCertMethodResponse(
            automatic = javaType.automatic().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.iotoperations.kotlin.outputs.AutomaticCertMethodResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            manual = javaType.manual().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.iotoperations.kotlin.outputs.X509ManualCertificateResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            mode = javaType.mode(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy