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

com.pulumi.alicloud.cs.kotlin.inputs.GetKubernetesVersionPlainArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.cs.kotlin.inputs

import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionPlainArgs.builder
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

/**
 * A collection of arguments for invoking getKubernetesVersion.
 * @property clusterType The type of cluster. Its valid value are `Kubernetes` and `ManagedKubernetes`.
 * @property kubernetesVersion The ACK released kubernetes version.
 * @property profile The profile of cluster. Its valid value are `Default`, `Serverless` and `Edge`.
 */
public data class GetKubernetesVersionPlainArgs(
    public val clusterType: String,
    public val kubernetesVersion: String? = null,
    public val profile: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.cs.inputs.GetKubernetesVersionPlainArgs =
        com.pulumi.alicloud.cs.inputs.GetKubernetesVersionPlainArgs.builder()
            .clusterType(clusterType.let({ args0 -> args0 }))
            .kubernetesVersion(kubernetesVersion?.let({ args0 -> args0 }))
            .profile(profile?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetKubernetesVersionPlainArgs].
 */
@PulumiTagMarker
public class GetKubernetesVersionPlainArgsBuilder internal constructor() {
    private var clusterType: String? = null

    private var kubernetesVersion: String? = null

    private var profile: String? = null

    /**
     * @param value The type of cluster. Its valid value are `Kubernetes` and `ManagedKubernetes`.
     */
    @JvmName("aofdvipdphvwhyoh")
    public suspend fun clusterType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.clusterType = mapped
    }

    /**
     * @param value The ACK released kubernetes version.
     */
    @JvmName("skwoeeuqgpjctkqp")
    public suspend fun kubernetesVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.kubernetesVersion = mapped
    }

    /**
     * @param value The profile of cluster. Its valid value are `Default`, `Serverless` and `Edge`.
     */
    @JvmName("duphsfbdphcprrmx")
    public suspend fun profile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.profile = mapped
    }

    internal fun build(): GetKubernetesVersionPlainArgs = GetKubernetesVersionPlainArgs(
        clusterType = clusterType ?: throw PulumiNullFieldException("clusterType"),
        kubernetesVersion = kubernetesVersion,
        profile = profile,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy