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

com.pulumi.azurenative.databox.kotlin.inputs.TransferConfigurationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.databox.kotlin.inputs

import com.pulumi.azurenative.databox.inputs.TransferConfigurationArgs.builder
import com.pulumi.azurenative.databox.kotlin.enums.TransferConfigurationType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Configuration for defining the transfer of data.
 * @property transferAllDetails Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll
 * @property transferConfigurationType Type of the configuration for transfer.
 * @property transferFilterDetails Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.
 */
public data class TransferConfigurationArgs(
    public val transferAllDetails: Output? = null,
    public val transferConfigurationType: Output>,
    public val transferFilterDetails: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.databox.inputs.TransferConfigurationArgs =
        com.pulumi.azurenative.databox.inputs.TransferConfigurationArgs.builder()
            .transferAllDetails(
                transferAllDetails?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .transferConfigurationType(
                transferConfigurationType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .transferFilterDetails(
                transferFilterDetails?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TransferConfigurationArgs].
 */
@PulumiTagMarker
public class TransferConfigurationArgsBuilder internal constructor() {
    private var transferAllDetails: Output? = null

    private var transferConfigurationType: Output>? = null

    private var transferFilterDetails: Output? = null

    /**
     * @param value Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll
     */
    @JvmName("gafbcnvyrghttgni")
    public suspend fun transferAllDetails(`value`: Output) {
        this.transferAllDetails = value
    }

    /**
     * @param value Type of the configuration for transfer.
     */
    @JvmName("tkwqhigxetbcttdp")
    public suspend fun transferConfigurationType(`value`: Output>) {
        this.transferConfigurationType = value
    }

    /**
     * @param value Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.
     */
    @JvmName("maubesdlymdywdkf")
    public suspend fun transferFilterDetails(`value`: Output) {
        this.transferFilterDetails = value
    }

    /**
     * @param value Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll
     */
    @JvmName("fuoljigqbiqhcunb")
    public suspend fun transferAllDetails(`value`: TransferConfigurationTransferAllDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transferAllDetails = mapped
    }

    /**
     * @param argument Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll
     */
    @JvmName("iusipucbwrimmkgf")
    public suspend fun transferAllDetails(argument: suspend TransferConfigurationTransferAllDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = TransferConfigurationTransferAllDetailsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.transferAllDetails = mapped
    }

    /**
     * @param value Type of the configuration for transfer.
     */
    @JvmName("rmvwsjxowwnpohag")
    public suspend fun transferConfigurationType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transferConfigurationType = mapped
    }

    /**
     * @param value Type of the configuration for transfer.
     */
    @JvmName("airsvniasnqpqpsw")
    public fun transferConfigurationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transferConfigurationType = mapped
    }

    /**
     * @param value Type of the configuration for transfer.
     */
    @JvmName("nqlxfockrotpdqnn")
    public fun transferConfigurationType(`value`: TransferConfigurationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transferConfigurationType = mapped
    }

    /**
     * @param value Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.
     */
    @JvmName("fiphkkyrraehfkxi")
    public suspend fun transferFilterDetails(`value`: TransferConfigurationTransferFilterDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transferFilterDetails = mapped
    }

    /**
     * @param argument Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.
     */
    @JvmName("jjohcbbxstirraox")
    public suspend fun transferFilterDetails(argument: suspend TransferConfigurationTransferFilterDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = TransferConfigurationTransferFilterDetailsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.transferFilterDetails = mapped
    }

    internal fun build(): TransferConfigurationArgs = TransferConfigurationArgs(
        transferAllDetails = transferAllDetails,
        transferConfigurationType = transferConfigurationType ?: throw
            PulumiNullFieldException("transferConfigurationType"),
        transferFilterDetails = transferFilterDetails,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy