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

com.pulumi.gcp.storage.kotlin.inputs.TransferJobTransferSpecObjectConditionsArgs.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.storage.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.TransferJobTransferSpecObjectConditionsArgs.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 excludePrefixes `exclude_prefixes` must follow the requirements described for `include_prefixes`. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
 * @property includePrefixes If `include_prefixes` is specified, objects that satisfy the object conditions must have names that start with one of the `include_prefixes` and that do not start with any of the `exclude_prefixes`. If `include_prefixes` is not specified, all objects except those that have names starting with one of the `exclude_prefixes` must satisfy the object conditions. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
 * @property lastModifiedBefore If specified, only objects with a "last modification time" before this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property lastModifiedSince If specified, only objects with a "last modification time" on or after this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property maxTimeElapsedSinceLastModification A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 * @property minTimeElapsedSinceLastModification A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 */
public data class TransferJobTransferSpecObjectConditionsArgs(
    public val excludePrefixes: Output>? = null,
    public val includePrefixes: Output>? = null,
    public val lastModifiedBefore: Output? = null,
    public val lastModifiedSince: Output? = null,
    public val maxTimeElapsedSinceLastModification: Output? = null,
    public val minTimeElapsedSinceLastModification: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobTransferSpecObjectConditionsArgs =
        com.pulumi.gcp.storage.inputs.TransferJobTransferSpecObjectConditionsArgs.builder()
            .excludePrefixes(excludePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includePrefixes(includePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .lastModifiedBefore(lastModifiedBefore?.applyValue({ args0 -> args0 }))
            .lastModifiedSince(lastModifiedSince?.applyValue({ args0 -> args0 }))
            .maxTimeElapsedSinceLastModification(
                maxTimeElapsedSinceLastModification?.applyValue({ args0 ->
                    args0
                }),
            )
            .minTimeElapsedSinceLastModification(
                minTimeElapsedSinceLastModification?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [TransferJobTransferSpecObjectConditionsArgs].
 */
@PulumiTagMarker
public class TransferJobTransferSpecObjectConditionsArgsBuilder internal constructor() {
    private var excludePrefixes: Output>? = null

    private var includePrefixes: Output>? = null

    private var lastModifiedBefore: Output? = null

    private var lastModifiedSince: Output? = null

    private var maxTimeElapsedSinceLastModification: Output? = null

    private var minTimeElapsedSinceLastModification: Output? = null

    /**
     * @param value `exclude_prefixes` must follow the requirements described for `include_prefixes`. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("qvccjfajwiexcdkj")
    public suspend fun excludePrefixes(`value`: Output>) {
        this.excludePrefixes = value
    }

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

    /**
     * @param values `exclude_prefixes` must follow the requirements described for `include_prefixes`. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("fwqntaxhugvwaqqr")
    public suspend fun excludePrefixes(values: List>) {
        this.excludePrefixes = Output.all(values)
    }

    /**
     * @param value If `include_prefixes` is specified, objects that satisfy the object conditions must have names that start with one of the `include_prefixes` and that do not start with any of the `exclude_prefixes`. If `include_prefixes` is not specified, all objects except those that have names starting with one of the `exclude_prefixes` must satisfy the object conditions. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("selxgsvpobqumtgj")
    public suspend fun includePrefixes(`value`: Output>) {
        this.includePrefixes = value
    }

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

    /**
     * @param values If `include_prefixes` is specified, objects that satisfy the object conditions must have names that start with one of the `include_prefixes` and that do not start with any of the `exclude_prefixes`. If `include_prefixes` is not specified, all objects except those that have names starting with one of the `exclude_prefixes` must satisfy the object conditions. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("qtihocrcflsehbaa")
    public suspend fun includePrefixes(values: List>) {
        this.includePrefixes = Output.all(values)
    }

    /**
     * @param value If specified, only objects with a "last modification time" before this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("kycyxdrrccqrljee")
    public suspend fun lastModifiedBefore(`value`: Output) {
        this.lastModifiedBefore = value
    }

    /**
     * @param value If specified, only objects with a "last modification time" on or after this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("becsixyjtrmlcyie")
    public suspend fun lastModifiedSince(`value`: Output) {
        this.lastModifiedSince = value
    }

    /**
     * @param value A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
     */
    @JvmName("gcsietmrerheimqs")
    public suspend fun maxTimeElapsedSinceLastModification(`value`: Output) {
        this.maxTimeElapsedSinceLastModification = value
    }

    /**
     * @param value A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
     */
    @JvmName("rmsrsbeaoqiuswqw")
    public suspend fun minTimeElapsedSinceLastModification(`value`: Output) {
        this.minTimeElapsedSinceLastModification = value
    }

    /**
     * @param value `exclude_prefixes` must follow the requirements described for `include_prefixes`. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("yaimocuegoupqhvw")
    public suspend fun excludePrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludePrefixes = mapped
    }

    /**
     * @param values `exclude_prefixes` must follow the requirements described for `include_prefixes`. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("rsbhlkgfpxcrynet")
    public suspend fun excludePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludePrefixes = mapped
    }

    /**
     * @param value If `include_prefixes` is specified, objects that satisfy the object conditions must have names that start with one of the `include_prefixes` and that do not start with any of the `exclude_prefixes`. If `include_prefixes` is not specified, all objects except those that have names starting with one of the `exclude_prefixes` must satisfy the object conditions. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("jmaocogepxjepsjc")
    public suspend fun includePrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includePrefixes = mapped
    }

    /**
     * @param values If `include_prefixes` is specified, objects that satisfy the object conditions must have names that start with one of the `include_prefixes` and that do not start with any of the `exclude_prefixes`. If `include_prefixes` is not specified, all objects except those that have names starting with one of the `exclude_prefixes` must satisfy the object conditions. See [Requirements](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/TransferSpec#ObjectConditions).
     */
    @JvmName("fqidalrlfsmaamin")
    public suspend fun includePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includePrefixes = mapped
    }

    /**
     * @param value If specified, only objects with a "last modification time" before this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("mihhmjipivmdnjqs")
    public suspend fun lastModifiedBefore(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedBefore = mapped
    }

    /**
     * @param value If specified, only objects with a "last modification time" on or after this timestamp and objects that don't have a "last modification time" are transferred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
     */
    @JvmName("gdgbtxxevxdpcxyx")
    public suspend fun lastModifiedSince(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedSince = mapped
    }

    /**
     * @param value A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
     */
    @JvmName("bpeddveivdtiluax")
    public suspend fun maxTimeElapsedSinceLastModification(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxTimeElapsedSinceLastModification = mapped
    }

    /**
     * @param value A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
     */
    @JvmName("bdwdixcwomlofsgf")
    public suspend fun minTimeElapsedSinceLastModification(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minTimeElapsedSinceLastModification = mapped
    }

    internal fun build(): TransferJobTransferSpecObjectConditionsArgs =
        TransferJobTransferSpecObjectConditionsArgs(
            excludePrefixes = excludePrefixes,
            includePrefixes = includePrefixes,
            lastModifiedBefore = lastModifiedBefore,
            lastModifiedSince = lastModifiedSince,
            maxTimeElapsedSinceLastModification = maxTimeElapsedSinceLastModification,
            minTimeElapsedSinceLastModification = minTimeElapsedSinceLastModification,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy