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

com.pulumi.azure.elasticcloud.kotlin.inputs.GetElasticsearchPlainArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.elasticcloud.kotlin.inputs

import com.pulumi.azure.elasticcloud.inputs.GetElasticsearchPlainArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getElasticsearch.
 * @property logs A `logs` block as defined below.
 * @property name The name of the Elasticsearch resource.
 * @property resourceGroupName The name of the resource group in which the Elasticsearch exists.
 */
public data class GetElasticsearchPlainArgs(
    public val logs: List? = null,
    public val name: String,
    public val resourceGroupName: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.elasticcloud.inputs.GetElasticsearchPlainArgs =
        com.pulumi.azure.elasticcloud.inputs.GetElasticsearchPlainArgs.builder()
            .logs(logs?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .name(name.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetElasticsearchPlainArgs].
 */
@PulumiTagMarker
public class GetElasticsearchPlainArgsBuilder internal constructor() {
    private var logs: List? = null

    private var name: String? = null

    private var resourceGroupName: String? = null

    /**
     * @param value A `logs` block as defined below.
     */
    @JvmName("uosvvixqbvshdhvw")
    public suspend fun logs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.logs = mapped
    }

    /**
     * @param argument A `logs` block as defined below.
     */
    @JvmName("oinadorfnmlntbkg")
    public suspend fun logs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetElasticsearchLogBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.logs = mapped
    }

    /**
     * @param argument A `logs` block as defined below.
     */
    @JvmName("lnshtkbdtscdmnvr")
    public suspend fun logs(vararg argument: suspend GetElasticsearchLogBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetElasticsearchLogBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.logs = mapped
    }

    /**
     * @param argument A `logs` block as defined below.
     */
    @JvmName("advcubtuygnckfkp")
    public suspend fun logs(argument: suspend GetElasticsearchLogBuilder.() -> Unit) {
        val toBeMapped = listOf(GetElasticsearchLogBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.logs = mapped
    }

    /**
     * @param values A `logs` block as defined below.
     */
    @JvmName("tnpevvubxvywifsi")
    public suspend fun logs(vararg values: GetElasticsearchLog) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.logs = mapped
    }

    /**
     * @param value The name of the Elasticsearch resource.
     */
    @JvmName("vpjsbpgbuvpvnikg")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value The name of the resource group in which the Elasticsearch exists.
     */
    @JvmName("jhnjetdvftkxpoih")
    public suspend fun resourceGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    internal fun build(): GetElasticsearchPlainArgs = GetElasticsearchPlainArgs(
        logs = logs,
        name = name ?: throw PulumiNullFieldException("name"),
        resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy