com.pulumi.gcp.cloudrun.kotlin.inputs.DomainMappingSpecArgs.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.cloudrun.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.DomainMappingSpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property certificateMode The mode of the certificate.
* Default value is `AUTOMATIC`.
* Possible values are: `NONE`, `AUTOMATIC`.
* - - -
* @property forceOverride If set, the mapping will override any mapping set before this spec was set.
* It is recommended that the user leaves this empty to receive an error
* warning about a potential conflict and only set it once the respective UI
* has given such a warning.
* @property routeName The name of the Cloud Run Service that this DomainMapping applies to.
* The route must exist.
*/
public data class DomainMappingSpecArgs(
public val certificateMode: Output? = null,
public val forceOverride: Output? = null,
public val routeName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrun.inputs.DomainMappingSpecArgs =
com.pulumi.gcp.cloudrun.inputs.DomainMappingSpecArgs.builder()
.certificateMode(certificateMode?.applyValue({ args0 -> args0 }))
.forceOverride(forceOverride?.applyValue({ args0 -> args0 }))
.routeName(routeName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DomainMappingSpecArgs].
*/
@PulumiTagMarker
public class DomainMappingSpecArgsBuilder internal constructor() {
private var certificateMode: Output? = null
private var forceOverride: Output? = null
private var routeName: Output? = null
/**
* @param value The mode of the certificate.
* Default value is `AUTOMATIC`.
* Possible values are: `NONE`, `AUTOMATIC`.
* - - -
*/
@JvmName("iclnrouxlohcngbl")
public suspend fun certificateMode(`value`: Output) {
this.certificateMode = value
}
/**
* @param value If set, the mapping will override any mapping set before this spec was set.
* It is recommended that the user leaves this empty to receive an error
* warning about a potential conflict and only set it once the respective UI
* has given such a warning.
*/
@JvmName("rppyjwivhkdpmyuk")
public suspend fun forceOverride(`value`: Output) {
this.forceOverride = value
}
/**
* @param value The name of the Cloud Run Service that this DomainMapping applies to.
* The route must exist.
*/
@JvmName("tivngyrtudeqgido")
public suspend fun routeName(`value`: Output) {
this.routeName = value
}
/**
* @param value The mode of the certificate.
* Default value is `AUTOMATIC`.
* Possible values are: `NONE`, `AUTOMATIC`.
* - - -
*/
@JvmName("xqgmmktkmjiqhktf")
public suspend fun certificateMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certificateMode = mapped
}
/**
* @param value If set, the mapping will override any mapping set before this spec was set.
* It is recommended that the user leaves this empty to receive an error
* warning about a potential conflict and only set it once the respective UI
* has given such a warning.
*/
@JvmName("xkmneqkygusidqom")
public suspend fun forceOverride(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forceOverride = mapped
}
/**
* @param value The name of the Cloud Run Service that this DomainMapping applies to.
* The route must exist.
*/
@JvmName("jeucbrpaqgnsxhnk")
public suspend fun routeName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.routeName = mapped
}
internal fun build(): DomainMappingSpecArgs = DomainMappingSpecArgs(
certificateMode = certificateMode,
forceOverride = forceOverride,
routeName = routeName ?: throw PulumiNullFieldException("routeName"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy