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

com.pulumi.gcp.artifactregistry.kotlin.inputs.RepositoryMavenConfigArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.artifactregistry.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.artifactregistry.inputs.RepositoryMavenConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property allowSnapshotOverwrites The repository with this flag will allow publishing the same
 * snapshot versions.
 * @property versionPolicy Version policy defines the versions that the registry will accept.
 * Default value is `VERSION_POLICY_UNSPECIFIED`.
 * Possible values are: `VERSION_POLICY_UNSPECIFIED`, `RELEASE`, `SNAPSHOT`.
 */
public data class RepositoryMavenConfigArgs(
    public val allowSnapshotOverwrites: Output? = null,
    public val versionPolicy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.RepositoryMavenConfigArgs =
        com.pulumi.gcp.artifactregistry.inputs.RepositoryMavenConfigArgs.builder()
            .allowSnapshotOverwrites(allowSnapshotOverwrites?.applyValue({ args0 -> args0 }))
            .versionPolicy(versionPolicy?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RepositoryMavenConfigArgs].
 */
@PulumiTagMarker
public class RepositoryMavenConfigArgsBuilder internal constructor() {
    private var allowSnapshotOverwrites: Output? = null

    private var versionPolicy: Output? = null

    /**
     * @param value The repository with this flag will allow publishing the same
     * snapshot versions.
     */
    @JvmName("trhlxcwjneltebdv")
    public suspend fun allowSnapshotOverwrites(`value`: Output) {
        this.allowSnapshotOverwrites = value
    }

    /**
     * @param value Version policy defines the versions that the registry will accept.
     * Default value is `VERSION_POLICY_UNSPECIFIED`.
     * Possible values are: `VERSION_POLICY_UNSPECIFIED`, `RELEASE`, `SNAPSHOT`.
     */
    @JvmName("ysamfdbpspqrwvih")
    public suspend fun versionPolicy(`value`: Output) {
        this.versionPolicy = value
    }

    /**
     * @param value The repository with this flag will allow publishing the same
     * snapshot versions.
     */
    @JvmName("olcrqjsgdosnbmlh")
    public suspend fun allowSnapshotOverwrites(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowSnapshotOverwrites = mapped
    }

    /**
     * @param value Version policy defines the versions that the registry will accept.
     * Default value is `VERSION_POLICY_UNSPECIFIED`.
     * Possible values are: `VERSION_POLICY_UNSPECIFIED`, `RELEASE`, `SNAPSHOT`.
     */
    @JvmName("jyiuxuvuftcfsfsk")
    public suspend fun versionPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versionPolicy = mapped
    }

    internal fun build(): RepositoryMavenConfigArgs = RepositoryMavenConfigArgs(
        allowSnapshotOverwrites = allowSnapshotOverwrites,
        versionPolicy = versionPolicy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy