com.pulumi.cloudflare.kotlin.inputs.GetTunnelPlainArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.GetTunnelPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getTunnel.
* @property accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
* @property isDeleted If true, only include deleted tunnels. If false, exclude deleted tunnels. If empty, all tunnels will be included. **Modifying this attribute will force creation of a new resource.**
* @property name Name of the tunnel. **Modifying this attribute will force creation of a new resource.**
*/
public data class GetTunnelPlainArgs(
public val accountId: String,
public val isDeleted: Boolean? = null,
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.GetTunnelPlainArgs =
com.pulumi.cloudflare.inputs.GetTunnelPlainArgs.builder()
.accountId(accountId.let({ args0 -> args0 }))
.isDeleted(isDeleted?.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetTunnelPlainArgs].
*/
@PulumiTagMarker
public class GetTunnelPlainArgsBuilder internal constructor() {
private var accountId: String? = null
private var isDeleted: Boolean? = null
private var name: String? = null
/**
* @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("snxcxmcufeoefuni")
public suspend fun accountId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.accountId = mapped
}
/**
* @param value If true, only include deleted tunnels. If false, exclude deleted tunnels. If empty, all tunnels will be included. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("slrnphxxokcyuyyb")
public suspend fun isDeleted(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.isDeleted = mapped
}
/**
* @param value Name of the tunnel. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("vijvgthldxpwbfex")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetTunnelPlainArgs = GetTunnelPlainArgs(
accountId = accountId ?: throw PulumiNullFieldException("accountId"),
isDeleted = isDeleted,
name = name ?: throw PulumiNullFieldException("name"),
)
}