com.pulumi.cloudflare.kotlin.Web3HostnameArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.Web3HostnameArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages Web3 hostnames for IPFS and Ethereum gateways.
* @property description An optional description of the hostname.
* @property dnslink DNSLink value used if the target is ipfs.
* @property name The hostname that will point to the target gateway via CNAME.
* @property target Target gateway of the hostname.
* @property zoneId The zone identifier to target for the resource.
*/
public data class Web3HostnameArgs(
public val description: Output? = null,
public val dnslink: Output? = null,
public val name: Output? = null,
public val target: Output? = null,
public val zoneId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.Web3HostnameArgs =
com.pulumi.cloudflare.Web3HostnameArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.dnslink(dnslink?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.target(target?.applyValue({ args0 -> args0 }))
.zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [Web3HostnameArgs].
*/
@PulumiTagMarker
public class Web3HostnameArgsBuilder internal constructor() {
private var description: Output? = null
private var dnslink: Output? = null
private var name: Output? = null
private var target: Output? = null
private var zoneId: Output? = null
/**
* @param value An optional description of the hostname.
*/
@JvmName("fgkmkkcloyalewkh")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value DNSLink value used if the target is ipfs.
*/
@JvmName("jvrxcfilabkywrtc")
public suspend fun dnslink(`value`: Output) {
this.dnslink = value
}
/**
* @param value The hostname that will point to the target gateway via CNAME.
*/
@JvmName("ufbfkvikvqhytegb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Target gateway of the hostname.
*/
@JvmName("wbsbpsxyxtwjvpcl")
public suspend fun target(`value`: Output) {
this.target = value
}
/**
* @param value The zone identifier to target for the resource.
*/
@JvmName("wfukiloafhuopves")
public suspend fun zoneId(`value`: Output) {
this.zoneId = value
}
/**
* @param value An optional description of the hostname.
*/
@JvmName("qukkintseubqauiy")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value DNSLink value used if the target is ipfs.
*/
@JvmName("vuvdrgcgpmkmliik")
public suspend fun dnslink(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnslink = mapped
}
/**
* @param value The hostname that will point to the target gateway via CNAME.
*/
@JvmName("yeufsmrsykjjnksa")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Target gateway of the hostname.
*/
@JvmName("xwwuesgsrlfntsaq")
public suspend fun target(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.target = mapped
}
/**
* @param value The zone identifier to target for the resource.
*/
@JvmName("irgiauhytxgdstqa")
public suspend fun zoneId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zoneId = mapped
}
internal fun build(): Web3HostnameArgs = Web3HostnameArgs(
description = description,
dnslink = dnslink,
name = name,
target = target,
zoneId = zoneId,
)
}