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

com.pulumi.gitlab.kotlin.inputs.GetProjectEnvironmentsPlainArgs.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.GetProjectEnvironmentsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getProjectEnvironments.
 * @property name Return the environment with this name. Mutually exclusive with search.
 * @property project The ID or full path of the project.
 * @property search Return list of environments matching the search criteria. Mutually exclusive with name. Must be at least 3 characters long.
 * @property states List all environments that match the specified state. Valid values are `available`, `stopping`, `stopped`. Returns all environments if not set.
 */
public data class GetProjectEnvironmentsPlainArgs(
    public val name: String? = null,
    public val project: String,
    public val search: String? = null,
    public val states: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.inputs.GetProjectEnvironmentsPlainArgs =
        com.pulumi.gitlab.inputs.GetProjectEnvironmentsPlainArgs.builder()
            .name(name?.let({ args0 -> args0 }))
            .project(project.let({ args0 -> args0 }))
            .search(search?.let({ args0 -> args0 }))
            .states(states?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetProjectEnvironmentsPlainArgs].
 */
@PulumiTagMarker
public class GetProjectEnvironmentsPlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var project: String? = null

    private var search: String? = null

    private var states: String? = null

    /**
     * @param value Return the environment with this name. Mutually exclusive with search.
     */
    @JvmName("xkpcubyvxyqffxox")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value The ID or full path of the project.
     */
    @JvmName("adhkujhfaluuqwcl")
    public suspend fun project(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value Return list of environments matching the search criteria. Mutually exclusive with name. Must be at least 3 characters long.
     */
    @JvmName("qullxwfejbtjjvpo")
    public suspend fun search(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.search = mapped
    }

    /**
     * @param value List all environments that match the specified state. Valid values are `available`, `stopping`, `stopped`. Returns all environments if not set.
     */
    @JvmName("kacttvvngqucjioo")
    public suspend fun states(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.states = mapped
    }

    internal fun build(): GetProjectEnvironmentsPlainArgs = GetProjectEnvironmentsPlainArgs(
        name = name,
        project = project ?: throw PulumiNullFieldException("project"),
        search = search,
        states = states,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy