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

com.pulumi.azurenative.storage.kotlin.inputs.CustomDomainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.storage.kotlin.inputs

import com.pulumi.azurenative.storage.inputs.CustomDomainArgs.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

/**
 * The custom domain assigned to this storage account. This can be set via Update.
 * @property name Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
 * @property useSubDomainName Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
 */
public data class CustomDomainArgs(
    public val name: Output,
    public val useSubDomainName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storage.inputs.CustomDomainArgs =
        com.pulumi.azurenative.storage.inputs.CustomDomainArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .useSubDomainName(useSubDomainName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CustomDomainArgs].
 */
@PulumiTagMarker
public class CustomDomainArgsBuilder internal constructor() {
    private var name: Output? = null

    private var useSubDomainName: Output? = null

    /**
     * @param value Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
     */
    @JvmName("ryishqwgxotlcjdj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
     */
    @JvmName("tsrlcnjltnwisema")
    public suspend fun useSubDomainName(`value`: Output) {
        this.useSubDomainName = value
    }

    /**
     * @param value Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
     */
    @JvmName("vejunjxqaxrgxrwn")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
     */
    @JvmName("mmfywfvcnbdxdmba")
    public suspend fun useSubDomainName(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useSubDomainName = mapped
    }

    internal fun build(): CustomDomainArgs = CustomDomainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        useSubDomainName = useSubDomainName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy