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

com.pulumi.gcp.compute.kotlin.inputs.GetRegionInstanceTemplatePlainArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplatePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getRegionInstanceTemplate.
 * @property filter A filter to retrieve the instance templates.
 * See [gcloud topic filters](https://cloud.google.com/sdk/gcloud/reference/topic/filters) for reference.
 * If multiple instance templates match, either adjust the filter or specify `most_recent`. One of `name` or `filter` must be provided.
 * @property mostRecent If `filter` is provided, ensures the most recent template is returned when multiple instance templates match. One of `name` or `filter` must be provided.
 * @property name The name of the instance template. One of `name` or `filter` must be provided.
 * @property project The ID of the project in which the resource belongs.
 * If `project` is not provided, the provider project is used.
 * @property region The Region in which the resource belongs.
 * If `region` is not provided, the provider region is used.
 */
public data class GetRegionInstanceTemplatePlainArgs(
    public val filter: String? = null,
    public val mostRecent: Boolean? = null,
    public val name: String? = null,
    public val project: String? = null,
    public val region: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplatePlainArgs =
        com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplatePlainArgs.builder()
            .filter(filter?.let({ args0 -> args0 }))
            .mostRecent(mostRecent?.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .region(region?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRegionInstanceTemplatePlainArgs].
 */
@PulumiTagMarker
public class GetRegionInstanceTemplatePlainArgsBuilder internal constructor() {
    private var filter: String? = null

    private var mostRecent: Boolean? = null

    private var name: String? = null

    private var project: String? = null

    private var region: String? = null

    /**
     * @param value A filter to retrieve the instance templates.
     * See [gcloud topic filters](https://cloud.google.com/sdk/gcloud/reference/topic/filters) for reference.
     * If multiple instance templates match, either adjust the filter or specify `most_recent`. One of `name` or `filter` must be provided.
     */
    @JvmName("flwptnfecpeypetx")
    public suspend fun filter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filter = mapped
    }

    /**
     * @param value If `filter` is provided, ensures the most recent template is returned when multiple instance templates match. One of `name` or `filter` must be provided.
     */
    @JvmName("twnypyjcemcggwct")
    public suspend fun mostRecent(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.mostRecent = mapped
    }

    /**
     * @param value The name of the instance template. One of `name` or `filter` must be provided.
     */
    @JvmName("whiwnuncsgcmjvfq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If `project` is not provided, the provider project is used.
     */
    @JvmName("uslqxpqchptiidjy")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value The Region in which the resource belongs.
     * If `region` is not provided, the provider region is used.
     */
    @JvmName("rivjjvasquxnxthm")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.region = mapped
    }

    internal fun build(): GetRegionInstanceTemplatePlainArgs = GetRegionInstanceTemplatePlainArgs(
        filter = filter,
        mostRecent = mostRecent,
        name = name,
        project = project,
        region = region,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy