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

com.pulumi.googlenative.apigeeregistry.v1.kotlin.inputs.GetSpecPlainArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.apigeeregistry.v1.kotlin.inputs

import com.pulumi.googlenative.apigeeregistry.v1.inputs.GetSpecPlainArgs.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

/**
 *
 * @property apiId
 * @property location
 * @property project
 * @property specId
 * @property versionId
 */
public data class GetSpecPlainArgs(
    public val apiId: String,
    public val location: String,
    public val project: String? = null,
    public val specId: String,
    public val versionId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.apigeeregistry.v1.inputs.GetSpecPlainArgs =
        com.pulumi.googlenative.apigeeregistry.v1.inputs.GetSpecPlainArgs.builder()
            .apiId(apiId.let({ args0 -> args0 }))
            .location(location.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .specId(specId.let({ args0 -> args0 }))
            .versionId(versionId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetSpecPlainArgs].
 */
@PulumiTagMarker
public class GetSpecPlainArgsBuilder internal constructor() {
    private var apiId: String? = null

    private var location: String? = null

    private var project: String? = null

    private var specId: String? = null

    private var versionId: String? = null

    /**
     * @param value
     */
    @JvmName("erjxsgqsoomxusgr")
    public suspend fun apiId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.apiId = mapped
    }

    /**
     * @param value
     */
    @JvmName("dtaytdmxhioqcysi")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.location = mapped
    }

    /**
     * @param value
     */
    @JvmName("ofmyrbpcauepsxqd")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value
     */
    @JvmName("khycjbauscdgcgqh")
    public suspend fun specId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.specId = mapped
    }

    /**
     * @param value
     */
    @JvmName("mcwutblgqtjrtdpn")
    public suspend fun versionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.versionId = mapped
    }

    internal fun build(): GetSpecPlainArgs = GetSpecPlainArgs(
        apiId = apiId ?: throw PulumiNullFieldException("apiId"),
        location = location ?: throw PulumiNullFieldException("location"),
        project = project,
        specId = specId ?: throw PulumiNullFieldException("specId"),
        versionId = versionId ?: throw PulumiNullFieldException("versionId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy