com.pulumi.cloudflare.kotlin.inputs.AccessApplicationTargetCriteriaArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.AccessApplicationTargetCriteriaArgs.builder
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.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property port The port that the targets use for the chosen communication protocol. A port cannot be assigned to multiple protocols.
* @property protocol The communication protocol your application secures.
* @property targetAttributes Contains a map of target attribute keys to target attribute values.
*/
public data class AccessApplicationTargetCriteriaArgs(
public val port: Output,
public val protocol: Output,
public val targetAttributes: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.AccessApplicationTargetCriteriaArgs =
com.pulumi.cloudflare.inputs.AccessApplicationTargetCriteriaArgs.builder()
.port(port.applyValue({ args0 -> args0 }))
.protocol(protocol.applyValue({ args0 -> args0 }))
.targetAttributes(
targetAttributes.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AccessApplicationTargetCriteriaArgs].
*/
@PulumiTagMarker
public class AccessApplicationTargetCriteriaArgsBuilder internal constructor() {
private var port: Output? = null
private var protocol: Output? = null
private var targetAttributes: Output>? =
null
/**
* @param value The port that the targets use for the chosen communication protocol. A port cannot be assigned to multiple protocols.
*/
@JvmName("ivfdyrrivvrkyefw")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The communication protocol your application secures.
*/
@JvmName("vhfufdhagjhmylii")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value Contains a map of target attribute keys to target attribute values.
*/
@JvmName("rqvhlpxiftixnvbm")
public suspend fun targetAttributes(`value`: Output>) {
this.targetAttributes = value
}
@JvmName("ufgivbsmpcmgkewb")
public suspend fun targetAttributes(vararg values: Output) {
this.targetAttributes = Output.all(values.asList())
}
/**
* @param values Contains a map of target attribute keys to target attribute values.
*/
@JvmName("oblggnaprirclgiv")
public suspend fun targetAttributes(values: List