com.pulumi.cloudflare.kotlin.inputs.GetZonesPlainArgs.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.GetZonesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getZones.
* @property filter One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
*/
public data class GetZonesPlainArgs(
public val filter: GetZonesFilter,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.GetZonesPlainArgs =
com.pulumi.cloudflare.inputs.GetZonesPlainArgs.builder()
.filter(filter.let({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GetZonesPlainArgs].
*/
@PulumiTagMarker
public class GetZonesPlainArgsBuilder internal constructor() {
private var filter: GetZonesFilter? = null
/**
* @param value One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
*/
@JvmName("ymufkvkymvrcppcy")
public suspend fun filter(`value`: GetZonesFilter) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.filter = mapped
}
/**
* @param argument One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
*/
@JvmName("vyqvshwathmhuwet")
public suspend fun filter(argument: suspend GetZonesFilterBuilder.() -> Unit) {
val toBeMapped = GetZonesFilterBuilder().applySuspend { argument() }.build()
val mapped = toBeMapped
this.filter = mapped
}
internal fun build(): GetZonesPlainArgs = GetZonesPlainArgs(
filter = filter ?: throw PulumiNullFieldException("filter"),
)
}