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

com.pulumi.azure.network.kotlin.inputs.GetTrafficManagerProfilePlainArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.GetTrafficManagerProfilePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getTrafficManagerProfile.
 * @property name Specifies the name of the Traffic Manager Profile.
 * @property resourceGroupName Specifies the name of the resource group the Traffic Manager Profile is located in.
 * @property tags A mapping of tags to assign to the resource.
 * @property trafficViewEnabled Indicates whether Traffic View is enabled for the Traffic Manager profile.
 */
public data class GetTrafficManagerProfilePlainArgs(
    public val name: String,
    public val resourceGroupName: String,
    public val tags: Map? = null,
    public val trafficViewEnabled: Boolean? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.GetTrafficManagerProfilePlainArgs =
        com.pulumi.azure.network.inputs.GetTrafficManagerProfilePlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trafficViewEnabled(trafficViewEnabled?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetTrafficManagerProfilePlainArgs].
 */
@PulumiTagMarker
public class GetTrafficManagerProfilePlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var resourceGroupName: String? = null

    private var tags: Map? = null

    private var trafficViewEnabled: Boolean? = null

    /**
     * @param value Specifies the name of the Traffic Manager Profile.
     */
    @JvmName("wtpnuelbmffrpijt")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Specifies the name of the resource group the Traffic Manager Profile is located in.
     */
    @JvmName("oslfpukdwyuwovyc")
    public suspend fun resourceGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("sptxfffgtfefmvde")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("spxjleyjcaoutftm")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param value Indicates whether Traffic View is enabled for the Traffic Manager profile.
     */
    @JvmName("punjsoedyqfirrmq")
    public suspend fun trafficViewEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.trafficViewEnabled = mapped
    }

    internal fun build(): GetTrafficManagerProfilePlainArgs = GetTrafficManagerProfilePlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
        tags = tags,
        trafficViewEnabled = trafficViewEnabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy