com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesInstancePatchArgs.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.resource.v1alpha2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesInstancePatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
* @property attributes Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
* @property name Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
*/
public data class NamedResourcesInstancePatchArgs(
public val attributes: Output>? = null,
public val name: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesInstancePatchArgs =
com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesInstancePatchArgs.builder()
.attributes(
attributes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamedResourcesInstancePatchArgs].
*/
@PulumiTagMarker
public class NamedResourcesInstancePatchArgsBuilder internal constructor() {
private var attributes: Output>? = null
private var name: Output? = null
/**
* @param value Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
*/
@JvmName("hqxlaeeyurwsbruu")
public suspend fun attributes(`value`: Output>) {
this.attributes = value
}
@JvmName("hgothmevvvpcdbfc")
public suspend fun attributes(vararg values: Output) {
this.attributes = Output.all(values.asList())
}
/**
* @param values Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
*/
@JvmName("tldswblpjslhxgyp")
public suspend fun attributes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy