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

com.pulumi.gcp.networkmanagement.kotlin.inputs.ConnectivityTestDestinationArgs.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.networkmanagement.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkmanagement.inputs.ConnectivityTestDestinationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property instance A Compute Engine instance URI.
 * @property ipAddress The IP address of the endpoint, which can be an external or
 * internal IP. An IPv6 address is only allowed when the test's
 * destination is a global load balancer VIP.
 * @property network A Compute Engine network URI.
 * @property port The IP protocol port of the endpoint. Only applicable when
 * protocol is TCP or UDP.
 * @property projectId Project ID where the endpoint is located. The Project ID can be
 * derived from the URI if you provide a VM instance or network URI.
 * The following are two cases where you must provide the project ID:
 * 1. Only the IP address is specified, and the IP address is within
 * a GCP project. 2. When you are using Shared VPC and the IP address
 * that you provide is from the service project. In this case, the
 * network that the IP address resides in is defined in the host
 * project.
 * - - -
 */
public data class ConnectivityTestDestinationArgs(
    public val instance: Output? = null,
    public val ipAddress: Output? = null,
    public val network: Output? = null,
    public val port: Output? = null,
    public val projectId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkmanagement.inputs.ConnectivityTestDestinationArgs =
        com.pulumi.gcp.networkmanagement.inputs.ConnectivityTestDestinationArgs.builder()
            .instance(instance?.applyValue({ args0 -> args0 }))
            .ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .projectId(projectId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectivityTestDestinationArgs].
 */
@PulumiTagMarker
public class ConnectivityTestDestinationArgsBuilder internal constructor() {
    private var instance: Output? = null

    private var ipAddress: Output? = null

    private var network: Output? = null

    private var port: Output? = null

    private var projectId: Output? = null

    /**
     * @param value A Compute Engine instance URI.
     */
    @JvmName("rgmiijugtxsptvck")
    public suspend fun instance(`value`: Output) {
        this.instance = value
    }

    /**
     * @param value The IP address of the endpoint, which can be an external or
     * internal IP. An IPv6 address is only allowed when the test's
     * destination is a global load balancer VIP.
     */
    @JvmName("iuksesjlqqpbkley")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value A Compute Engine network URI.
     */
    @JvmName("nnuwivixfctvxuck")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The IP protocol port of the endpoint. Only applicable when
     * protocol is TCP or UDP.
     */
    @JvmName("bagcwteuukqsnnyx")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Project ID where the endpoint is located. The Project ID can be
     * derived from the URI if you provide a VM instance or network URI.
     * The following are two cases where you must provide the project ID:
     * 1. Only the IP address is specified, and the IP address is within
     * a GCP project. 2. When you are using Shared VPC and the IP address
     * that you provide is from the service project. In this case, the
     * network that the IP address resides in is defined in the host
     * project.
     * - - -
     */
    @JvmName("spqnghsqvcwqutwu")
    public suspend fun projectId(`value`: Output) {
        this.projectId = value
    }

    /**
     * @param value A Compute Engine instance URI.
     */
    @JvmName("bfrnrohvjrfkwyde")
    public suspend fun instance(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instance = mapped
    }

    /**
     * @param value The IP address of the endpoint, which can be an external or
     * internal IP. An IPv6 address is only allowed when the test's
     * destination is a global load balancer VIP.
     */
    @JvmName("uuobwioctongronh")
    public suspend fun ipAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    /**
     * @param value A Compute Engine network URI.
     */
    @JvmName("oclmogymdsrfdrvs")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The IP protocol port of the endpoint. Only applicable when
     * protocol is TCP or UDP.
     */
    @JvmName("fprkncpkbelfhpup")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value Project ID where the endpoint is located. The Project ID can be
     * derived from the URI if you provide a VM instance or network URI.
     * The following are two cases where you must provide the project ID:
     * 1. Only the IP address is specified, and the IP address is within
     * a GCP project. 2. When you are using Shared VPC and the IP address
     * that you provide is from the service project. In this case, the
     * network that the IP address resides in is defined in the host
     * project.
     * - - -
     */
    @JvmName("iljtnktbipcmxfkw")
    public suspend fun projectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectId = mapped
    }

    internal fun build(): ConnectivityTestDestinationArgs = ConnectivityTestDestinationArgs(
        instance = instance,
        ipAddress = ipAddress,
        network = network,
        port = port,
        projectId = projectId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy