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

com.pulumi.gitlab.kotlin.inputs.GetRunnersPlainArgs.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: 8.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.inputs

import com.pulumi.gitlab.inputs.GetRunnersPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getRunners.
 * @property paused Filters for runners with the given paused value
 * @property status Filters for runners with the given status. Valid Values are `online`, `offline`, `stale`, and `never_contacted`.
 * @property tagLists Filters for runners with all of the given tags
 * @property type The type of runner to return. Valid values are `instance_type`, `group_type` and `project_type`
 */
public data class GetRunnersPlainArgs(
    public val paused: Boolean? = null,
    public val status: String? = null,
    public val tagLists: List? = null,
    public val type: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.inputs.GetRunnersPlainArgs =
        com.pulumi.gitlab.inputs.GetRunnersPlainArgs.builder()
            .paused(paused?.let({ args0 -> args0 }))
            .status(status?.let({ args0 -> args0 }))
            .tagLists(tagLists?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRunnersPlainArgs].
 */
@PulumiTagMarker
public class GetRunnersPlainArgsBuilder internal constructor() {
    private var paused: Boolean? = null

    private var status: String? = null

    private var tagLists: List? = null

    private var type: String? = null

    /**
     * @param value Filters for runners with the given paused value
     */
    @JvmName("buubnvvugwrfytyc")
    public suspend fun paused(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.paused = mapped
    }

    /**
     * @param value Filters for runners with the given status. Valid Values are `online`, `offline`, `stale`, and `never_contacted`.
     */
    @JvmName("ldcywogkfxydoobo")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.status = mapped
    }

    /**
     * @param value Filters for runners with all of the given tags
     */
    @JvmName("dcidyfthofmxougl")
    public suspend fun tagLists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tagLists = mapped
    }

    /**
     * @param values Filters for runners with all of the given tags
     */
    @JvmName("jrmerouvnxilesyh")
    public suspend fun tagLists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tagLists = mapped
    }

    /**
     * @param value The type of runner to return. Valid values are `instance_type`, `group_type` and `project_type`
     */
    @JvmName("ckfsnfqtaxaatfyk")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.type = mapped
    }

    internal fun build(): GetRunnersPlainArgs = GetRunnersPlainArgs(
        paused = paused,
        status = status,
        tagLists = tagLists,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy