com.pulumi.googlenative.gkebackup.v1.kotlin.inputs.NamespacedNameArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.gkebackup.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.gkebackup.v1.inputs.NamespacedNameArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A reference to a namespaced resource in Kubernetes.
* @property name The name of the Kubernetes resource.
* @property namespace The Namespace of the Kubernetes resource.
*/
public data class NamespacedNameArgs(
public val name: Output? = null,
public val namespace: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.gkebackup.v1.inputs.NamespacedNameArgs =
com.pulumi.googlenative.gkebackup.v1.inputs.NamespacedNameArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamespacedNameArgs].
*/
@PulumiTagMarker
public class NamespacedNameArgsBuilder internal constructor() {
private var name: Output? = null
private var namespace: Output? = null
/**
* @param value The name of the Kubernetes resource.
*/
@JvmName("ekfvrdgcjrltnumx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The Namespace of the Kubernetes resource.
*/
@JvmName("idvxrnilwcjhstih")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value The name of the Kubernetes resource.
*/
@JvmName("btnghejajremphhy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The Namespace of the Kubernetes resource.
*/
@JvmName("qlcrwruitjjdeiab")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
internal fun build(): NamespacedNameArgs = NamespacedNameArgs(
name = name,
namespace = namespace,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy