com.pulumi.kubernetes.meta.v1.kotlin.inputs.OwnerReferenceArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.meta.v1.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.meta.v1.inputs.OwnerReferenceArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
* @property apiVersion API version of the referent.
* @property blockOwnerDeletion If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
* @property controller If true, this reference points to the managing controller.
* @property kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @property name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
* @property uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
public data class OwnerReferenceArgs(
public val apiVersion: Output,
public val blockOwnerDeletion: Output? = null,
public val controller: Output? = null,
public val kind: Output,
public val name: Output,
public val uid: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.meta.v1.inputs.OwnerReferenceArgs =
com.pulumi.kubernetes.meta.v1.inputs.OwnerReferenceArgs.builder()
.apiVersion(apiVersion.applyValue({ args0 -> args0 }))
.blockOwnerDeletion(blockOwnerDeletion?.applyValue({ args0 -> args0 }))
.controller(controller?.applyValue({ args0 -> args0 }))
.kind(kind.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.uid(uid.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OwnerReferenceArgs].
*/
@PulumiTagMarker
public class OwnerReferenceArgsBuilder internal constructor() {
private var apiVersion: Output? = null
private var blockOwnerDeletion: Output? = null
private var controller: Output? = null
private var kind: Output? = null
private var name: Output? = null
private var uid: Output? = null
/**
* @param value API version of the referent.
*/
@JvmName("gfqvkwjemkpkpqcd")
public suspend fun apiVersion(`value`: Output) {
this.apiVersion = value
}
/**
* @param value If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
*/
@JvmName("ibofgxqkayppuhmn")
public suspend fun blockOwnerDeletion(`value`: Output) {
this.blockOwnerDeletion = value
}
/**
* @param value If true, this reference points to the managing controller.
*/
@JvmName("kbmbmsiuevptfmti")
public suspend fun controller(`value`: Output) {
this.controller = value
}
/**
* @param value Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("eshqlosffsbqsopx")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
*/
@JvmName("xdfedlghkiciadtc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
@JvmName("djsfoiulohbqvrlg")
public suspend fun uid(`value`: Output) {
this.uid = value
}
/**
* @param value API version of the referent.
*/
@JvmName("oulfsabdhfktghpe")
public suspend fun apiVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.apiVersion = mapped
}
/**
* @param value If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
*/
@JvmName("tymjxvhiepgxtfhs")
public suspend fun blockOwnerDeletion(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.blockOwnerDeletion = mapped
}
/**
* @param value If true, this reference points to the managing controller.
*/
@JvmName("rsnuhuomviphvxnj")
public suspend fun controller(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.controller = mapped
}
/**
* @param value Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("clyespfrvpqkvigt")
public suspend fun kind(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
*/
@JvmName("squwqjvptorvxgxb")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
@JvmName("hrellccnxsosvvup")
public suspend fun uid(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.uid = mapped
}
internal fun build(): OwnerReferenceArgs = OwnerReferenceArgs(
apiVersion = apiVersion ?: throw PulumiNullFieldException("apiVersion"),
blockOwnerDeletion = blockOwnerDeletion,
controller = controller,
kind = kind ?: throw PulumiNullFieldException("kind"),
name = name ?: throw PulumiNullFieldException("name"),
uid = uid ?: throw PulumiNullFieldException("uid"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy