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

com.pulumi.azure.trafficmanager.kotlin.inputs.ProfileDnsConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.trafficmanager.kotlin.inputs

import com.pulumi.azure.trafficmanager.inputs.ProfileDnsConfigArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property relativeName The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
 * @property ttl The TTL value of the Profile used by Local DNS resolvers and clients.
 */
public data class ProfileDnsConfigArgs(
    public val relativeName: Output,
    public val ttl: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.trafficmanager.inputs.ProfileDnsConfigArgs =
        com.pulumi.azure.trafficmanager.inputs.ProfileDnsConfigArgs.builder()
            .relativeName(relativeName.applyValue({ args0 -> args0 }))
            .ttl(ttl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProfileDnsConfigArgs].
 */
@PulumiTagMarker
public class ProfileDnsConfigArgsBuilder internal constructor() {
    private var relativeName: Output? = null

    private var ttl: Output? = null

    /**
     * @param value The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
     */
    @JvmName("kaqovdwjerkcykcq")
    public suspend fun relativeName(`value`: Output) {
        this.relativeName = value
    }

    /**
     * @param value The TTL value of the Profile used by Local DNS resolvers and clients.
     */
    @JvmName("bfsnphdeafpybkkw")
    public suspend fun ttl(`value`: Output) {
        this.ttl = value
    }

    /**
     * @param value The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
     */
    @JvmName("qwkxcdfdiekulvha")
    public suspend fun relativeName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.relativeName = mapped
    }

    /**
     * @param value The TTL value of the Profile used by Local DNS resolvers and clients.
     */
    @JvmName("mjvkkhijsvgcedcy")
    public suspend fun ttl(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

    internal fun build(): ProfileDnsConfigArgs = ProfileDnsConfigArgs(
        relativeName = relativeName ?: throw PulumiNullFieldException("relativeName"),
        ttl = ttl ?: throw PulumiNullFieldException("ttl"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy