com.pulumi.gcp.dns.kotlin.inputs.PolicyAlternativeNameServerConfigTargetNameServerArgs.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.dns.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.PolicyAlternativeNameServerConfigTargetNameServerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property forwardingPath Forwarding path for this TargetNameServer. If unset or `default` Cloud DNS will make forwarding
* decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
* to the Internet. When set to `private`, Cloud DNS will always send queries through VPC for this target
* Possible values are: `default`, `private`.
* @property ipv4Address IPv4 address to forward to.
*/
public data class PolicyAlternativeNameServerConfigTargetNameServerArgs(
public val forwardingPath: Output? = null,
public val ipv4Address: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dns.inputs.PolicyAlternativeNameServerConfigTargetNameServerArgs =
com.pulumi.gcp.dns.inputs.PolicyAlternativeNameServerConfigTargetNameServerArgs.builder()
.forwardingPath(forwardingPath?.applyValue({ args0 -> args0 }))
.ipv4Address(ipv4Address.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyAlternativeNameServerConfigTargetNameServerArgs].
*/
@PulumiTagMarker
public class PolicyAlternativeNameServerConfigTargetNameServerArgsBuilder internal constructor() {
private var forwardingPath: Output? = null
private var ipv4Address: Output? = null
/**
* @param value Forwarding path for this TargetNameServer. If unset or `default` Cloud DNS will make forwarding
* decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
* to the Internet. When set to `private`, Cloud DNS will always send queries through VPC for this target
* Possible values are: `default`, `private`.
*/
@JvmName("hfovqrftjvpjthym")
public suspend fun forwardingPath(`value`: Output) {
this.forwardingPath = value
}
/**
* @param value IPv4 address to forward to.
*/
@JvmName("drdjjrivhqsdlpxy")
public suspend fun ipv4Address(`value`: Output) {
this.ipv4Address = value
}
/**
* @param value Forwarding path for this TargetNameServer. If unset or `default` Cloud DNS will make forwarding
* decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
* to the Internet. When set to `private`, Cloud DNS will always send queries through VPC for this target
* Possible values are: `default`, `private`.
*/
@JvmName("lxbrrsyapbfsmadp")
public suspend fun forwardingPath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forwardingPath = mapped
}
/**
* @param value IPv4 address to forward to.
*/
@JvmName("gihwjtnkbejkbxqp")
public suspend fun ipv4Address(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipv4Address = mapped
}
internal fun build(): PolicyAlternativeNameServerConfigTargetNameServerArgs =
PolicyAlternativeNameServerConfigTargetNameServerArgs(
forwardingPath = forwardingPath,
ipv4Address = ipv4Address ?: throw PulumiNullFieldException("ipv4Address"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy