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

com.pulumi.googlenative.vmmigration.v1.kotlin.SourceArgs.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.SourceArgs.builder
import com.pulumi.googlenative.vmmigration.v1.kotlin.inputs.AwsSourceDetailsArgs
import com.pulumi.googlenative.vmmigration.v1.kotlin.inputs.AwsSourceDetailsArgsBuilder
import com.pulumi.googlenative.vmmigration.v1.kotlin.inputs.VmwareSourceDetailsArgs
import com.pulumi.googlenative.vmmigration.v1.kotlin.inputs.VmwareSourceDetailsArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Creates a new Source in a given project and location.
 * Auto-naming is currently not supported for this resource.
 * @property aws AWS type source details.
 * @property description User-provided description of the source.
 * @property labels The labels of the source.
 * @property location
 * @property project
 * @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 sourceId Required. The source identifier.
 * @property vmware Vmware type source details.
 */
public data class SourceArgs(
    public val aws: Output? = null,
    public val description: Output? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val project: Output? = null,
    public val requestId: Output? = null,
    public val sourceId: Output? = null,
    public val vmware: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.vmmigration.v1.SourceArgs =
        com.pulumi.googlenative.vmmigration.v1.SourceArgs.builder()
            .aws(aws?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 }))
            .sourceId(sourceId?.applyValue({ args0 -> args0 }))
            .vmware(vmware?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [SourceArgs].
 */
@PulumiTagMarker
public class SourceArgsBuilder internal constructor() {
    private var aws: Output? = null

    private var description: Output? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var project: Output? = null

    private var requestId: Output? = null

    private var sourceId: Output? = null

    private var vmware: Output? = null

    /**
     * @param value AWS type source details.
     */
    @JvmName("inowvdysgtfvojli")
    public suspend fun aws(`value`: Output) {
        this.aws = value
    }

    /**
     * @param value User-provided description of the source.
     */
    @JvmName("holsbnqpuatrqvni")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The labels of the source.
     */
    @JvmName("xidjfvfjkywvgvbe")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param value
     */
    @JvmName("quwfbpdmytjprmep")
    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("iyfywrftdimodtsw")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value Required. The source identifier.
     */
    @JvmName("mhyrrkfihmfvbgfv")
    public suspend fun sourceId(`value`: Output) {
        this.sourceId = value
    }

    /**
     * @param value Vmware type source details.
     */
    @JvmName("fdhcbffjrjuwaodf")
    public suspend fun vmware(`value`: Output) {
        this.vmware = value
    }

    /**
     * @param value AWS type source details.
     */
    @JvmName("lxniodsoacdhnbmq")
    public suspend fun aws(`value`: AwsSourceDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aws = mapped
    }

    /**
     * @param argument AWS type source details.
     */
    @JvmName("wgfiwritlqyufudy")
    public suspend fun aws(argument: suspend AwsSourceDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = AwsSourceDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.aws = mapped
    }

    /**
     * @param value User-provided description of the source.
     */
    @JvmName("xfrkepxkebstoidp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The labels of the source.
     */
    @JvmName("nyknvgxfrtbyxabe")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values The labels of the source.
     */
    @JvmName("mpqsrdcbbxyxcxpw")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

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

    /**
     * @param value
     */
    @JvmName("rankfdbvedqcqvff")
    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("dygfubovupivoaeq")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

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

    /**
     * @param value Vmware type source details.
     */
    @JvmName("syscgfmuhymxqkcx")
    public suspend fun vmware(`value`: VmwareSourceDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmware = mapped
    }

    /**
     * @param argument Vmware type source details.
     */
    @JvmName("joiowkshgyiqjnnv")
    public suspend fun vmware(argument: suspend VmwareSourceDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = VmwareSourceDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vmware = mapped
    }

    internal fun build(): SourceArgs = SourceArgs(
        aws = aws,
        description = description,
        labels = labels,
        location = location,
        project = project,
        requestId = requestId,
        sourceId = sourceId,
        vmware = vmware,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy