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

com.pulumi.azurenative.redhatopenshift.kotlin.inputs.MasterProfileArgs.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.redhatopenshift.kotlin.inputs

import com.pulumi.azurenative.redhatopenshift.inputs.MasterProfileArgs.builder
import com.pulumi.azurenative.redhatopenshift.kotlin.enums.EncryptionAtHost
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

/**
 * MasterProfile represents a master profile.
 * @property diskEncryptionSetId The resource ID of an associated DiskEncryptionSet, if applicable.
 * @property encryptionAtHost Whether master virtual machines are encrypted at host.
 * @property subnetId The Azure resource ID of the master subnet.
 * @property vmSize The size of the master VMs.
 */
public data class MasterProfileArgs(
    public val diskEncryptionSetId: Output? = null,
    public val encryptionAtHost: Output>? = null,
    public val subnetId: Output? = null,
    public val vmSize: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.redhatopenshift.inputs.MasterProfileArgs =
        com.pulumi.azurenative.redhatopenshift.inputs.MasterProfileArgs.builder()
            .diskEncryptionSetId(diskEncryptionSetId?.applyValue({ args0 -> args0 }))
            .encryptionAtHost(
                encryptionAtHost?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .subnetId(subnetId?.applyValue({ args0 -> args0 }))
            .vmSize(vmSize?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MasterProfileArgs].
 */
@PulumiTagMarker
public class MasterProfileArgsBuilder internal constructor() {
    private var diskEncryptionSetId: Output? = null

    private var encryptionAtHost: Output>? = null

    private var subnetId: Output? = null

    private var vmSize: Output? = null

    /**
     * @param value The resource ID of an associated DiskEncryptionSet, if applicable.
     */
    @JvmName("uowpphtyguohjgiq")
    public suspend fun diskEncryptionSetId(`value`: Output) {
        this.diskEncryptionSetId = value
    }

    /**
     * @param value Whether master virtual machines are encrypted at host.
     */
    @JvmName("xefspltbbtkbfnbc")
    public suspend fun encryptionAtHost(`value`: Output>) {
        this.encryptionAtHost = value
    }

    /**
     * @param value The Azure resource ID of the master subnet.
     */
    @JvmName("vkewhjegbbmwgmpc")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value The size of the master VMs.
     */
    @JvmName("rorinqkjuqebbdgw")
    public suspend fun vmSize(`value`: Output) {
        this.vmSize = value
    }

    /**
     * @param value The resource ID of an associated DiskEncryptionSet, if applicable.
     */
    @JvmName("enpnxuauprcmxwyi")
    public suspend fun diskEncryptionSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionSetId = mapped
    }

    /**
     * @param value Whether master virtual machines are encrypted at host.
     */
    @JvmName("ksclyddsonvsrxgq")
    public suspend fun encryptionAtHost(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionAtHost = mapped
    }

    /**
     * @param value Whether master virtual machines are encrypted at host.
     */
    @JvmName("xdvqltkwykhdtitq")
    public fun encryptionAtHost(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionAtHost = mapped
    }

    /**
     * @param value Whether master virtual machines are encrypted at host.
     */
    @JvmName("gjuvofuvpttifyaw")
    public fun encryptionAtHost(`value`: EncryptionAtHost) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionAtHost = mapped
    }

    /**
     * @param value The Azure resource ID of the master subnet.
     */
    @JvmName("hrgrqyfaaatqojxw")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value The size of the master VMs.
     */
    @JvmName("smmfwedqibyyewwo")
    public suspend fun vmSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmSize = mapped
    }

    internal fun build(): MasterProfileArgs = MasterProfileArgs(
        diskEncryptionSetId = diskEncryptionSetId,
        encryptionAtHost = encryptionAtHost,
        subnetId = subnetId,
        vmSize = vmSize,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy