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

com.pulumi.gcp.alloydb.kotlin.inputs.ClusterNetworkConfigArgs.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.alloydb.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.ClusterNetworkConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property allocatedIpRange The name of the allocated IP range for the private IP AlloyDB cluster. For example: "google-managed-services-default".
 * If set, the instance IPs for this cluster will be created in the allocated range.
 * @property network The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster.
 * It is specified in the form: "projects/{projectNumber}/global/networks/{network_id}".
 */
public data class ClusterNetworkConfigArgs(
    public val allocatedIpRange: Output? = null,
    public val network: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.ClusterNetworkConfigArgs =
        com.pulumi.gcp.alloydb.inputs.ClusterNetworkConfigArgs.builder()
            .allocatedIpRange(allocatedIpRange?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterNetworkConfigArgs].
 */
@PulumiTagMarker
public class ClusterNetworkConfigArgsBuilder internal constructor() {
    private var allocatedIpRange: Output? = null

    private var network: Output? = null

    /**
     * @param value The name of the allocated IP range for the private IP AlloyDB cluster. For example: "google-managed-services-default".
     * If set, the instance IPs for this cluster will be created in the allocated range.
     */
    @JvmName("uxiniawujbplrayx")
    public suspend fun allocatedIpRange(`value`: Output) {
        this.allocatedIpRange = value
    }

    /**
     * @param value The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster.
     * It is specified in the form: "projects/{projectNumber}/global/networks/{network_id}".
     */
    @JvmName("opddgilvijiscsge")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The name of the allocated IP range for the private IP AlloyDB cluster. For example: "google-managed-services-default".
     * If set, the instance IPs for this cluster will be created in the allocated range.
     */
    @JvmName("bywueqmfoqwwntih")
    public suspend fun allocatedIpRange(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocatedIpRange = mapped
    }

    /**
     * @param value The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster.
     * It is specified in the form: "projects/{projectNumber}/global/networks/{network_id}".
     */
    @JvmName("hlpyqyabjerxgdhw")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    internal fun build(): ClusterNetworkConfigArgs = ClusterNetworkConfigArgs(
        allocatedIpRange = allocatedIpRange,
        network = network,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy