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

com.pulumi.azure.workloadssap.kotlin.SingleNodeVirtualInstanceArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.workloadssap.kotlin

import com.pulumi.azure.workloadssap.SingleNodeVirtualInstanceArgs.builder
import com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceIdentityArgs
import com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceIdentityArgsBuilder
import com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceSingleServerConfigurationArgs
import com.pulumi.azure.workloadssap.kotlin.inputs.SingleNodeVirtualInstanceSingleServerConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an SAP Single Node Virtual Instance with new SAP System.
 * > **Note:** Before using this resource, it's required to submit the request of registering the Resource Provider with Azure CLI `az provider register --namespace "Microsoft.Workloads"`. The Resource Provider can take a while to register, you can check the status by running `az provider show --namespace "Microsoft.Workloads" --query "registrationState"`. Once this outputs "Registered" the Resource Provider is available for use.
 * ## Import
 * SAP Single Node Virtual Instances with new SAP Systems can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:workloadssap/singleNodeVirtualInstance:SingleNodeVirtualInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Workloads/sapVirtualInstances/vis1
 * ```
 * @property appLocation The Geo-Location where the SAP system is to be created. Changing this forces a new resource to be created.
 * @property environment The environment type for the SAP Single Node Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created.
 * @property identity An `identity` block as defined below.
 * @property location The Azure Region where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
 * @property managedResourceGroupName The name of the managed Resource Group for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
 * @property name Specifies the name of this SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the Resource Group where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
 * @property sapFqdn The fully qualified domain name for the SAP system. Changing this forces a new resource to be created.
 * @property sapProduct The SAP Product type for the SAP Single Node Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created.
 * @property singleServerConfiguration A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
 * @property tags A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
 */
public data class SingleNodeVirtualInstanceArgs(
    public val appLocation: Output? = null,
    public val environment: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val managedResourceGroupName: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sapFqdn: Output? = null,
    public val sapProduct: Output? = null,
    public val singleServerConfiguration:
    Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.workloadssap.SingleNodeVirtualInstanceArgs =
        com.pulumi.azure.workloadssap.SingleNodeVirtualInstanceArgs.builder()
            .appLocation(appLocation?.applyValue({ args0 -> args0 }))
            .environment(environment?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .managedResourceGroupName(managedResourceGroupName?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sapFqdn(sapFqdn?.applyValue({ args0 -> args0 }))
            .sapProduct(sapProduct?.applyValue({ args0 -> args0 }))
            .singleServerConfiguration(
                singleServerConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [SingleNodeVirtualInstanceArgs].
 */
@PulumiTagMarker
public class SingleNodeVirtualInstanceArgsBuilder internal constructor() {
    private var appLocation: Output? = null

    private var environment: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var managedResourceGroupName: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var sapFqdn: Output? = null

    private var sapProduct: Output? = null

    private var singleServerConfiguration:
        Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Geo-Location where the SAP system is to be created. Changing this forces a new resource to be created.
     */
    @JvmName("ofbjfkhnisdrerep")
    public suspend fun appLocation(`value`: Output) {
        this.appLocation = value
    }

    /**
     * @param value The environment type for the SAP Single Node Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created.
     */
    @JvmName("xscqpuurasbmtsme")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("gxhygofhkgmctmle")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The Azure Region where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
     */
    @JvmName("cufspnunadttrjhi")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the managed Resource Group for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("qviluxkbklqqshhh")
    public suspend fun managedResourceGroupName(`value`: Output) {
        this.managedResourceGroupName = value
    }

    /**
     * @param value Specifies the name of this SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("fdcnpbsjvfmcredh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
     */
    @JvmName("fscwmaryiomdxvlx")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The fully qualified domain name for the SAP system. Changing this forces a new resource to be created.
     */
    @JvmName("fmhshgbbbcyceuqh")
    public suspend fun sapFqdn(`value`: Output) {
        this.sapFqdn = value
    }

    /**
     * @param value The SAP Product type for the SAP Single Node Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("edkxphvqdgmrqayi")
    public suspend fun sapProduct(`value`: Output) {
        this.sapProduct = value
    }

    /**
     * @param value A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("teexbpthbvmsiapf")
    public suspend
    fun singleServerConfiguration(`value`: Output) {
        this.singleServerConfiguration = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
     */
    @JvmName("mshtggidkpjxcxki")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The Geo-Location where the SAP system is to be created. Changing this forces a new resource to be created.
     */
    @JvmName("vtxxddwcorqktvfl")
    public suspend fun appLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appLocation = mapped
    }

    /**
     * @param value The environment type for the SAP Single Node Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created.
     */
    @JvmName("tglfmbqgolaodnqs")
    public suspend fun environment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("dqpuxmodnvhldybv")
    public suspend fun identity(`value`: SingleNodeVirtualInstanceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("lbbrbnugyqununbw")
    public suspend
    fun identity(argument: suspend SingleNodeVirtualInstanceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = SingleNodeVirtualInstanceIdentityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The Azure Region where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
     */
    @JvmName("ifdyvutqcgpyqalt")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the managed Resource Group for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("wjlmjciljsfaufyh")
    public suspend fun managedResourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedResourceGroupName = mapped
    }

    /**
     * @param value Specifies the name of this SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
     */
    @JvmName("rfcsxjytraaoepkt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
     */
    @JvmName("tmfcvnwmdhcnqkhl")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The fully qualified domain name for the SAP system. Changing this forces a new resource to be created.
     */
    @JvmName("glfgafoerrdmgdoy")
    public suspend fun sapFqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sapFqdn = mapped
    }

    /**
     * @param value The SAP Product type for the SAP Single Node Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created.
     */
    @JvmName("nouwafpgireobjvt")
    public suspend fun sapProduct(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sapProduct = mapped
    }

    /**
     * @param value A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("yyqajfydcmlprayr")
    public suspend
    fun singleServerConfiguration(`value`: SingleNodeVirtualInstanceSingleServerConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singleServerConfiguration = mapped
    }

    /**
     * @param argument A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("niucgnjoqjklcbck")
    public suspend
    fun singleServerConfiguration(argument: suspend SingleNodeVirtualInstanceSingleServerConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = SingleNodeVirtualInstanceSingleServerConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.singleServerConfiguration = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
     */
    @JvmName("vaffvytkihfkdnqw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
     */
    @JvmName("hhnwnefqgkqqulbt")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SingleNodeVirtualInstanceArgs = SingleNodeVirtualInstanceArgs(
        appLocation = appLocation,
        environment = environment,
        identity = identity,
        location = location,
        managedResourceGroupName = managedResourceGroupName,
        name = name,
        resourceGroupName = resourceGroupName,
        sapFqdn = sapFqdn,
        sapProduct = sapProduct,
        singleServerConfiguration = singleServerConfiguration,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy