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

com.pulumi.googlenative.compute.v1.kotlin.NetworkAttachmentArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.NetworkAttachmentArgs.builder
import com.pulumi.googlenative.compute.v1.kotlin.enums.NetworkAttachmentConnectionPreference
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.
 * @property connectionPreference
 * @property description An optional description of this resource. Provide this property when you create the resource.
 * @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
 * @property producerAcceptLists Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
 * @property producerRejectLists Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
 * @property project
 * @property region
 * @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
 * @property subnetworks An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
 */
public data class NetworkAttachmentArgs(
    public val connectionPreference: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val producerAcceptLists: Output>? = null,
    public val producerRejectLists: Output>? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val requestId: Output? = null,
    public val subnetworks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.v1.NetworkAttachmentArgs =
        com.pulumi.googlenative.compute.v1.NetworkAttachmentArgs.builder()
            .connectionPreference(
                connectionPreference?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .producerAcceptLists(producerAcceptLists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .producerRejectLists(producerRejectLists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 }))
            .subnetworks(subnetworks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [NetworkAttachmentArgs].
 */
@PulumiTagMarker
public class NetworkAttachmentArgsBuilder internal constructor() {
    private var connectionPreference: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var producerAcceptLists: Output>? = null

    private var producerRejectLists: Output>? = null

    private var project: Output? = null

    private var region: Output? = null

    private var requestId: Output? = null

    private var subnetworks: Output>? = null

    /**
     * @param value
     */
    @JvmName("bgtcyfrgppladwft")
    public suspend fun connectionPreference(`value`: Output) {
        this.connectionPreference = value
    }

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("vftajyecbngajuow")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("pfwwawwkvlvxxmiw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("jqpfodnqapyfhucj")
    public suspend fun producerAcceptLists(`value`: Output>) {
        this.producerAcceptLists = value
    }

    @JvmName("pwnhisxipuwhrnry")
    public suspend fun producerAcceptLists(vararg values: Output) {
        this.producerAcceptLists = Output.all(values.asList())
    }

    /**
     * @param values Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("fpyjugmixuhmdean")
    public suspend fun producerAcceptLists(values: List>) {
        this.producerAcceptLists = Output.all(values)
    }

    /**
     * @param value Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("yryfqgsthglikhpi")
    public suspend fun producerRejectLists(`value`: Output>) {
        this.producerRejectLists = value
    }

    @JvmName("oiiovlixnwyntygi")
    public suspend fun producerRejectLists(vararg values: Output) {
        this.producerRejectLists = Output.all(values.asList())
    }

    /**
     * @param values Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("nsfkkyqisxqbutka")
    public suspend fun producerRejectLists(values: List>) {
        this.producerRejectLists = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("lrqllbpdcwooggah")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value
     */
    @JvmName("qpntftxwbmpjoixb")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
     */
    @JvmName("eexhaaipthlmlyhr")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
     */
    @JvmName("ycdhkacniwmxlogc")
    public suspend fun subnetworks(`value`: Output>) {
        this.subnetworks = value
    }

    @JvmName("emjqardbknkwkyxd")
    public suspend fun subnetworks(vararg values: Output) {
        this.subnetworks = Output.all(values.asList())
    }

    /**
     * @param values An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
     */
    @JvmName("hbcjvbhikgolctdh")
    public suspend fun subnetworks(values: List>) {
        this.subnetworks = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("jeeveeodgmyyhjid")
    public suspend fun connectionPreference(`value`: NetworkAttachmentConnectionPreference?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionPreference = mapped
    }

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("mlljfbsrnlwvdskm")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("ldmqgglorbsagyvh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("mwigxgcpbgblrrxy")
    public suspend fun producerAcceptLists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.producerAcceptLists = mapped
    }

    /**
     * @param values Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("laymuyainwkgjuel")
    public suspend fun producerAcceptLists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.producerAcceptLists = mapped
    }

    /**
     * @param value Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("dvnmlutayyrdgtin")
    public suspend fun producerRejectLists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.producerRejectLists = mapped
    }

    /**
     * @param values Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
     */
    @JvmName("lntevjjwldknftek")
    public suspend fun producerRejectLists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.producerRejectLists = mapped
    }

    /**
     * @param value
     */
    @JvmName("seafowtubaadpggi")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value
     */
    @JvmName("dhnsnqaukhkpvoyr")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
     */
    @JvmName("arfoerwmylkhoxyf")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    /**
     * @param value An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
     */
    @JvmName("ulphwectnalrfrby")
    public suspend fun subnetworks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetworks = mapped
    }

    /**
     * @param values An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
     */
    @JvmName("xlwvbnviohajswxk")
    public suspend fun subnetworks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetworks = mapped
    }

    internal fun build(): NetworkAttachmentArgs = NetworkAttachmentArgs(
        connectionPreference = connectionPreference,
        description = description,
        name = name,
        producerAcceptLists = producerAcceptLists,
        producerRejectLists = producerRejectLists,
        project = project,
        region = region,
        requestId = requestId,
        subnetworks = subnetworks,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy