![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.digitalocean.kotlin.inputs.GetProjectsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetProjectsPlainArgs.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 getProjects.
* @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 GetProjectsPlainArgs(
public val filters: List? = null,
public val sorts: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetProjectsPlainArgs =
com.pulumi.digitalocean.inputs.GetProjectsPlainArgs.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 [GetProjectsPlainArgs].
*/
@PulumiTagMarker
public class GetProjectsPlainArgsBuilder internal constructor() {
private var filters: List? = null
private var sorts: List? = null
/**
* @param value Filter the results.
* The `filter` block is documented below.
*/
@JvmName("glkoqkkhnavbdbiq")
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("vuldusmnjdhxjriu")
public suspend fun filters(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetProjectsFilterBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter the results.
* The `filter` block is documented below.
*/
@JvmName("digkqfavtjladpre")
public suspend fun filters(vararg argument: suspend GetProjectsFilterBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetProjectsFilterBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter the results.
* The `filter` block is documented below.
*/
@JvmName("wxdfdotbluaqfprl")
public suspend fun filters(argument: suspend GetProjectsFilterBuilder.() -> Unit) {
val toBeMapped = listOf(GetProjectsFilterBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param values Filter the results.
* The `filter` block is documented below.
*/
@JvmName("aburyrsvdukdeepv")
public suspend fun filters(vararg values: GetProjectsFilter) {
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("mleixdymqiwgjvls")
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("bbcgbqslvidppkfd")
public suspend fun sorts(argument: List Unit>) {
val toBeMapped = argument.toList().map { GetProjectsSortBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param argument Sort the results.
* The `sort` block is documented below.
*/
@JvmName("nrkmtcfueavxekxa")
public suspend fun sorts(vararg argument: suspend GetProjectsSortBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { GetProjectsSortBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param argument Sort the results.
* The `sort` block is documented below.
*/
@JvmName("vdrwtotpstjawyrc")
public suspend fun sorts(argument: suspend GetProjectsSortBuilder.() -> Unit) {
val toBeMapped = listOf(GetProjectsSortBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.sorts = mapped
}
/**
* @param values Sort the results.
* The `sort` block is documented below.
*/
@JvmName("epwseglrqyvfsxqn")
public suspend fun sorts(vararg values: GetProjectsSort) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.sorts = mapped
}
internal fun build(): GetProjectsPlainArgs = GetProjectsPlainArgs(
filters = filters,
sorts = sorts,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy