com.pulumi.azure.automation.kotlin.inputs.ModuleModuleLinkHashArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automation.kotlin.inputs
import com.pulumi.azure.automation.inputs.ModuleModuleLinkHashArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property algorithm Specifies the algorithm used for the hash content.
* @property value The hash value of the content.
*/
public data class ModuleModuleLinkHashArgs(
public val algorithm: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automation.inputs.ModuleModuleLinkHashArgs =
com.pulumi.azure.automation.inputs.ModuleModuleLinkHashArgs.builder()
.algorithm(algorithm.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModuleModuleLinkHashArgs].
*/
@PulumiTagMarker
public class ModuleModuleLinkHashArgsBuilder internal constructor() {
private var algorithm: Output? = null
private var `value`: Output? = null
/**
* @param value Specifies the algorithm used for the hash content.
*/
@JvmName("drbxcvcjwkbuhorn")
public suspend fun algorithm(`value`: Output) {
this.algorithm = value
}
/**
* @param value The hash value of the content.
*/
@JvmName("shohfjhybgxwwwfy")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Specifies the algorithm used for the hash content.
*/
@JvmName("amfjtqbtabyapchh")
public suspend fun algorithm(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.algorithm = mapped
}
/**
* @param value The hash value of the content.
*/
@JvmName("jtlcnnxcvsjqudwo")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): ModuleModuleLinkHashArgs = ModuleModuleLinkHashArgs(
algorithm = algorithm ?: throw PulumiNullFieldException("algorithm"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}