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

com.pulumi.azurenative.iotoperations.kotlin.inputs.SanForCertArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.SanForCertArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Subject Alternative Names (SANs) for certificate.
 * @property dns DNS SANs.
 * @property ip IP address SANs.
 */
public data class SanForCertArgs(
    public val dns: Output>,
    public val ip: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.SanForCertArgs =
        com.pulumi.azurenative.iotoperations.inputs.SanForCertArgs.builder()
            .dns(dns.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ip(ip.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SanForCertArgs].
 */
@PulumiTagMarker
public class SanForCertArgsBuilder internal constructor() {
    private var dns: Output>? = null

    private var ip: Output>? = null

    /**
     * @param value DNS SANs.
     */
    @JvmName("acqragxfyqgkmdkc")
    public suspend fun dns(`value`: Output>) {
        this.dns = value
    }

    @JvmName("rdxhsttwtvitkowu")
    public suspend fun dns(vararg values: Output) {
        this.dns = Output.all(values.asList())
    }

    /**
     * @param values DNS SANs.
     */
    @JvmName("eyocjxihlcojjmxn")
    public suspend fun dns(values: List>) {
        this.dns = Output.all(values)
    }

    /**
     * @param value IP address SANs.
     */
    @JvmName("ktmvrxmovwiuyotn")
    public suspend fun ip(`value`: Output>) {
        this.ip = value
    }

    @JvmName("wygldufsqdponfnr")
    public suspend fun ip(vararg values: Output) {
        this.ip = Output.all(values.asList())
    }

    /**
     * @param values IP address SANs.
     */
    @JvmName("djxnfwxkkmxlpfij")
    public suspend fun ip(values: List>) {
        this.ip = Output.all(values)
    }

    /**
     * @param value DNS SANs.
     */
    @JvmName("yliyuxbofkhcteji")
    public suspend fun dns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dns = mapped
    }

    /**
     * @param values DNS SANs.
     */
    @JvmName("fnnltqdhyhapyuxm")
    public suspend fun dns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dns = mapped
    }

    /**
     * @param value IP address SANs.
     */
    @JvmName("eiabduddghxdpbkj")
    public suspend fun ip(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ip = mapped
    }

    /**
     * @param values IP address SANs.
     */
    @JvmName("qsjhoskvxqerttlo")
    public suspend fun ip(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ip = mapped
    }

    internal fun build(): SanForCertArgs = SanForCertArgs(
        dns = dns ?: throw PulumiNullFieldException("dns"),
        ip = ip ?: throw PulumiNullFieldException("ip"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy