com.pulumi.awsnative.datasync.kotlin.inputs.TaskManifestConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.datasync.kotlin.inputs
import com.pulumi.awsnative.datasync.inputs.TaskManifestConfigArgs.builder
import com.pulumi.awsnative.datasync.kotlin.enums.TaskManifestConfigAction
import com.pulumi.awsnative.datasync.kotlin.enums.TaskManifestConfigFormat
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Configures a manifest, which is a list of files or objects that you want DataSync to transfer.
* @property action Specifies what DataSync uses the manifest for.
* @property format Specifies the file format of your manifest.
* @property source Specifies the manifest that you want DataSync to use and where it's hosted.
*/
public data class TaskManifestConfigArgs(
public val action: Output? = null,
public val format: Output? = null,
public val source: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.datasync.inputs.TaskManifestConfigArgs =
com.pulumi.awsnative.datasync.inputs.TaskManifestConfigArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.format(format?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.source(source.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TaskManifestConfigArgs].
*/
@PulumiTagMarker
public class TaskManifestConfigArgsBuilder internal constructor() {
private var action: Output? = null
private var format: Output? = null
private var source: Output? = null
/**
* @param value Specifies what DataSync uses the manifest for.
*/
@JvmName("sjkrdfvttoyamrqs")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Specifies the file format of your manifest.
*/
@JvmName("rsipgbgofqfbpawv")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value Specifies the manifest that you want DataSync to use and where it's hosted.
*/
@JvmName("dbjcneeskrdlcdwk")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value Specifies what DataSync uses the manifest for.
*/
@JvmName("qlketqyxqmxklxbs")
public suspend fun action(`value`: TaskManifestConfigAction?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Specifies the file format of your manifest.
*/
@JvmName("jygsikoiulkkxyot")
public suspend fun format(`value`: TaskManifestConfigFormat?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.format = mapped
}
/**
* @param value Specifies the manifest that you want DataSync to use and where it's hosted.
*/
@JvmName("jribjkguafqbtqvu")
public suspend fun source(`value`: TaskManifestConfigSourcePropertiesArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.source = mapped
}
/**
* @param argument Specifies the manifest that you want DataSync to use and where it's hosted.
*/
@JvmName("kcxndlkcyqsobkrj")
public suspend fun source(argument: suspend TaskManifestConfigSourcePropertiesArgsBuilder.() -> Unit) {
val toBeMapped = TaskManifestConfigSourcePropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.source = mapped
}
internal fun build(): TaskManifestConfigArgs = TaskManifestConfigArgs(
action = action,
format = format,
source = source ?: throw PulumiNullFieldException("source"),
)
}