com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs.CrossVersionObjectReferenceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.autoscaling.v2.kotlin.inputs
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.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* CrossVersionObjectReference contains enough information to let you identify the referred resource.
* @property apiVersion apiVersion is the API version of the referent
* @property kind kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @property name name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
*/
public data class CrossVersionObjectReferenceArgs(
public val apiVersion: Output? = null,
public val kind: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs = com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs.builder()
.apiVersion(apiVersion?.applyValue({ args0 -> args0 }))
.kind(kind.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CrossVersionObjectReferenceArgs].
*/
@PulumiTagMarker
public class CrossVersionObjectReferenceArgsBuilder internal constructor() {
private var apiVersion: Output? = null
private var kind: Output? = null
private var name: Output? = null
/**
* @param value apiVersion is the API version of the referent
*/
@JvmName("ffsgrckaqvujuvqm")
public suspend fun apiVersion(`value`: Output) {
this.apiVersion = value
}
/**
* @param value kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("mqkvevotxcqvgdyl")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
*/
@JvmName("oaxjkuedutdaiwdg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value apiVersion is the API version of the referent
*/
@JvmName("mvnkbipmapsqouao")
public suspend fun apiVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiVersion = mapped
}
/**
* @param value kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("aoxanvpkatkgxiyi")
public suspend fun kind(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
*/
@JvmName("mepkmyivhpyfwyjl")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): CrossVersionObjectReferenceArgs = CrossVersionObjectReferenceArgs(
apiVersion = apiVersion,
kind = kind ?: throw PulumiNullFieldException("kind"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy