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

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

/**
 *
 * @property awsS3DataSource An AWS S3 data source. Structure documented below.
 * @property azureBlobStorageDataSource An Azure Blob Storage data source. Structure documented below.
 * @property gcsDataSink A Google Cloud Storage data sink. Structure documented below.
 * @property gcsDataSource A Google Cloud Storage data source. Structure documented below.
 * @property httpDataSource A HTTP URL data source. Structure documented below.
 * @property objectConditions Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' `last_modification_time` do not exclude objects in a data sink. Structure documented below.
 * @property posixDataSink A POSIX data sink. Structure documented below.
 * @property posixDataSource A POSIX filesystem data source. Structure documented below.
 * @property sinkAgentPoolName Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.
 * @property sourceAgentPoolName Specifies the agent pool name associated with the posix data source. When unspecified, the default name is used.
 * @property transferOptions Characteristics of how to treat files from datasource and sink during job. If the option `delete_objects_unique_in_sink` is true, object conditions based on objects' `last_modification_time` are ignored and do not exclude objects in a data source or a data sink. Structure documented below.
 */
public data class TransferJobTransferSpec(
    public val awsS3DataSource: TransferJobTransferSpecAwsS3DataSource? = null,
    public val azureBlobStorageDataSource: TransferJobTransferSpecAzureBlobStorageDataSource? = null,
    public val gcsDataSink: TransferJobTransferSpecGcsDataSink? = null,
    public val gcsDataSource: TransferJobTransferSpecGcsDataSource? = null,
    public val httpDataSource: TransferJobTransferSpecHttpDataSource? = null,
    public val objectConditions: TransferJobTransferSpecObjectConditions? = null,
    public val posixDataSink: TransferJobTransferSpecPosixDataSink? = null,
    public val posixDataSource: TransferJobTransferSpecPosixDataSource? = null,
    public val sinkAgentPoolName: String? = null,
    public val sourceAgentPoolName: String? = null,
    public val transferOptions: TransferJobTransferSpecTransferOptions? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.TransferJobTransferSpec): TransferJobTransferSpec = TransferJobTransferSpec(
            awsS3DataSource = javaType.awsS3DataSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecAwsS3DataSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            azureBlobStorageDataSource = javaType.azureBlobStorageDataSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecAzureBlobStorageDataSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            gcsDataSink = javaType.gcsDataSink().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecGcsDataSink.Companion.toKotlin(args0)
                })
            }).orElse(null),
            gcsDataSource = javaType.gcsDataSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecGcsDataSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            httpDataSource = javaType.httpDataSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecHttpDataSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            objectConditions = javaType.objectConditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecObjectConditions.Companion.toKotlin(args0)
                })
            }).orElse(null),
            posixDataSink = javaType.posixDataSink().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecPosixDataSink.Companion.toKotlin(args0)
                })
            }).orElse(null),
            posixDataSource = javaType.posixDataSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecPosixDataSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sinkAgentPoolName = javaType.sinkAgentPoolName().map({ args0 -> args0 }).orElse(null),
            sourceAgentPoolName = javaType.sourceAgentPoolName().map({ args0 -> args0 }).orElse(null),
            transferOptions = javaType.transferOptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobTransferSpecTransferOptions.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy