com.pulumi.gcp.compute.kotlin.inputs.URLMapTestArgs.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.URLMapTestArgs.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 The backend service or backend bucket link that should be matched by this test.
*/
public data class URLMapTestArgs(
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.URLMapTestArgs =
com.pulumi.gcp.compute.inputs.URLMapTestArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.host(host.applyValue({ args0 -> args0 }))
.path(path.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [URLMapTestArgs].
*/
@PulumiTagMarker
public class URLMapTestArgsBuilder 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("hxyhagtyioxjtlsg")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Host portion of the URL.
*/
@JvmName("frgmhrwcsxeimwhk")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Path portion of the URL.
*/
@JvmName("jlysrsbdtvmgywvj")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value The backend service or backend bucket link that should be matched by this test.
*/
@JvmName("sdfcwxcnfmowfhmg")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Description of this test case.
*/
@JvmName("qksfxjhodkbdpykg")
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("srdkuonnvxivsvgc")
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("uqapugimypjvlruk")
public suspend fun path(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value The backend service or backend bucket link that should be matched by this test.
*/
@JvmName("otuakwkpdugxiqag")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): URLMapTestArgs = URLMapTestArgs(
description = description,
host = host ?: throw PulumiNullFieldException("host"),
path = path ?: throw PulumiNullFieldException("path"),
service = service ?: throw PulumiNullFieldException("service"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy