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

com.pulumi.googlenative.vmmigration.v1.kotlin.TargetProjectArgs.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.vmmigration.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.vmmigration.v1.TargetProjectArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.
 * Auto-naming is currently not supported for this resource.
 * @property description The target project's description.
 * @property location
 * @property project The target project ID (number) or project name.
 * @property requestId A 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. The server will guarantee that for at least 60 minutes since the first request. 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).
 * @property targetProjectId Required. The target_project identifier.
 */
public data class TargetProjectArgs(
    public val description: Output? = null,
    public val location: Output? = null,
    public val project: Output? = null,
    public val requestId: Output? = null,
    public val targetProjectId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.vmmigration.v1.TargetProjectArgs =
        com.pulumi.googlenative.vmmigration.v1.TargetProjectArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 }))
            .targetProjectId(targetProjectId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TargetProjectArgs].
 */
@PulumiTagMarker
public class TargetProjectArgsBuilder internal constructor() {
    private var description: Output? = null

    private var location: Output? = null

    private var project: Output? = null

    private var requestId: Output? = null

    private var targetProjectId: Output? = null

    /**
     * @param value The target project's description.
     */
    @JvmName("ujmlwldwxpkuckxi")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

    /**
     * @param value The target project ID (number) or project name.
     */
    @JvmName("pollxyohqrjnhldc")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A 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. The server will guarantee that for at least 60 minutes since the first request. 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).
     */
    @JvmName("ddswqpjcxtbhqblj")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value Required. The target_project identifier.
     */
    @JvmName("eoloshawrhkubmfe")
    public suspend fun targetProjectId(`value`: Output) {
        this.targetProjectId = value
    }

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

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

    /**
     * @param value The target project ID (number) or project name.
     */
    @JvmName("rxddjanueqfrajyk")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value A 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. The server will guarantee that for at least 60 minutes since the first request. 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).
     */
    @JvmName("awjjqoooqmihghre")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    /**
     * @param value Required. The target_project identifier.
     */
    @JvmName("krielulimtnvysrm")
    public suspend fun targetProjectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetProjectId = mapped
    }

    internal fun build(): TargetProjectArgs = TargetProjectArgs(
        description = description,
        location = location,
        project = project,
        requestId = requestId,
        targetProjectId = targetProjectId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy