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

com.pulumi.googlenative.datamigration.v1.kotlin.inputs.DatabaseEngineInfoArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.datamigration.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.datamigration.v1.inputs.DatabaseEngineInfoArgs.builder
import com.pulumi.googlenative.datamigration.v1.kotlin.enums.DatabaseEngineInfoEngine
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The type and version of a source or destination database.
 * @property engine Engine type.
 * @property version Engine named version, for example 12.c.1.
 */
public data class DatabaseEngineInfoArgs(
    public val engine: Output,
    public val version: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.datamigration.v1.inputs.DatabaseEngineInfoArgs =
        com.pulumi.googlenative.datamigration.v1.inputs.DatabaseEngineInfoArgs.builder()
            .engine(engine.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .version(version.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseEngineInfoArgs].
 */
@PulumiTagMarker
public class DatabaseEngineInfoArgsBuilder internal constructor() {
    private var engine: Output? = null

    private var version: Output? = null

    /**
     * @param value Engine type.
     */
    @JvmName("fluaepagwawouhdp")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

    /**
     * @param value Engine named version, for example 12.c.1.
     */
    @JvmName("mogdstnyqlbipkhw")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Engine type.
     */
    @JvmName("ibhwkxvsspcoaajh")
    public suspend fun engine(`value`: DatabaseEngineInfoEngine) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value Engine named version, for example 12.c.1.
     */
    @JvmName("xmvitivmabvwelmc")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): DatabaseEngineInfoArgs = DatabaseEngineInfoArgs(
        engine = engine ?: throw PulumiNullFieldException("engine"),
        version = version ?: throw PulumiNullFieldException("version"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy