com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.ResourceClassParametersReferenceArgs.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.resource.v1alpha2.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.resource.v1alpha2.inputs.ResourceClassParametersReferenceArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
* @property apiGroup APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
* @property kind Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
* @property name Name is the name of resource being referenced.
* @property namespace Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
*/
public data class ResourceClassParametersReferenceArgs(
public val apiGroup: Output? = null,
public val kind: Output,
public val name: Output,
public val namespace: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassParametersReferenceArgs =
com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassParametersReferenceArgs.builder()
.apiGroup(apiGroup?.applyValue({ args0 -> args0 }))
.kind(kind.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceClassParametersReferenceArgs].
*/
@PulumiTagMarker
public class ResourceClassParametersReferenceArgsBuilder internal constructor() {
private var apiGroup: Output? = null
private var kind: Output? = null
private var name: Output? = null
private var namespace: Output? = null
/**
* @param value APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
*/
@JvmName("ihodbujdktjsbxyh")
public suspend fun apiGroup(`value`: Output) {
this.apiGroup = value
}
/**
* @param value Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
*/
@JvmName("uhcjyjfkrhbnxanv")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Name is the name of resource being referenced.
*/
@JvmName("uotxxbxucgdkhdvg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
*/
@JvmName("hcnmmnshwjmdamly")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
*/
@JvmName("qxdjravbngxdyeqk")
public suspend fun apiGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiGroup = mapped
}
/**
* @param value Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
*/
@JvmName("phjsbvlcwovdxwph")
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 resource being referenced.
*/
@JvmName("pqbjcgfbnrxkfxwc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
*/
@JvmName("oxwymgqugnexqrhe")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
internal fun build(): ResourceClassParametersReferenceArgs = ResourceClassParametersReferenceArgs(
apiGroup = apiGroup,
kind = kind ?: throw PulumiNullFieldException("kind"),
name = name ?: throw PulumiNullFieldException("name"),
namespace = namespace,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy