com.pulumi.gcp.storage.kotlin.inputs.BucketWebsiteArgs.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.storage.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.BucketWebsiteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property mainPageSuffix Behaves as the bucket's directory index where
* missing objects are treated as potential directories.
* @property notFoundPage The custom object to return when a requested
* resource is not found.
*/
public data class BucketWebsiteArgs(
public val mainPageSuffix: Output? = null,
public val notFoundPage: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.BucketWebsiteArgs =
com.pulumi.gcp.storage.inputs.BucketWebsiteArgs.builder()
.mainPageSuffix(mainPageSuffix?.applyValue({ args0 -> args0 }))
.notFoundPage(notFoundPage?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketWebsiteArgs].
*/
@PulumiTagMarker
public class BucketWebsiteArgsBuilder internal constructor() {
private var mainPageSuffix: Output? = null
private var notFoundPage: Output? = null
/**
* @param value Behaves as the bucket's directory index where
* missing objects are treated as potential directories.
*/
@JvmName("legnnlmlugelpkyt")
public suspend fun mainPageSuffix(`value`: Output) {
this.mainPageSuffix = value
}
/**
* @param value The custom object to return when a requested
* resource is not found.
*/
@JvmName("himlxjbjcnrnbagl")
public suspend fun notFoundPage(`value`: Output) {
this.notFoundPage = value
}
/**
* @param value Behaves as the bucket's directory index where
* missing objects are treated as potential directories.
*/
@JvmName("sqkmtxcsaylvtxou")
public suspend fun mainPageSuffix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mainPageSuffix = mapped
}
/**
* @param value The custom object to return when a requested
* resource is not found.
*/
@JvmName("wvcbmntwhmwpefvs")
public suspend fun notFoundPage(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notFoundPage = mapped
}
internal fun build(): BucketWebsiteArgs = BucketWebsiteArgs(
mainPageSuffix = mainPageSuffix,
notFoundPage = notFoundPage,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy