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

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

/**
 *
 * @property newerThan Match versions newer than a duration.
 * @property olderThan Match versions older than a duration.
 * @property packageNamePrefixes Match versions by package prefix. Applied on any prefix match.
 * @property tagPrefixes Match versions by tag prefix. Applied on any prefix match.
 * @property tagState Match versions by tag status.
 * Default value is `ANY`.
 * Possible values are: `TAGGED`, `UNTAGGED`, `ANY`.
 * @property versionNamePrefixes Match versions by version name prefix. Applied on any prefix match.
 */
public data class RepositoryCleanupPolicyConditionArgs(
    public val newerThan: Output? = null,
    public val olderThan: Output? = null,
    public val packageNamePrefixes: Output>? = null,
    public val tagPrefixes: Output>? = null,
    public val tagState: Output? = null,
    public val versionNamePrefixes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyConditionArgs = com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyConditionArgs.builder()
        .newerThan(newerThan?.applyValue({ args0 -> args0 }))
        .olderThan(olderThan?.applyValue({ args0 -> args0 }))
        .packageNamePrefixes(packageNamePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .tagPrefixes(tagPrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .tagState(tagState?.applyValue({ args0 -> args0 }))
        .versionNamePrefixes(
            versionNamePrefixes?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        ).build()
}

/**
 * Builder for [RepositoryCleanupPolicyConditionArgs].
 */
@PulumiTagMarker
public class RepositoryCleanupPolicyConditionArgsBuilder internal constructor() {
    private var newerThan: Output? = null

    private var olderThan: Output? = null

    private var packageNamePrefixes: Output>? = null

    private var tagPrefixes: Output>? = null

    private var tagState: Output? = null

    private var versionNamePrefixes: Output>? = null

    /**
     * @param value Match versions newer than a duration.
     */
    @JvmName("mcxglsmmcagbqnyw")
    public suspend fun newerThan(`value`: Output) {
        this.newerThan = value
    }

    /**
     * @param value Match versions older than a duration.
     */
    @JvmName("voggecauahdhignv")
    public suspend fun olderThan(`value`: Output) {
        this.olderThan = value
    }

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

    @JvmName("cxiefxswdigukwyc")
    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("ubockujxowgmyxpg")
    public suspend fun packageNamePrefixes(values: List>) {
        this.packageNamePrefixes = Output.all(values)
    }

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

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

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

    /**
     * @param value Match versions by tag status.
     * Default value is `ANY`.
     * Possible values are: `TAGGED`, `UNTAGGED`, `ANY`.
     */
    @JvmName("iuwkocxgkpmstxkb")
    public suspend fun tagState(`value`: Output) {
        this.tagState = value
    }

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

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

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

    /**
     * @param value Match versions newer than a duration.
     */
    @JvmName("dmrgavwwyjxnmqal")
    public suspend fun newerThan(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.newerThan = mapped
    }

    /**
     * @param value Match versions older than a duration.
     */
    @JvmName("ppcbsfampfsxrlbq")
    public suspend fun olderThan(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.olderThan = mapped
    }

    /**
     * @param value Match versions by package prefix. Applied on any prefix match.
     */
    @JvmName("fbgusscrjgbmbenv")
    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("vproirnflnprehre")
    public suspend fun packageNamePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.packageNamePrefixes = mapped
    }

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

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

    /**
     * @param value Match versions by tag status.
     * Default value is `ANY`.
     * Possible values are: `TAGGED`, `UNTAGGED`, `ANY`.
     */
    @JvmName("xlocpxqpgmtpbyxd")
    public suspend fun tagState(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagState = mapped
    }

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

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

    internal fun build(): RepositoryCleanupPolicyConditionArgs = RepositoryCleanupPolicyConditionArgs(
        newerThan = newerThan,
        olderThan = olderThan,
        packageNamePrefixes = packageNamePrefixes,
        tagPrefixes = tagPrefixes,
        tagState = tagState,
        versionNamePrefixes = versionNamePrefixes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy