com.pulumi.gcp.artifactregistry.kotlin.inputs.RepositoryCleanupPolicyConditionArgs.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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy