All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.dns.kotlin.inputs.PolicyNetworkArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.PolicyNetworkArgs.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 networkUrl The id or fully qualified URL of the VPC network to forward queries to.
 * This should be formatted like `projects/{project}/global/networks/{network}` or
 * `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`
 */
public data class PolicyNetworkArgs(
    public val networkUrl: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.PolicyNetworkArgs =
        com.pulumi.gcp.dns.inputs.PolicyNetworkArgs.builder()
            .networkUrl(networkUrl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyNetworkArgs].
 */
@PulumiTagMarker
public class PolicyNetworkArgsBuilder internal constructor() {
    private var networkUrl: Output? = null

    /**
     * @param value The id or fully qualified URL of the VPC network to forward queries to.
     * This should be formatted like `projects/{project}/global/networks/{network}` or
     * `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`
     */
    @JvmName("xlbkuosrejaqeeig")
    public suspend fun networkUrl(`value`: Output) {
        this.networkUrl = value
    }

    /**
     * @param value The id or fully qualified URL of the VPC network to forward queries to.
     * This should be formatted like `projects/{project}/global/networks/{network}` or
     * `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`
     */
    @JvmName("bwxmmulixeeavkno")
    public suspend fun networkUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkUrl = mapped
    }

    internal fun build(): PolicyNetworkArgs = PolicyNetworkArgs(
        networkUrl = networkUrl ?: throw PulumiNullFieldException("networkUrl"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy