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

com.pulumi.alicloud.cdn.kotlin.DomainArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.cdn.kotlin

import com.pulumi.alicloud.cdn.DomainArgs.builder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainAuthConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainAuthConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainCacheConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainCacheConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainCertificateConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainCertificateConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainHttpHeaderConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainHttpHeaderConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainPage404ConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainPage404ConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainParameterFilterConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainParameterFilterConfigArgsBuilder
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainReferConfigArgs
import com.pulumi.alicloud.cdn.kotlin.inputs.DomainReferConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property authConfig
 * @property blockIps
 * @property cacheConfigs
 * @property cdnType
 * @property certificateConfig
 * @property domainName
 * @property httpHeaderConfigs
 * @property optimizeEnable
 * @property page404Config
 * @property pageCompressEnable
 * @property parameterFilterConfig
 * @property rangeEnable
 * @property referConfig
 * @property scope
 * @property sourcePort
 * @property sourceType
 * @property sources
 * @property videoSeekEnable
 */
public data class DomainArgs(
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val authConfig: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val blockIps: Output>? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val cacheConfigs: Output>? = null,
    public val cdnType: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val certificateConfig: Output? = null,
    public val domainName: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val httpHeaderConfigs: Output>? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val optimizeEnable: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val page404Config: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val pageCompressEnable: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val parameterFilterConfig: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val rangeEnable: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val referConfig: Output? = null,
    public val scope: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `port` argument instead.
  """,
    )
    public val sourcePort: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `type` argument instead.
  """,
    )
    public val sourceType: Output? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` argument instead.
  """,
    )
    public val sources: Output>? = null,
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    public val videoSeekEnable: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.cdn.DomainArgs =
        com.pulumi.alicloud.cdn.DomainArgs.builder()
            .authConfig(authConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .blockIps(blockIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .cacheConfigs(
                cacheConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .cdnType(cdnType?.applyValue({ args0 -> args0 }))
            .certificateConfig(certificateConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .httpHeaderConfigs(
                httpHeaderConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .optimizeEnable(optimizeEnable?.applyValue({ args0 -> args0 }))
            .page404Config(page404Config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .pageCompressEnable(pageCompressEnable?.applyValue({ args0 -> args0 }))
            .parameterFilterConfig(
                parameterFilterConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .rangeEnable(rangeEnable?.applyValue({ args0 -> args0 }))
            .referConfig(referConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scope(scope?.applyValue({ args0 -> args0 }))
            .sourcePort(sourcePort?.applyValue({ args0 -> args0 }))
            .sourceType(sourceType?.applyValue({ args0 -> args0 }))
            .sources(sources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .videoSeekEnable(videoSeekEnable?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DomainArgs].
 */
@PulumiTagMarker
public class DomainArgsBuilder internal constructor() {
    private var authConfig: Output? = null

    private var blockIps: Output>? = null

    private var cacheConfigs: Output>? = null

    private var cdnType: Output? = null

    private var certificateConfig: Output? = null

    private var domainName: Output? = null

    private var httpHeaderConfigs: Output>? = null

    private var optimizeEnable: Output? = null

    private var page404Config: Output? = null

    private var pageCompressEnable: Output? = null

    private var parameterFilterConfig: Output? = null

    private var rangeEnable: Output? = null

    private var referConfig: Output? = null

    private var scope: Output? = null

    private var sourcePort: Output? = null

    private var sourceType: Output? = null

    private var sources: Output>? = null

    private var videoSeekEnable: Output? = null

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("kipjxxwwwbednjuv")
    public suspend fun authConfig(`value`: Output) {
        this.authConfig = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("jmvtoehxpqjlaaap")
    public suspend fun blockIps(`value`: Output>) {
        this.blockIps = value
    }

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

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("gchdgqthyhcnceuh")
    public suspend fun blockIps(values: List>) {
        this.blockIps = Output.all(values)
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ovhkhbqqyxyxvnxj")
    public suspend fun cacheConfigs(`value`: Output>) {
        this.cacheConfigs = value
    }

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

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("bsymxqkmddokiejr")
    public suspend fun cacheConfigs(values: List>) {
        this.cacheConfigs = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("nrlfwwjsocqucnuf")
    public suspend fun cdnType(`value`: Output) {
        this.cdnType = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("mkxwonofijybhprv")
    public suspend fun certificateConfig(`value`: Output) {
        this.certificateConfig = value
    }

    /**
     * @param value
     */
    @JvmName("mtiwciosdakgxubk")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("nscggogodvqjglgq")
    public suspend fun httpHeaderConfigs(`value`: Output>) {
        this.httpHeaderConfigs = value
    }

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

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("emwsojgqkelswcoc")
    public suspend fun httpHeaderConfigs(values: List>) {
        this.httpHeaderConfigs = Output.all(values)
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ppuectqrirwbqwdk")
    public suspend fun optimizeEnable(`value`: Output) {
        this.optimizeEnable = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ajogsnkcixrmqlbj")
    public suspend fun page404Config(`value`: Output) {
        this.page404Config = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("vepfftevoakbaiwc")
    public suspend fun pageCompressEnable(`value`: Output) {
        this.pageCompressEnable = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("hbuksbrrcarxjtrm")
    public suspend fun parameterFilterConfig(`value`: Output) {
        this.parameterFilterConfig = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ysaprdchowbvqxdx")
    public suspend fun rangeEnable(`value`: Output) {
        this.rangeEnable = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("insupgexffurvtov")
    public suspend fun referConfig(`value`: Output) {
        this.referConfig = value
    }

    /**
     * @param value
     */
    @JvmName("pmtxlqnxyetesijx")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `port` argument instead.
  """,
    )
    @JvmName("xujkrashdehskqnx")
    public suspend fun sourcePort(`value`: Output) {
        this.sourcePort = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `type` argument instead.
  """,
    )
    @JvmName("hajtnvsumjbstfem")
    public suspend fun sourceType(`value`: Output) {
        this.sourceType = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` argument instead.
  """,
    )
    @JvmName("xrnilxmfvpfagilt")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` argument instead.
  """,
    )
    @JvmName("cnnqyxwvwcihwhos")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("pdudgnvidbvjppnf")
    public suspend fun videoSeekEnable(`value`: Output) {
        this.videoSeekEnable = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("qjwfuqnoupukwusi")
    public suspend fun authConfig(`value`: DomainAuthConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authConfig = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("wxltngtmorhgqmyv")
    public suspend fun authConfig(argument: suspend DomainAuthConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainAuthConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authConfig = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("stbtjysqtuvikrbi")
    public suspend fun blockIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blockIps = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ypnxcfkuyfmrisvy")
    public suspend fun blockIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blockIps = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ofbfjtnjucfedtdd")
    public suspend fun cacheConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("hvbgwihkslnsdyiu")
    public suspend fun cacheConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DomainCacheConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.cacheConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("meelosryafqvytpi")
    public suspend fun cacheConfigs(vararg argument: suspend DomainCacheConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DomainCacheConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.cacheConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("eintpvfdebrnxjdh")
    public suspend fun cacheConfigs(argument: suspend DomainCacheConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DomainCacheConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.cacheConfigs = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("fvdlxvgooplesrrl")
    public suspend fun cacheConfigs(vararg values: DomainCacheConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cacheConfigs = mapped
    }

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

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("hxoaqqxmrhhnsvcu")
    public suspend fun certificateConfig(`value`: DomainCertificateConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateConfig = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("sjcddathfbwecpcn")
    public suspend fun certificateConfig(argument: suspend DomainCertificateConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainCertificateConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.certificateConfig = mapped
    }

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

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("funxgrkniyfmuoll")
    public suspend fun httpHeaderConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpHeaderConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("lhtsrrfuxyyhqdch")
    public suspend fun httpHeaderConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DomainHttpHeaderConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaderConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("wlnhxiepjhbwjlgs")
    public suspend fun httpHeaderConfigs(vararg argument: suspend DomainHttpHeaderConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DomainHttpHeaderConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaderConfigs = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("uoftmmpnximcbcug")
    public suspend fun httpHeaderConfigs(argument: suspend DomainHttpHeaderConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DomainHttpHeaderConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.httpHeaderConfigs = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("jjjnwruefllaoaro")
    public suspend fun httpHeaderConfigs(vararg values: DomainHttpHeaderConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpHeaderConfigs = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("kfcvugiflgrcsive")
    public suspend fun optimizeEnable(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optimizeEnable = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("faravwbtlbgfrvsk")
    public suspend fun page404Config(`value`: DomainPage404ConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.page404Config = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("tfmojoifmosmdvqh")
    public suspend fun page404Config(argument: suspend DomainPage404ConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainPage404ConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.page404Config = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ovafugkteatoxmci")
    public suspend fun pageCompressEnable(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pageCompressEnable = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ybgvuaikpnkkhupk")
    public suspend fun parameterFilterConfig(`value`: DomainParameterFilterConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterFilterConfig = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("dsndskefposjwoxj")
    public suspend fun parameterFilterConfig(argument: suspend DomainParameterFilterConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainParameterFilterConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.parameterFilterConfig = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("rylnhmuuunnhsret")
    public suspend fun rangeEnable(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rangeEnable = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("ewlqcxlpiblgwmlg")
    public suspend fun referConfig(`value`: DomainReferConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referConfig = mapped
    }

    /**
     * @param argument
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("aapitrbyohpwaowp")
    public suspend fun referConfig(argument: suspend DomainReferConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DomainReferConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.referConfig = mapped
    }

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

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `port` argument instead.
  """,
    )
    @JvmName("vobjwuyctjhmwjne")
    public suspend fun sourcePort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourcePort = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` block `type` argument instead.
  """,
    )
    @JvmName("cxtrescurcqmfser")
    public suspend fun sourceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceType = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` argument instead.
  """,
    )
    @JvmName("scmnlxidftrvakdf")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param values
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainNew` configuration `sources` argument instead.
  """,
    )
    @JvmName("jtkqnrmqhprxnunh")
    public suspend fun sources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  Use `alicloud.cdn.DomainConfig` configuration `function_name` and `function_args` arguments
      instead.
  """,
    )
    @JvmName("qlefggquhwdetyad")
    public suspend fun videoSeekEnable(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.videoSeekEnable = mapped
    }

    internal fun build(): DomainArgs = DomainArgs(
        authConfig = authConfig,
        blockIps = blockIps,
        cacheConfigs = cacheConfigs,
        cdnType = cdnType,
        certificateConfig = certificateConfig,
        domainName = domainName,
        httpHeaderConfigs = httpHeaderConfigs,
        optimizeEnable = optimizeEnable,
        page404Config = page404Config,
        pageCompressEnable = pageCompressEnable,
        parameterFilterConfig = parameterFilterConfig,
        rangeEnable = rangeEnable,
        referConfig = referConfig,
        scope = scope,
        sourcePort = sourcePort,
        sourceType = sourceType,
        sources = sources,
        videoSeekEnable = videoSeekEnable,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy