![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cdn.kotlin.inputs.OriginGroupOverrideArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.cdn.kotlin.inputs
import com.pulumi.azurenative.cdn.inputs.OriginGroupOverrideArgs.builder
import com.pulumi.azurenative.cdn.kotlin.enums.ForwardingProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Defines the parameters for the origin group override configuration.
* @property forwardingProtocol Protocol this rule will use when forwarding traffic to backends.
* @property originGroup defines the OriginGroup that would override the DefaultOriginGroup on route.
*/
public data class OriginGroupOverrideArgs(
public val forwardingProtocol: Output>? = null,
public val originGroup: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cdn.inputs.OriginGroupOverrideArgs =
com.pulumi.azurenative.cdn.inputs.OriginGroupOverrideArgs.builder()
.forwardingProtocol(
forwardingProtocol?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.originGroup(originGroup?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [OriginGroupOverrideArgs].
*/
@PulumiTagMarker
public class OriginGroupOverrideArgsBuilder internal constructor() {
private var forwardingProtocol: Output>? = null
private var originGroup: Output? = null
/**
* @param value Protocol this rule will use when forwarding traffic to backends.
*/
@JvmName("ltxymlswakjdnyhk")
public suspend fun forwardingProtocol(`value`: Output>) {
this.forwardingProtocol = value
}
/**
* @param value defines the OriginGroup that would override the DefaultOriginGroup on route.
*/
@JvmName("tssxlhnpfvhbgxqy")
public suspend fun originGroup(`value`: Output) {
this.originGroup = value
}
/**
* @param value Protocol this rule will use when forwarding traffic to backends.
*/
@JvmName("ueqqlmrysdvuijng")
public suspend fun forwardingProtocol(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forwardingProtocol = mapped
}
/**
* @param value Protocol this rule will use when forwarding traffic to backends.
*/
@JvmName("oqilialvkqncqocc")
public fun forwardingProtocol(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.forwardingProtocol = mapped
}
/**
* @param value Protocol this rule will use when forwarding traffic to backends.
*/
@JvmName("hajtnmcthglxifcu")
public fun forwardingProtocol(`value`: ForwardingProtocol) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.forwardingProtocol = mapped
}
/**
* @param value defines the OriginGroup that would override the DefaultOriginGroup on route.
*/
@JvmName("pfiutkwyivuvvoib")
public suspend fun originGroup(`value`: ResourceReferenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.originGroup = mapped
}
/**
* @param argument defines the OriginGroup that would override the DefaultOriginGroup on route.
*/
@JvmName("cvkeywbcgrtvrnip")
public suspend fun originGroup(argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
val toBeMapped = ResourceReferenceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.originGroup = mapped
}
internal fun build(): OriginGroupOverrideArgs = OriginGroupOverrideArgs(
forwardingProtocol = forwardingProtocol,
originGroup = originGroup,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy