com.pulumi.cloudflare.kotlin.inputs.PagesProjectBuildConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.PagesProjectBuildConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property buildCaching Enable build caching for the project.
* @property buildCommand Command used to build project.
* @property destinationDir Output directory of the build.
* @property rootDir Your project's root directory, where Cloudflare runs the build command. If your site is not in a subdirectory, leave this path value empty.
* @property webAnalyticsTag The classifying tag for analytics.
* @property webAnalyticsToken The auth token for analytics.
*/
public data class PagesProjectBuildConfigArgs(
public val buildCaching: Output? = null,
public val buildCommand: Output? = null,
public val destinationDir: Output? = null,
public val rootDir: Output? = null,
public val webAnalyticsTag: Output? = null,
public val webAnalyticsToken: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.PagesProjectBuildConfigArgs =
com.pulumi.cloudflare.inputs.PagesProjectBuildConfigArgs.builder()
.buildCaching(buildCaching?.applyValue({ args0 -> args0 }))
.buildCommand(buildCommand?.applyValue({ args0 -> args0 }))
.destinationDir(destinationDir?.applyValue({ args0 -> args0 }))
.rootDir(rootDir?.applyValue({ args0 -> args0 }))
.webAnalyticsTag(webAnalyticsTag?.applyValue({ args0 -> args0 }))
.webAnalyticsToken(webAnalyticsToken?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PagesProjectBuildConfigArgs].
*/
@PulumiTagMarker
public class PagesProjectBuildConfigArgsBuilder internal constructor() {
private var buildCaching: Output? = null
private var buildCommand: Output? = null
private var destinationDir: Output? = null
private var rootDir: Output? = null
private var webAnalyticsTag: Output? = null
private var webAnalyticsToken: Output? = null
/**
* @param value Enable build caching for the project.
*/
@JvmName("lwaytkbphpgbeggi")
public suspend fun buildCaching(`value`: Output) {
this.buildCaching = value
}
/**
* @param value Command used to build project.
*/
@JvmName("vkvdsiivrnyovyhj")
public suspend fun buildCommand(`value`: Output) {
this.buildCommand = value
}
/**
* @param value Output directory of the build.
*/
@JvmName("oypmyqoqamjypabt")
public suspend fun destinationDir(`value`: Output) {
this.destinationDir = value
}
/**
* @param value Your project's root directory, where Cloudflare runs the build command. If your site is not in a subdirectory, leave this path value empty.
*/
@JvmName("myhcgxwgpmlyvtat")
public suspend fun rootDir(`value`: Output) {
this.rootDir = value
}
/**
* @param value The classifying tag for analytics.
*/
@JvmName("brrvonviamqsbbbt")
public suspend fun webAnalyticsTag(`value`: Output) {
this.webAnalyticsTag = value
}
/**
* @param value The auth token for analytics.
*/
@JvmName("cxsuqspenhibiplx")
public suspend fun webAnalyticsToken(`value`: Output) {
this.webAnalyticsToken = value
}
/**
* @param value Enable build caching for the project.
*/
@JvmName("cxmvudyweqblnihp")
public suspend fun buildCaching(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.buildCaching = mapped
}
/**
* @param value Command used to build project.
*/
@JvmName("pjnbxsipbiwswhty")
public suspend fun buildCommand(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.buildCommand = mapped
}
/**
* @param value Output directory of the build.
*/
@JvmName("wfttoialeywnrwki")
public suspend fun destinationDir(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destinationDir = mapped
}
/**
* @param value Your project's root directory, where Cloudflare runs the build command. If your site is not in a subdirectory, leave this path value empty.
*/
@JvmName("quwcpwdpaqveqyme")
public suspend fun rootDir(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rootDir = mapped
}
/**
* @param value The classifying tag for analytics.
*/
@JvmName("ouibwmnoqkjjxrnv")
public suspend fun webAnalyticsTag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webAnalyticsTag = mapped
}
/**
* @param value The auth token for analytics.
*/
@JvmName("xtbnxxlonywtvtco")
public suspend fun webAnalyticsToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webAnalyticsToken = mapped
}
internal fun build(): PagesProjectBuildConfigArgs = PagesProjectBuildConfigArgs(
buildCaching = buildCaching,
buildCommand = buildCommand,
destinationDir = destinationDir,
rootDir = rootDir,
webAnalyticsTag = webAnalyticsTag,
webAnalyticsToken = webAnalyticsToken,
)
}