com.pulumi.azure.automation.kotlin.inputs.ModuleModuleLinkArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automation.kotlin.inputs
import com.pulumi.azure.automation.inputs.ModuleModuleLinkArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property hash A `hash` block as defined below.
* @property uri The URI of the module content (zip or nupkg).
*/
public data class ModuleModuleLinkArgs(
public val hash: Output? = null,
public val uri: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automation.inputs.ModuleModuleLinkArgs =
com.pulumi.azure.automation.inputs.ModuleModuleLinkArgs.builder()
.hash(hash?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.uri(uri.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModuleModuleLinkArgs].
*/
@PulumiTagMarker
public class ModuleModuleLinkArgsBuilder internal constructor() {
private var hash: Output? = null
private var uri: Output? = null
/**
* @param value A `hash` block as defined below.
*/
@JvmName("ohfpxyjfwcspiykq")
public suspend fun hash(`value`: Output) {
this.hash = value
}
/**
* @param value The URI of the module content (zip or nupkg).
*/
@JvmName("vosfkegaoxouubrx")
public suspend fun uri(`value`: Output) {
this.uri = value
}
/**
* @param value A `hash` block as defined below.
*/
@JvmName("xwptvdigrqqofkkq")
public suspend fun hash(`value`: ModuleModuleLinkHashArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hash = mapped
}
/**
* @param argument A `hash` block as defined below.
*/
@JvmName("lxugoogoyeeimfud")
public suspend fun hash(argument: suspend ModuleModuleLinkHashArgsBuilder.() -> Unit) {
val toBeMapped = ModuleModuleLinkHashArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.hash = mapped
}
/**
* @param value The URI of the module content (zip or nupkg).
*/
@JvmName("tmbynxnvqoxbsswl")
public suspend fun uri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.uri = mapped
}
internal fun build(): ModuleModuleLinkArgs = ModuleModuleLinkArgs(
hash = hash,
uri = uri ?: throw PulumiNullFieldException("uri"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy