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

com.pulumi.azurenative.workloads.kotlin.inputs.SingleServerFullResourceNamesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.workloads.kotlin.inputs

import com.pulumi.azurenative.workloads.inputs.SingleServerFullResourceNamesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.jvm.JvmName

/**
 * The resource name object where the specified values will be full resource names of the corresponding resources in a single server SAP system.
 * @property namingPatternType The pattern type to be used for resource naming.
 * Expected value is 'FullResourceName'.
 * @property virtualMachine The resource names object for virtual machine and related resources.
 */
public data class SingleServerFullResourceNamesArgs(
    public val namingPatternType: Output,
    public val virtualMachine: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.workloads.inputs.SingleServerFullResourceNamesArgs =
        com.pulumi.azurenative.workloads.inputs.SingleServerFullResourceNamesArgs.builder()
            .namingPatternType(namingPatternType.applyValue({ args0 -> args0 }))
            .virtualMachine(
                virtualMachine?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SingleServerFullResourceNamesArgs].
 */
@PulumiTagMarker
public class SingleServerFullResourceNamesArgsBuilder internal constructor() {
    private var namingPatternType: Output? = null

    private var virtualMachine: Output? = null

    /**
     * @param value The pattern type to be used for resource naming.
     * Expected value is 'FullResourceName'.
     */
    @JvmName("xddtnthtraddipuc")
    public suspend fun namingPatternType(`value`: Output) {
        this.namingPatternType = value
    }

    /**
     * @param value The resource names object for virtual machine and related resources.
     */
    @JvmName("sacjfwasvkvcvynh")
    public suspend fun virtualMachine(`value`: Output) {
        this.virtualMachine = value
    }

    /**
     * @param value The pattern type to be used for resource naming.
     * Expected value is 'FullResourceName'.
     */
    @JvmName("ekgholmlfjqoejpa")
    public suspend fun namingPatternType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namingPatternType = mapped
    }

    /**
     * @param value The resource names object for virtual machine and related resources.
     */
    @JvmName("crqvusdyoywkuxuv")
    public suspend fun virtualMachine(`value`: VirtualMachineResourceNamesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualMachine = mapped
    }

    /**
     * @param argument The resource names object for virtual machine and related resources.
     */
    @JvmName("vwyanckvselnjujc")
    public suspend fun virtualMachine(argument: suspend VirtualMachineResourceNamesArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualMachineResourceNamesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.virtualMachine = mapped
    }

    internal fun build(): SingleServerFullResourceNamesArgs = SingleServerFullResourceNamesArgs(
        namingPatternType = namingPatternType ?: throw PulumiNullFieldException("namingPatternType"),
        virtualMachine = virtualMachine,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy