com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleUrlRewriteActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleUrlRewriteActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 destination This value must start with a `/` and can't be longer than 260 characters.
* @property preserveUnmatchedPath Whether preserve an unmatched path. Defaults to `true`.
* @property sourcePattern This value must start with a `/` and can't be longer than 260 characters.
*/
public data class EndpointGlobalDeliveryRuleUrlRewriteActionArgs(
public val destination: Output,
public val preserveUnmatchedPath: Output? = null,
public val sourcePattern: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleUrlRewriteActionArgs =
com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleUrlRewriteActionArgs.builder()
.destination(destination.applyValue({ args0 -> args0 }))
.preserveUnmatchedPath(preserveUnmatchedPath?.applyValue({ args0 -> args0 }))
.sourcePattern(sourcePattern.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointGlobalDeliveryRuleUrlRewriteActionArgs].
*/
@PulumiTagMarker
public class EndpointGlobalDeliveryRuleUrlRewriteActionArgsBuilder internal constructor() {
private var destination: Output? = null
private var preserveUnmatchedPath: Output? = null
private var sourcePattern: Output? = null
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("cvccmvekmouqnfre")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value Whether preserve an unmatched path. Defaults to `true`.
*/
@JvmName("tdgljiireontgwar")
public suspend fun preserveUnmatchedPath(`value`: Output) {
this.preserveUnmatchedPath = value
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("aracgwuhsasfcors")
public suspend fun sourcePattern(`value`: Output) {
this.sourcePattern = value
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("ufeedqqkntcwbprq")
public suspend fun destination(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param value Whether preserve an unmatched path. Defaults to `true`.
*/
@JvmName("begnniykialqvciw")
public suspend fun preserveUnmatchedPath(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preserveUnmatchedPath = mapped
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("yihtaaghynhjusni")
public suspend fun sourcePattern(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourcePattern = mapped
}
internal fun build(): EndpointGlobalDeliveryRuleUrlRewriteActionArgs =
EndpointGlobalDeliveryRuleUrlRewriteActionArgs(
destination = destination ?: throw PulumiNullFieldException("destination"),
preserveUnmatchedPath = preserveUnmatchedPath,
sourcePattern = sourcePattern ?: throw PulumiNullFieldException("sourcePattern"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy