com.pulumi.gcp.apphub.kotlin.inputs.GetDiscoveredWorkloadPlainArgs.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.apphub.kotlin.inputs
import com.pulumi.gcp.apphub.inputs.GetDiscoveredWorkloadPlainArgs.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 getDiscoveredWorkload.
* @property location The location of the discovered workload.
* @property project The host project of the discovered workload.
* @property workloadUri The uri of the workload (instance group managed by the Instance Group Manager). Example: "//compute.googleapis.com/projects/1/regions/us-east1/instanceGroups/id1"
*/
public data class GetDiscoveredWorkloadPlainArgs(
public val location: String,
public val project: String? = null,
public val workloadUri: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.apphub.inputs.GetDiscoveredWorkloadPlainArgs =
com.pulumi.gcp.apphub.inputs.GetDiscoveredWorkloadPlainArgs.builder()
.location(location.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.workloadUri(workloadUri.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDiscoveredWorkloadPlainArgs].
*/
@PulumiTagMarker
public class GetDiscoveredWorkloadPlainArgsBuilder internal constructor() {
private var location: String? = null
private var project: String? = null
private var workloadUri: String? = null
/**
* @param value The location of the discovered workload.
*/
@JvmName("pwdjdkugycghgopv")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.location = mapped
}
/**
* @param value The host project of the discovered workload.
*/
@JvmName("ioupclextcaaegsc")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The uri of the workload (instance group managed by the Instance Group Manager). Example: "//compute.googleapis.com/projects/1/regions/us-east1/instanceGroups/id1"
*/
@JvmName("novvprxdhyynirjs")
public suspend fun workloadUri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.workloadUri = mapped
}
internal fun build(): GetDiscoveredWorkloadPlainArgs = GetDiscoveredWorkloadPlainArgs(
location = location ?: throw PulumiNullFieldException("location"),
project = project,
workloadUri = workloadUri ?: throw PulumiNullFieldException("workloadUri"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy