com.pulumi.gcp.networkservices.kotlin.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property labelName Required. Label name presented as key in xDS Node Metadata.
* @property labelValue Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
* - - -
*/
public data class EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs(
public val labelName: Output,
public val labelValue: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs =
com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs.builder()
.labelName(labelName.applyValue({ args0 -> args0 }))
.labelValue(labelValue.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs].
*/
@PulumiTagMarker
public class EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder internal constructor() {
private var labelName: Output? = null
private var labelValue: Output? = null
/**
* @param value Required. Label name presented as key in xDS Node Metadata.
*/
@JvmName("smddqrixkgvrayhx")
public suspend fun labelName(`value`: Output) {
this.labelName = value
}
/**
* @param value Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
* - - -
*/
@JvmName("vmvpdgmasrsfhvqn")
public suspend fun labelValue(`value`: Output) {
this.labelValue = value
}
/**
* @param value Required. Label name presented as key in xDS Node Metadata.
*/
@JvmName("cggcucsrkxjhphcx")
public suspend fun labelName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labelName = mapped
}
/**
* @param value Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
* - - -
*/
@JvmName("iaennfrilclqgedd")
public suspend fun labelValue(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labelValue = mapped
}
internal fun build(): EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs =
EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs(
labelName = labelName ?: throw PulumiNullFieldException("labelName"),
labelValue = labelValue ?: throw PulumiNullFieldException("labelValue"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy