com.pulumi.gcp.compute.kotlin.inputs.GetInstanceTemplatePlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.gcp.compute.inputs.GetInstanceTemplatePlainArgs.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 getInstanceTemplate.
* @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`, `filter` or `self_link_unique` must be provided.
* @property mostRecent If `filter` is provided, ensures the most recent template is returned when multiple instance templates match. One of `name`, `filter` or `self_link_unique` must be provided.
* @property name The name of the instance template. One of `name`, `filter` or `self_link_unique` 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 selfLinkUnique The self_link_unique URI of the instance template. One of `name`, `filter` or `self_link_unique` must be provided.
*/
public data class GetInstanceTemplatePlainArgs(
public val filter: String? = null,
public val mostRecent: Boolean? = null,
public val name: String? = null,
public val project: String? = null,
public val selfLinkUnique: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.GetInstanceTemplatePlainArgs =
com.pulumi.gcp.compute.inputs.GetInstanceTemplatePlainArgs.builder()
.filter(filter?.let({ args0 -> args0 }))
.mostRecent(mostRecent?.let({ args0 -> args0 }))
.name(name?.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.selfLinkUnique(selfLinkUnique?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetInstanceTemplatePlainArgs].
*/
@PulumiTagMarker
public class GetInstanceTemplatePlainArgsBuilder internal constructor() {
private var filter: String? = null
private var mostRecent: Boolean? = null
private var name: String? = null
private var project: String? = null
private var selfLinkUnique: 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`, `filter` or `self_link_unique` must be provided.
*/
@JvmName("qgdhiiewgvpypoxb")
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`, `filter` or `self_link_unique` must be provided.
*/
@JvmName("mkybjrvxbxgvboeq")
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`, `filter` or `self_link_unique` must be provided.
*/
@JvmName("nfniaritycmlbfhk")
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("lbcinuurpokwowba")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The self_link_unique URI of the instance template. One of `name`, `filter` or `self_link_unique` must be provided.
*/
@JvmName("fhxpuwwiynpyqxks")
public suspend fun selfLinkUnique(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.selfLinkUnique = mapped
}
internal fun build(): GetInstanceTemplatePlainArgs = GetInstanceTemplatePlainArgs(
filter = filter,
mostRecent = mostRecent,
name = name,
project = project,
selfLinkUnique = selfLinkUnique,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy