com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildArtifactsMavenArtifactArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudbuild.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsMavenArtifactArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property artifactId Maven artifactId value used when uploading the artifact to Artifact Registry.
* @property groupId Maven groupId value used when uploading the artifact to Artifact Registry.
* @property path Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
* @property repository Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
* @property version Maven version value used when uploading the artifact to Artifact Registry.
*/
public data class TriggerBuildArtifactsMavenArtifactArgs(
public val artifactId: Output? = null,
public val groupId: Output? = null,
public val path: Output? = null,
public val repository: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsMavenArtifactArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsMavenArtifactArgs.builder()
.artifactId(artifactId?.applyValue({ args0 -> args0 }))
.groupId(groupId?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.repository(repository?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerBuildArtifactsMavenArtifactArgs].
*/
@PulumiTagMarker
public class TriggerBuildArtifactsMavenArtifactArgsBuilder internal constructor() {
private var artifactId: Output? = null
private var groupId: Output? = null
private var path: Output? = null
private var repository: Output? = null
private var version: Output? = null
/**
* @param value Maven artifactId value used when uploading the artifact to Artifact Registry.
*/
@JvmName("rdvytcvtgvrlhwci")
public suspend fun artifactId(`value`: Output) {
this.artifactId = value
}
/**
* @param value Maven groupId value used when uploading the artifact to Artifact Registry.
*/
@JvmName("tnxjcekbotmgnurf")
public suspend fun groupId(`value`: Output) {
this.groupId = value
}
/**
* @param value Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
*/
@JvmName("pmbguruxtvuuswin")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
*/
@JvmName("cumgmjsqcuafqnho")
public suspend fun repository(`value`: Output) {
this.repository = value
}
/**
* @param value Maven version value used when uploading the artifact to Artifact Registry.
*/
@JvmName("sodletaljnlthwis")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Maven artifactId value used when uploading the artifact to Artifact Registry.
*/
@JvmName("earfdackjwqodpkm")
public suspend fun artifactId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.artifactId = mapped
}
/**
* @param value Maven groupId value used when uploading the artifact to Artifact Registry.
*/
@JvmName("lftnslvdrbbeqbdx")
public suspend fun groupId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupId = mapped
}
/**
* @param value Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
*/
@JvmName("hkckrvpprirfmihc")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
* Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
*/
@JvmName("rsgeaokhgwdajemi")
public suspend fun repository(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repository = mapped
}
/**
* @param value Maven version value used when uploading the artifact to Artifact Registry.
*/
@JvmName("rfuhgxhkctvqlpvl")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): TriggerBuildArtifactsMavenArtifactArgs =
TriggerBuildArtifactsMavenArtifactArgs(
artifactId = artifactId,
groupId = groupId,
path = path,
repository = repository,
version = version,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy