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

com.pulumi.azurenative.appplatform.kotlin.inputs.SourceUploadedUserSourceInfoArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.SourceUploadedUserSourceInfoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Uploaded Java source code binary for a deployment
 * @property artifactSelector Selector for the artifact to be used for the deployment for multi-module projects. This should be
 * the relative path to the target module/project.
 * @property relativePath Relative path of the storage which stores the source
 * @property runtimeVersion Runtime version of the source file
 * @property type Type of the source uploaded
 * Expected value is 'Source'.
 * @property version Version of the source
 */
public data class SourceUploadedUserSourceInfoArgs(
    public val artifactSelector: Output? = null,
    public val relativePath: Output? = null,
    public val runtimeVersion: Output? = null,
    public val type: Output,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.SourceUploadedUserSourceInfoArgs = com.pulumi.azurenative.appplatform.inputs.SourceUploadedUserSourceInfoArgs.builder()
        .artifactSelector(artifactSelector?.applyValue({ args0 -> args0 }))
        .relativePath(relativePath?.applyValue({ args0 -> args0 }))
        .runtimeVersion(runtimeVersion?.applyValue({ args0 -> args0 }))
        .type(type.applyValue({ args0 -> args0 }))
        .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SourceUploadedUserSourceInfoArgs].
 */
@PulumiTagMarker
public class SourceUploadedUserSourceInfoArgsBuilder internal constructor() {
    private var artifactSelector: Output? = null

    private var relativePath: Output? = null

    private var runtimeVersion: Output? = null

    private var type: Output? = null

    private var version: Output? = null

    /**
     * @param value Selector for the artifact to be used for the deployment for multi-module projects. This should be
     * the relative path to the target module/project.
     */
    @JvmName("ogfgchlydmcrikjy")
    public suspend fun artifactSelector(`value`: Output) {
        this.artifactSelector = value
    }

    /**
     * @param value Relative path of the storage which stores the source
     */
    @JvmName("sgsykggfcjwgnxgc")
    public suspend fun relativePath(`value`: Output) {
        this.relativePath = value
    }

    /**
     * @param value Runtime version of the source file
     */
    @JvmName("neekybqqdgwscsmf")
    public suspend fun runtimeVersion(`value`: Output) {
        this.runtimeVersion = value
    }

    /**
     * @param value Type of the source uploaded
     * Expected value is 'Source'.
     */
    @JvmName("isbtosdyfdvxvdet")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Version of the source
     */
    @JvmName("omohjytbojsltrwg")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Selector for the artifact to be used for the deployment for multi-module projects. This should be
     * the relative path to the target module/project.
     */
    @JvmName("yenqxgikwwujlfsq")
    public suspend fun artifactSelector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.artifactSelector = mapped
    }

    /**
     * @param value Relative path of the storage which stores the source
     */
    @JvmName("ylydjjnndxmijowk")
    public suspend fun relativePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relativePath = mapped
    }

    /**
     * @param value Runtime version of the source file
     */
    @JvmName("ddpyblqlltdqqskk")
    public suspend fun runtimeVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeVersion = mapped
    }

    /**
     * @param value Type of the source uploaded
     * Expected value is 'Source'.
     */
    @JvmName("ajnprhfqorpndsae")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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

    internal fun build(): SourceUploadedUserSourceInfoArgs = SourceUploadedUserSourceInfoArgs(
        artifactSelector = artifactSelector,
        relativePath = relativePath,
        runtimeVersion = runtimeVersion,
        type = type ?: throw PulumiNullFieldException("type"),
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy