com.pulumi.digitalocean.kotlin.inputs.GetImagesPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetImagesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getImages.
* @property filters Filter the results.
* The `filter` block is documented below.
* @property sorts Sort the results.
* The `sort` block is documented below.
*/
public data class GetImagesPlainArgs(
public val filters: List? = null,
public val sorts: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetImagesPlainArgs =
com.pulumi.digitalocean.inputs.GetImagesPlainArgs.builder()
.filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.sorts(sorts?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) })).build()
}
/**
* Builder for [GetImagesPlainArgs].
*/
@PulumiTagMarker
public class GetImagesPlainArgsBuilder internal constructor() {
private var filters: List? = null
private var sorts: List? = null
/**
* @param value Filter the results.
* The `filter` block is documented below.
*/
@JvmName("vwldanoayusslpvg")
public suspend fun filters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param argument Filter the results.
* The `filter` block is documented below.
*/
@JvmName("kcsfntdfsuwwkapa")
public suspend fun filters(argument: List Unit>) {
val toBeMapped = argument.toList().map { GetImagesFilterBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter the results.
* The `filter` block is documented below.
*/
@JvmName("fuswcjsuvjeyrcdl")
public suspend fun filters(vararg argument: suspend GetImagesFilterBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { GetImagesFilterBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter the results.
* The `filter` block is documented below.
*/
@JvmName("vqlfxpbrhrqkwyke")
public suspend fun filters(argument: suspend GetImagesFilterBuilder.() -> Unit) {
val toBeMapped = listOf(GetImagesFilterBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param values Filter the results.
* The `filter` block is documented below.
*/
@JvmName("wyusaubxvbrpeulw")
public suspend fun filters(vararg values: GetImagesFilter) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param value Sort the results.
* The `sort` block is documented below.
*/
@JvmName("kaxqigntagtlsmeh")
public suspend fun sorts(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.sorts = mapped
}
/**
* @param argument Sort the results.
* The `sort` block is documented below.
*/
@JvmName("pxupnemhkuogmijb")
public suspend fun sorts(argument: List Unit>) {
val toBeMapped = argument.toList().map { GetImagesSortBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param argument Sort the results.
* The `sort` block is documented below.
*/
@JvmName("edlsofujvhwihwyw")
public suspend fun sorts(vararg argument: suspend GetImagesSortBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { GetImagesSortBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param argument Sort the results.
* The `sort` block is documented below.
*/
@JvmName("dlminxtemulyislb")
public suspend fun sorts(argument: suspend GetImagesSortBuilder.() -> Unit) {
val toBeMapped = listOf(GetImagesSortBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param values Sort the results.
* The `sort` block is documented below.
*/
@JvmName("kmgvxnydfrcbklrb")
public suspend fun sorts(vararg values: GetImagesSort) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.sorts = mapped
}
internal fun build(): GetImagesPlainArgs = GetImagesPlainArgs(
filters = filters,
sorts = sorts,
)
}