All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.inputs.GetSshKeysPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.35.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.digitalocean.inputs.GetSshKeysPlainArgs.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 getSshKeys.
 * @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 GetSshKeysPlainArgs(
    public val filters: List? = null,
    public val sorts: List? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.GetSshKeysPlainArgs =
        com.pulumi.digitalocean.inputs.GetSshKeysPlainArgs.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 [GetSshKeysPlainArgs].
 */
@PulumiTagMarker
public class GetSshKeysPlainArgsBuilder internal constructor() {
    private var filters: List? = null

    private var sorts: List? = null

    /**
     * @param value Filter the results.
     * The `filter` block is documented below.
     */
    @JvmName("gtlivmqrnvgiiiri")
    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("hqcxwgosofqalpwx")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetSshKeysFilterBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Filter the results.
     * The `filter` block is documented below.
     */
    @JvmName("tocndwsipnnvjecj")
    public suspend fun filters(vararg argument: suspend GetSshKeysFilterBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetSshKeysFilterBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Filter the results.
     * The `filter` block is documented below.
     */
    @JvmName("lnxwywbbfqahieco")
    public suspend fun filters(argument: suspend GetSshKeysFilterBuilder.() -> Unit) {
        val toBeMapped = listOf(GetSshKeysFilterBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param values Filter the results.
     * The `filter` block is documented below.
     */
    @JvmName("vbxdcyfuyhcrcciu")
    public suspend fun filters(vararg values: GetSshKeysFilter) {
        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("cfygeyoucmtrhwja")
    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("mqhfnwddkswijvyk")
    public suspend fun sorts(argument: List Unit>) {
        val toBeMapped = argument.toList().map { GetSshKeysSortBuilder().applySuspend { it() }.build() }
        val mapped = toBeMapped
        this.sorts = mapped
    }

    /**
     * @param argument Sort the results.
     * The `sort` block is documented below.
     */
    @JvmName("hwvaqrkgwtstufra")
    public suspend fun sorts(vararg argument: suspend GetSshKeysSortBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { GetSshKeysSortBuilder().applySuspend { it() }.build() }
        val mapped = toBeMapped
        this.sorts = mapped
    }

    /**
     * @param argument Sort the results.
     * The `sort` block is documented below.
     */
    @JvmName("wgbqtsyhtppykrfd")
    public suspend fun sorts(argument: suspend GetSshKeysSortBuilder.() -> Unit) {
        val toBeMapped = listOf(GetSshKeysSortBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.sorts = mapped
    }

    /**
     * @param values Sort the results.
     * The `sort` block is documented below.
     */
    @JvmName("aamllerigntufxjl")
    public suspend fun sorts(vararg values: GetSshKeysSort) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.sorts = mapped
    }

    internal fun build(): GetSshKeysPlainArgs = GetSshKeysPlainArgs(
        filters = filters,
        sorts = sorts,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy