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

com.pulumi.azurenative.offazure.kotlin.HypervHostControllerArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.offazure.kotlin

import com.pulumi.azurenative.offazure.HypervHostControllerArgs.builder
import com.pulumi.azurenative.offazure.kotlin.enums.ProvisioningState
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

/**
 * A host resource belonging to a site resource.
 * Azure REST API version: 2023-06-06.
 * Other available API versions: 2023-10-01-preview.
 * ## Example Usage
 * ### HypervHostController_Create_MaximumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var hypervHostController = new AzureNative.OffAzure.HypervHostController("hypervHostController", new()
 *     {
 *         Fqdn = "okkwk",
 *         HostName = "XQ-753h-765DG2",
 *         ProvisioningState = AzureNative.OffAzure.ProvisioningState.Created,
 *         ResourceGroupName = "rgmigrate",
 *         RunAsAccountId = "pjgyebznvfxnjzjqt",
 *         SiteName = "---7ed-q11Nx46-98",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := offazure.NewHypervHostController(ctx, "hypervHostController", &offazure.HypervHostControllerArgs{
 * 			Fqdn:              pulumi.String("okkwk"),
 * 			HostName:          pulumi.String("XQ-753h-765DG2"),
 * 			ProvisioningState: pulumi.String(offazure.ProvisioningStateCreated),
 * 			ResourceGroupName: pulumi.String("rgmigrate"),
 * 			RunAsAccountId:    pulumi.String("pjgyebznvfxnjzjqt"),
 * 			SiteName:          pulumi.String("---7ed-q11Nx46-98"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.offazure.HypervHostController;
 * import com.pulumi.azurenative.offazure.HypervHostControllerArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var hypervHostController = new HypervHostController("hypervHostController", HypervHostControllerArgs.builder()
 *             .fqdn("okkwk")
 *             .hostName("XQ-753h-765DG2")
 *             .provisioningState("Created")
 *             .resourceGroupName("rgmigrate")
 *             .runAsAccountId("pjgyebznvfxnjzjqt")
 *             .siteName("---7ed-q11Nx46-98")
 *             .build());
 *     }
 * }
 * ```
 * ### HypervHostController_Create_MinimumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var hypervHostController = new AzureNative.OffAzure.HypervHostController("hypervHostController", new()
 *     {
 *         HostName = "IIfm6suXoKL",
 *         ResourceGroupName = "rgmigrate",
 *         SiteName = "-25mH3",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := offazure.NewHypervHostController(ctx, "hypervHostController", &offazure.HypervHostControllerArgs{
 * 			HostName:          pulumi.String("IIfm6suXoKL"),
 * 			ResourceGroupName: pulumi.String("rgmigrate"),
 * 			SiteName:          pulumi.String("-25mH3"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.offazure.HypervHostController;
 * import com.pulumi.azurenative.offazure.HypervHostControllerArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var hypervHostController = new HypervHostController("hypervHostController", HypervHostControllerArgs.builder()
 *             .hostName("IIfm6suXoKL")
 *             .resourceGroupName("rgmigrate")
 *             .siteName("-25mH3")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:offazure:HypervHostController kgosttkbfbrsge /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/hypervSites/{siteName}/hosts/{hostName}
 * ```
 * @property fqdn Gets or sets the FQDN/IPAddress of the Hyper-V host.
 * @property hostName  Host name
 * @property provisioningState The status of the last operation.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property runAsAccountId Gets or sets the run as account ID of the Hyper-V host.
 * @property siteName Site name
 */
public data class HypervHostControllerArgs(
    public val fqdn: Output? = null,
    public val hostName: Output? = null,
    public val provisioningState: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val runAsAccountId: Output? = null,
    public val siteName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.offazure.HypervHostControllerArgs =
        com.pulumi.azurenative.offazure.HypervHostControllerArgs.builder()
            .fqdn(fqdn?.applyValue({ args0 -> args0 }))
            .hostName(hostName?.applyValue({ args0 -> args0 }))
            .provisioningState(
                provisioningState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .runAsAccountId(runAsAccountId?.applyValue({ args0 -> args0 }))
            .siteName(siteName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HypervHostControllerArgs].
 */
@PulumiTagMarker
public class HypervHostControllerArgsBuilder internal constructor() {
    private var fqdn: Output? = null

    private var hostName: Output? = null

    private var provisioningState: Output>? = null

    private var resourceGroupName: Output? = null

    private var runAsAccountId: Output? = null

    private var siteName: Output? = null

    /**
     * @param value Gets or sets the FQDN/IPAddress of the Hyper-V host.
     */
    @JvmName("nmdhrgrwgjmikghi")
    public suspend fun fqdn(`value`: Output) {
        this.fqdn = value
    }

    /**
     * @param value  Host name
     */
    @JvmName("uwmmtgnmydqpcvfx")
    public suspend fun hostName(`value`: Output) {
        this.hostName = value
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("ccfehjbiuhbtxkwd")
    public suspend fun provisioningState(`value`: Output>) {
        this.provisioningState = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("egrfedkpwwdfuqlg")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Gets or sets the run as account ID of the Hyper-V host.
     */
    @JvmName("kjrfrmlfrluikqax")
    public suspend fun runAsAccountId(`value`: Output) {
        this.runAsAccountId = value
    }

    /**
     * @param value Site name
     */
    @JvmName("dspmeaxirvsjebkd")
    public suspend fun siteName(`value`: Output) {
        this.siteName = value
    }

    /**
     * @param value Gets or sets the FQDN/IPAddress of the Hyper-V host.
     */
    @JvmName("wtgagaycrfueveuc")
    public suspend fun fqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fqdn = mapped
    }

    /**
     * @param value  Host name
     */
    @JvmName("kicvtcpkodcxhprh")
    public suspend fun hostName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostName = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("aeaxeaxxhkemfvig")
    public suspend fun provisioningState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("rnbeabsksgavkcht")
    public fun provisioningState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("qlfpcuecvjfcrpkl")
    public fun provisioningState(`value`: ProvisioningState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("pwtxuuwogxqgxkhj")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Gets or sets the run as account ID of the Hyper-V host.
     */
    @JvmName("ycqpjqqdolduskac")
    public suspend fun runAsAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runAsAccountId = mapped
    }

    /**
     * @param value Site name
     */
    @JvmName("dblfrnuwvebolnyc")
    public suspend fun siteName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.siteName = mapped
    }

    internal fun build(): HypervHostControllerArgs = HypervHostControllerArgs(
        fqdn = fqdn,
        hostName = hostName,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        runAsAccountId = runAsAccountId,
        siteName = siteName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy