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

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

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

package com.pulumi.azurenative.offazure.kotlin

import com.pulumi.azurenative.offazure.HypervSitesControllerArgs.builder
import com.pulumi.azurenative.offazure.kotlin.enums.ProvisioningState
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteAgentPropertiesArgs
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteAgentPropertiesArgsBuilder
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteSpnPropertiesArgs
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteSpnPropertiesArgsBuilder
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 com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A HyperV SiteResource
 * Azure REST API version: 2023-06-06.
 * Other available API versions: 2023-10-01-preview.
 * ## Example Usage
 * ### HypervSitesController_Create_MaximumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var hypervSitesController = new AzureNative.OffAzure.HypervSitesController("hypervSitesController", new()
 *     {
 *         AgentDetails = new AzureNative.OffAzure.Inputs.SiteAgentPropertiesArgs
 *         {
 *             KeyVaultId = "awxurtbjmofxuciewsqfgpkccpzw",
 *             KeyVaultUri = "qizphgqwage",
 *         },
 *         ApplianceName = "jnpsjguxuzuxbhasiqfijf",
 *         DiscoverySolutionId = "yxajidsykozchjkuxj",
 *         Location = "sctymxdndonxgejdhi",
 *         ProvisioningState = AzureNative.OffAzure.ProvisioningState.Created,
 *         ResourceGroupName = "rgmigrate",
 *         ServicePrincipalIdentityDetails = new AzureNative.OffAzure.Inputs.SiteSpnPropertiesArgs
 *         {
 *             AadAuthority = "yanzipdww",
 *             ApplicationId = "tspgrujepxyxuprkqvfuqbbjrweeqa",
 *             Audience = "oepwfaozztzvegmzvswafvotj",
 *             ObjectId = "tqrjngpgxnnto",
 *             RawCertData = "dotvgkslkmsgvtekgojnhcdrryk",
 *             TenantId = "vesmyhu",
 *         },
 *         SiteName = "692-u-93F93",
 *         Tags =
 *         {
 *             { "key9741", "fdbzykkpvhnhsrhiam" },
 *         },
 *     });
 * });
 * ```
 * ```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.NewHypervSitesController(ctx, "hypervSitesController", &offazure.HypervSitesControllerArgs{
 * 			AgentDetails: &offazure.SiteAgentPropertiesArgs{
 * 				KeyVaultId:  pulumi.String("awxurtbjmofxuciewsqfgpkccpzw"),
 * 				KeyVaultUri: pulumi.String("qizphgqwage"),
 * 			},
 * 			ApplianceName:       pulumi.String("jnpsjguxuzuxbhasiqfijf"),
 * 			DiscoverySolutionId: pulumi.String("yxajidsykozchjkuxj"),
 * 			Location:            pulumi.String("sctymxdndonxgejdhi"),
 * 			ProvisioningState:   pulumi.String(offazure.ProvisioningStateCreated),
 * 			ResourceGroupName:   pulumi.String("rgmigrate"),
 * 			ServicePrincipalIdentityDetails: &offazure.SiteSpnPropertiesArgs{
 * 				AadAuthority:  pulumi.String("yanzipdww"),
 * 				ApplicationId: pulumi.String("tspgrujepxyxuprkqvfuqbbjrweeqa"),
 * 				Audience:      pulumi.String("oepwfaozztzvegmzvswafvotj"),
 * 				ObjectId:      pulumi.String("tqrjngpgxnnto"),
 * 				RawCertData:   pulumi.String("dotvgkslkmsgvtekgojnhcdrryk"),
 * 				TenantId:      pulumi.String("vesmyhu"),
 * 			},
 * 			SiteName: pulumi.String("692-u-93F93"),
 * 			Tags: pulumi.StringMap{
 * 				"key9741": pulumi.String("fdbzykkpvhnhsrhiam"),
 * 			},
 * 		})
 * 		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.HypervSitesController;
 * import com.pulumi.azurenative.offazure.HypervSitesControllerArgs;
 * import com.pulumi.azurenative.offazure.inputs.SiteAgentPropertiesArgs;
 * import com.pulumi.azurenative.offazure.inputs.SiteSpnPropertiesArgs;
 * 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 hypervSitesController = new HypervSitesController("hypervSitesController", HypervSitesControllerArgs.builder()
 *             .agentDetails(SiteAgentPropertiesArgs.builder()
 *                 .keyVaultId("awxurtbjmofxuciewsqfgpkccpzw")
 *                 .keyVaultUri("qizphgqwage")
 *                 .build())
 *             .applianceName("jnpsjguxuzuxbhasiqfijf")
 *             .discoverySolutionId("yxajidsykozchjkuxj")
 *             .location("sctymxdndonxgejdhi")
 *             .provisioningState("Created")
 *             .resourceGroupName("rgmigrate")
 *             .servicePrincipalIdentityDetails(SiteSpnPropertiesArgs.builder()
 *                 .aadAuthority("yanzipdww")
 *                 .applicationId("tspgrujepxyxuprkqvfuqbbjrweeqa")
 *                 .audience("oepwfaozztzvegmzvswafvotj")
 *                 .objectId("tqrjngpgxnnto")
 *                 .rawCertData("dotvgkslkmsgvtekgojnhcdrryk")
 *                 .tenantId("vesmyhu")
 *                 .build())
 *             .siteName("692-u-93F93")
 *             .tags(Map.of("key9741", "fdbzykkpvhnhsrhiam"))
 *             .build());
 *     }
 * }
 * ```
 * ### HypervSitesController_Create_MinimumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var hypervSitesController = new AzureNative.OffAzure.HypervSitesController("hypervSitesController", new()
 *     {
 *         Location = "sctymxdndonxgejdhi",
 *         ResourceGroupName = "rgmigrate",
 *         SiteName = "Y-C-7---V49GV-058XE-6P5",
 *     });
 * });
 * ```
 * ```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.NewHypervSitesController(ctx, "hypervSitesController", &offazure.HypervSitesControllerArgs{
 * 			Location:          pulumi.String("sctymxdndonxgejdhi"),
 * 			ResourceGroupName: pulumi.String("rgmigrate"),
 * 			SiteName:          pulumi.String("Y-C-7---V49GV-058XE-6P5"),
 * 		})
 * 		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.HypervSitesController;
 * import com.pulumi.azurenative.offazure.HypervSitesControllerArgs;
 * 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 hypervSitesController = new HypervSitesController("hypervSitesController", HypervSitesControllerArgs.builder()
 *             .location("sctymxdndonxgejdhi")
 *             .resourceGroupName("rgmigrate")
 *             .siteName("Y-C-7---V49GV-058XE-6P5")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:offazure:HypervSitesController xnxtdkrodsftjeebdwdkgpneqtzf /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/hypervSites/{siteName}
 * ```
 * @property agentDetails Gets or sets the on-premises agent details.
 * @property applianceName Gets or sets the Appliance Name.
 * @property discoverySolutionId Gets or sets the ARM ID of migration hub solution for SDS.
 * @property location The geo-location where the resource lives
 * @property provisioningState The status of the last operation.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property servicePrincipalIdentityDetails Gets or sets the service principal identity details used by agent for
 * communication
 *             to the service.
 * @property siteName Site name
 * @property tags Resource tags.
 */
public data class HypervSitesControllerArgs(
    public val agentDetails: Output? = null,
    public val applianceName: Output? = null,
    public val discoverySolutionId: Output? = null,
    public val location: Output? = null,
    public val provisioningState: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val servicePrincipalIdentityDetails: Output? = null,
    public val siteName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.offazure.HypervSitesControllerArgs =
        com.pulumi.azurenative.offazure.HypervSitesControllerArgs.builder()
            .agentDetails(agentDetails?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .applianceName(applianceName?.applyValue({ args0 -> args0 }))
            .discoverySolutionId(discoverySolutionId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .provisioningState(
                provisioningState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .servicePrincipalIdentityDetails(
                servicePrincipalIdentityDetails?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .siteName(siteName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [HypervSitesControllerArgs].
 */
@PulumiTagMarker
public class HypervSitesControllerArgsBuilder internal constructor() {
    private var agentDetails: Output? = null

    private var applianceName: Output? = null

    private var discoverySolutionId: Output? = null

    private var location: Output? = null

    private var provisioningState: Output>? = null

    private var resourceGroupName: Output? = null

    private var servicePrincipalIdentityDetails: Output? = null

    private var siteName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Gets or sets the on-premises agent details.
     */
    @JvmName("joadcdcqcioghugc")
    public suspend fun agentDetails(`value`: Output) {
        this.agentDetails = value
    }

    /**
     * @param value Gets or sets the Appliance Name.
     */
    @JvmName("lmvklxxecbniwxck")
    public suspend fun applianceName(`value`: Output) {
        this.applianceName = value
    }

    /**
     * @param value Gets or sets the ARM ID of migration hub solution for SDS.
     */
    @JvmName("iugivkwbftiwjwvc")
    public suspend fun discoverySolutionId(`value`: Output) {
        this.discoverySolutionId = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("mrdpxmisulvapthe")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

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

    /**
     * @param value Gets or sets the service principal identity details used by agent for
     * communication
     *             to the service.
     */
    @JvmName("endtjxworsmlixaf")
    public suspend fun servicePrincipalIdentityDetails(`value`: Output) {
        this.servicePrincipalIdentityDetails = value
    }

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

    /**
     * @param value Resource tags.
     */
    @JvmName("unkvqchmwxlbxkrs")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Gets or sets the on-premises agent details.
     */
    @JvmName("ncjvtngmtrvbpncs")
    public suspend fun agentDetails(`value`: SiteAgentPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentDetails = mapped
    }

    /**
     * @param argument Gets or sets the on-premises agent details.
     */
    @JvmName("gsqaycasudxvrsoa")
    public suspend fun agentDetails(argument: suspend SiteAgentPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = SiteAgentPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.agentDetails = mapped
    }

    /**
     * @param value Gets or sets the Appliance Name.
     */
    @JvmName("rknolvvednprcppn")
    public suspend fun applianceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applianceName = mapped
    }

    /**
     * @param value Gets or sets the ARM ID of migration hub solution for SDS.
     */
    @JvmName("oncceceekqxhanwg")
    public suspend fun discoverySolutionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.discoverySolutionId = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("tkgpvyryoakslvoo")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("oqmmemeyxhbmdsok")
    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("povgcavmllrsiyja")
    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("agedofiislltbdqc")
    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("nxewnxoekvtjdbjn")
    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 service principal identity details used by agent for
     * communication
     *             to the service.
     */
    @JvmName("idpchsihagwhdbwl")
    public suspend fun servicePrincipalIdentityDetails(`value`: SiteSpnPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePrincipalIdentityDetails = mapped
    }

    /**
     * @param argument Gets or sets the service principal identity details used by agent for
     * communication
     *             to the service.
     */
    @JvmName("naqtomkdigobiiig")
    public suspend fun servicePrincipalIdentityDetails(argument: suspend SiteSpnPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = SiteSpnPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.servicePrincipalIdentityDetails = mapped
    }

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

    /**
     * @param value Resource tags.
     */
    @JvmName("asbjwbkolvaracuu")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("govmyqfagkdwddse")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): HypervSitesControllerArgs = HypervSitesControllerArgs(
        agentDetails = agentDetails,
        applianceName = applianceName,
        discoverySolutionId = discoverySolutionId,
        location = location,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        servicePrincipalIdentityDetails = servicePrincipalIdentityDetails,
        siteName = siteName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy