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

com.pulumi.azurenative.documentdb.kotlin.inputs.ApiPropertiesArgs.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.documentdb.kotlin.inputs

import com.pulumi.azurenative.documentdb.inputs.ApiPropertiesArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.enums.ServerVersion
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property serverVersion Describes the ServerVersion of an a MongoDB account.
 */
public data class ApiPropertiesArgs(
    public val serverVersion: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.documentdb.inputs.ApiPropertiesArgs =
        com.pulumi.azurenative.documentdb.inputs.ApiPropertiesArgs.builder()
            .serverVersion(
                serverVersion?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApiPropertiesArgs].
 */
@PulumiTagMarker
public class ApiPropertiesArgsBuilder internal constructor() {
    private var serverVersion: Output>? = null

    /**
     * @param value Describes the ServerVersion of an a MongoDB account.
     */
    @JvmName("fxbljkphrelcxydn")
    public suspend fun serverVersion(`value`: Output>) {
        this.serverVersion = value
    }

    /**
     * @param value Describes the ServerVersion of an a MongoDB account.
     */
    @JvmName("qntkyrjywgryjbjc")
    public suspend fun serverVersion(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverVersion = mapped
    }

    /**
     * @param value Describes the ServerVersion of an a MongoDB account.
     */
    @JvmName("duesmeaikwnqfdpp")
    public fun serverVersion(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverVersion = mapped
    }

    /**
     * @param value Describes the ServerVersion of an a MongoDB account.
     */
    @JvmName("hcxsikjsdsfbruaq")
    public fun serverVersion(`value`: ServerVersion) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverVersion = mapped
    }

    internal fun build(): ApiPropertiesArgs = ApiPropertiesArgs(
        serverVersion = serverVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy