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

com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecObjectConditions.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.storage.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 TransferJobTransferSpecObjectConditions(
    public val excludePrefixes: List? = null,
    public val includePrefixes: List? = null,
    public val lastModifiedBefore: String? = null,
    public val lastModifiedSince: String? = null,
    public val maxTimeElapsedSinceLastModification: String? = null,
    public val minTimeElapsedSinceLastModification: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.TransferJobTransferSpecObjectConditions): TransferJobTransferSpecObjectConditions = TransferJobTransferSpecObjectConditions(
            excludePrefixes = javaType.excludePrefixes().map({ args0 -> args0 }),
            includePrefixes = javaType.includePrefixes().map({ args0 -> args0 }),
            lastModifiedBefore = javaType.lastModifiedBefore().map({ args0 -> args0 }).orElse(null),
            lastModifiedSince = javaType.lastModifiedSince().map({ args0 -> args0 }).orElse(null),
            maxTimeElapsedSinceLastModification = javaType.maxTimeElapsedSinceLastModification().map({ args0 ->
                args0
            }).orElse(null),
            minTimeElapsedSinceLastModification = javaType.minTimeElapsedSinceLastModification().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy