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

com.pulumi.azurenative.machinelearning.kotlin.inputs.GraphParameterArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.machinelearning.kotlin.inputs

import com.pulumi.azurenative.machinelearning.inputs.GraphParameterArgs.builder
import com.pulumi.azurenative.machinelearning.kotlin.enums.ParameterType
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Defines a global parameter in the graph.
 * @property description Description of this graph parameter.
 * @property links Association links for this parameter to nodes in the graph.
 * @property type Graph parameter's type.
 */
public data class GraphParameterArgs(
    public val description: Output? = null,
    public val links: Output>,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearning.inputs.GraphParameterArgs =
        com.pulumi.azurenative.machinelearning.inputs.GraphParameterArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .links(links.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GraphParameterArgs].
 */
@PulumiTagMarker
public class GraphParameterArgsBuilder internal constructor() {
    private var description: Output? = null

    private var links: Output>? = null

    private var type: Output>? = null

    /**
     * @param value Description of this graph parameter.
     */
    @JvmName("fdwdyohsymkqwatg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Association links for this parameter to nodes in the graph.
     */
    @JvmName("dmropikjjduoclmo")
    public suspend fun links(`value`: Output>) {
        this.links = value
    }

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

    /**
     * @param values Association links for this parameter to nodes in the graph.
     */
    @JvmName("nqlijnebsghdyybl")
    public suspend fun links(values: List>) {
        this.links = Output.all(values)
    }

    /**
     * @param value Graph parameter's type.
     */
    @JvmName("ifqgxxkwnhmfpjam")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

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

    /**
     * @param value Association links for this parameter to nodes in the graph.
     */
    @JvmName("mkmoawaxtscxhocq")
    public suspend fun links(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param argument Association links for this parameter to nodes in the graph.
     */
    @JvmName("gqfwwlfupfpyvthd")
    public suspend fun links(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GraphParameterLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Association links for this parameter to nodes in the graph.
     */
    @JvmName("rjtqeohoqvevdido")
    public suspend fun links(vararg argument: suspend GraphParameterLinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GraphParameterLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Association links for this parameter to nodes in the graph.
     */
    @JvmName("rtdmoijuganwjldl")
    public suspend fun links(argument: suspend GraphParameterLinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(GraphParameterLinkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param values Association links for this parameter to nodes in the graph.
     */
    @JvmName("altmjeotwyalqkuv")
    public suspend fun links(vararg values: GraphParameterLinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param value Graph parameter's type.
     */
    @JvmName("isskaxqewutwekqf")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Graph parameter's type.
     */
    @JvmName("grhwrpnuelsjvvpx")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Graph parameter's type.
     */
    @JvmName("ltmonegfybhnwusv")
    public fun type(`value`: ParameterType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): GraphParameterArgs = GraphParameterArgs(
        description = description,
        links = links ?: throw PulumiNullFieldException("links"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy