com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapTestArgs.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.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs.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 description Description of this test case.
* @property host Host portion of the URL.
* @property path Path portion of the URL.
* @property service A reference to expected RegionBackendService resource the given URL should be mapped to.
*/
public data class RegionUrlMapTestArgs(
public val description: Output? = null,
public val host: Output,
public val path: Output,
public val service: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs =
com.pulumi.gcp.compute.inputs.RegionUrlMapTestArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.host(host.applyValue({ args0 -> args0 }))
.path(path.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionUrlMapTestArgs].
*/
@PulumiTagMarker
public class RegionUrlMapTestArgsBuilder internal constructor() {
private var description: Output? = null
private var host: Output? = null
private var path: Output? = null
private var service: Output? = null
/**
* @param value Description of this test case.
*/
@JvmName("vrcjtnftwkpswmmj")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Host portion of the URL.
*/
@JvmName("fafnfpaanbhrlkep")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Path portion of the URL.
*/
@JvmName("irudrsnelyvohewj")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value A reference to expected RegionBackendService resource the given URL should be mapped to.
*/
@JvmName("qralqtwmimurnncf")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Description of this test case.
*/
@JvmName("kietsywvrsxfwmrg")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Host portion of the URL.
*/
@JvmName("yugnvrnacavkgklc")
public suspend fun host(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value Path portion of the URL.
*/
@JvmName("tfimuahotkwffxfb")
public suspend fun path(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value A reference to expected RegionBackendService resource the given URL should be mapped to.
*/
@JvmName("erwtircjowxugcjy")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): RegionUrlMapTestArgs = RegionUrlMapTestArgs(
description = description,
host = host ?: throw PulumiNullFieldException("host"),
path = path ?: throw PulumiNullFieldException("path"),
service = service ?: throw PulumiNullFieldException("service"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy