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

com.pulumi.googlenative.compute.beta.kotlin.inputs.GetInstancePlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin.inputs

import com.pulumi.googlenative.compute.beta.inputs.GetInstancePlainArgs.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 instance
 * @property project
 * @property zone
 */
public data class GetInstancePlainArgs(
    public val instance: String,
    public val project: String? = null,
    public val zone: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.inputs.GetInstancePlainArgs =
        com.pulumi.googlenative.compute.beta.inputs.GetInstancePlainArgs.builder()
            .instance(instance.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .zone(zone.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetInstancePlainArgs].
 */
@PulumiTagMarker
public class GetInstancePlainArgsBuilder internal constructor() {
    private var instance: String? = null

    private var project: String? = null

    private var zone: String? = null

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

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

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

    internal fun build(): GetInstancePlainArgs = GetInstancePlainArgs(
        instance = instance ?: throw PulumiNullFieldException("instance"),
        project = project,
        zone = zone ?: throw PulumiNullFieldException("zone"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy