com.pulumi.azurenative.cdn.kotlin.inputs.ResourceReferenceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin.inputs
import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Reference to another resource.
* @property id Resource ID.
*/
public data class ResourceReferenceArgs(
public val id: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs =
com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs.builder()
.id(id?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceReferenceArgs].
*/
@PulumiTagMarker
public class ResourceReferenceArgsBuilder internal constructor() {
private var id: Output? = null
/**
* @param value Resource ID.
*/
@JvmName("gchfbmkcanycedhn")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Resource ID.
*/
@JvmName("ksycxfhhttnjrmih")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
internal fun build(): ResourceReferenceArgs = ResourceReferenceArgs(
id = id,
)
}