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

com.pulumi.gcp.artifactregistry.kotlin.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs.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.10.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.RepositoryCleanupPolicyMostRecentVersionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property keepCount Minimum number of versions to keep.
 * @property packageNamePrefixes Match versions by package prefix. Applied on any prefix match.
 */
public data class RepositoryCleanupPolicyMostRecentVersionsArgs(
    public val keepCount: Output? = null,
    public val packageNamePrefixes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs =
        com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs.builder()
            .keepCount(keepCount?.applyValue({ args0 -> args0 }))
            .packageNamePrefixes(
                packageNamePrefixes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [RepositoryCleanupPolicyMostRecentVersionsArgs].
 */
@PulumiTagMarker
public class RepositoryCleanupPolicyMostRecentVersionsArgsBuilder internal constructor() {
    private var keepCount: Output? = null

    private var packageNamePrefixes: Output>? = null

    /**
     * @param value Minimum number of versions to keep.
     */
    @JvmName("nhbmerdpknqkdftw")
    public suspend fun keepCount(`value`: Output) {
        this.keepCount = value
    }

    /**
     * @param value Match versions by package prefix. Applied on any prefix match.
     */
    @JvmName("wybixsepiiwnobtw")
    public suspend fun packageNamePrefixes(`value`: Output>) {
        this.packageNamePrefixes = value
    }

    @JvmName("bhtfjnwqjwberhik")
    public suspend fun packageNamePrefixes(vararg values: Output) {
        this.packageNamePrefixes = Output.all(values.asList())
    }

    /**
     * @param values Match versions by package prefix. Applied on any prefix match.
     */
    @JvmName("yxwdkhayogijkydj")
    public suspend fun packageNamePrefixes(values: List>) {
        this.packageNamePrefixes = Output.all(values)
    }

    /**
     * @param value Minimum number of versions to keep.
     */
    @JvmName("uviwnklxbrnxpges")
    public suspend fun keepCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keepCount = mapped
    }

    /**
     * @param value Match versions by package prefix. Applied on any prefix match.
     */
    @JvmName("rakwrlmrornffajl")
    public suspend fun packageNamePrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.packageNamePrefixes = mapped
    }

    /**
     * @param values Match versions by package prefix. Applied on any prefix match.
     */
    @JvmName("oysfvpvydwxsqkuj")
    public suspend fun packageNamePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.packageNamePrefixes = mapped
    }

    internal fun build(): RepositoryCleanupPolicyMostRecentVersionsArgs =
        RepositoryCleanupPolicyMostRecentVersionsArgs(
            keepCount = keepCount,
            packageNamePrefixes = packageNamePrefixes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy