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

com.pulumi.azurenative.connectedvmwarevsphere.kotlin.VCenterArgs.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.connectedvmwarevsphere.kotlin

import com.pulumi.azurenative.connectedvmwarevsphere.VCenterArgs.builder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.VICredentialArgs
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.VICredentialArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Defines the vCenter.
 * Azure REST API version: 2022-07-15-preview. Prior API version in Azure Native 1.x: 2020-10-01-preview.
 * Other available API versions: 2023-03-01-preview, 2023-10-01, 2023-12-01.
 * ## Example Usage
 * ### CreateVCenter
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var vCenter = new AzureNative.ConnectedVMwarevSphere.VCenter("vCenter", new()
 *     {
 *         Credentials = new AzureNative.ConnectedVMwarevSphere.Inputs.VICredentialArgs
 *         {
 *             Password = "",
 *             Username = "tempuser",
 *         },
 *         ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
 *         {
 *             Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
 *             Type = "customLocation",
 *         },
 *         Fqdn = "ContosoVMware.contoso.com",
 *         Location = "East US",
 *         Port = 1234,
 *         ResourceGroupName = "testrg",
 *         VcenterName = "ContosoVCenter",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := connectedvmwarevsphere.NewVCenter(ctx, "vCenter", &connectedvmwarevsphere.VCenterArgs{
 * 			Credentials: &connectedvmwarevsphere.VICredentialArgs{
 * 				Password: pulumi.String(""),
 * 				Username: pulumi.String("tempuser"),
 * 			},
 * 			ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
 * 				Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
 * 				Type: pulumi.String("customLocation"),
 * 			},
 * 			Fqdn:              pulumi.String("ContosoVMware.contoso.com"),
 * 			Location:          pulumi.String("East US"),
 * 			Port:              pulumi.Int(1234),
 * 			ResourceGroupName: pulumi.String("testrg"),
 * 			VcenterName:       pulumi.String("ContosoVCenter"),
 * 		})
 * 		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.connectedvmwarevsphere.VCenter;
 * import com.pulumi.azurenative.connectedvmwarevsphere.VCenterArgs;
 * import com.pulumi.azurenative.connectedvmwarevsphere.inputs.VICredentialArgs;
 * import com.pulumi.azurenative.connectedvmwarevsphere.inputs.ExtendedLocationArgs;
 * 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 vCenter = new VCenter("vCenter", VCenterArgs.builder()
 *             .credentials(VICredentialArgs.builder()
 *                 .password("")
 *                 .username("tempuser")
 *                 .build())
 *             .extendedLocation(ExtendedLocationArgs.builder()
 *                 .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
 *                 .type("customLocation")
 *                 .build())
 *             .fqdn("ContosoVMware.contoso.com")
 *             .location("East US")
 *             .port(1234)
 *             .resourceGroupName("testrg")
 *             .vcenterName("ContosoVCenter")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:connectedvmwarevsphere:VCenter ContosoVCenter /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}
 * ```
 * @property credentials Username / Password Credentials to connect to vcenter.
 * @property extendedLocation Gets or sets the extended location.
 * @property fqdn Gets or sets the FQDN/IPAddress of the vCenter.
 * @property kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
 * @property location Gets or sets the location.
 * @property port Gets or sets the port of the vCenter.
 * @property resourceGroupName The Resource Group Name.
 * @property tags Gets or sets the Resource tags.
 * @property vcenterName Name of the vCenter.
 */
public data class VCenterArgs(
    public val credentials: Output? = null,
    public val extendedLocation: Output? = null,
    public val fqdn: Output? = null,
    public val kind: Output? = null,
    public val location: Output? = null,
    public val port: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val vcenterName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.connectedvmwarevsphere.VCenterArgs =
        com.pulumi.azurenative.connectedvmwarevsphere.VCenterArgs.builder()
            .credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fqdn(fqdn?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .vcenterName(vcenterName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VCenterArgs].
 */
@PulumiTagMarker
public class VCenterArgsBuilder internal constructor() {
    private var credentials: Output? = null

    private var extendedLocation: Output? = null

    private var fqdn: Output? = null

    private var kind: Output? = null

    private var location: Output? = null

    private var port: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var vcenterName: Output? = null

    /**
     * @param value Username / Password Credentials to connect to vcenter.
     */
    @JvmName("owpsefkvocvtqlni")
    public suspend fun credentials(`value`: Output) {
        this.credentials = value
    }

    /**
     * @param value Gets or sets the extended location.
     */
    @JvmName("shqpqycycolxfmls")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

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

    /**
     * @param value Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
     */
    @JvmName("kmiowwrsddououax")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

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

    /**
     * @param value Gets or sets the port of the vCenter.
     */
    @JvmName("ppfivvcqsaovukfk")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The Resource Group Name.
     */
    @JvmName("wlatxlwixsitttag")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("mjkmujylbgqjtioh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Name of the vCenter.
     */
    @JvmName("cgjwvjmqpaojtfdu")
    public suspend fun vcenterName(`value`: Output) {
        this.vcenterName = value
    }

    /**
     * @param value Username / Password Credentials to connect to vcenter.
     */
    @JvmName("yuxwfjdwhvvyehig")
    public suspend fun credentials(`value`: VICredentialArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param argument Username / Password Credentials to connect to vcenter.
     */
    @JvmName("kenbbdpiterhdmtw")
    public suspend fun credentials(argument: suspend VICredentialArgsBuilder.() -> Unit) {
        val toBeMapped = VICredentialArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.credentials = mapped
    }

    /**
     * @param value Gets or sets the extended location.
     */
    @JvmName("hyutxalsrhqaiyjk")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument Gets or sets the extended location.
     */
    @JvmName("gcufbrctwigavfjv")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

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

    /**
     * @param value Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.  If supported, the resource provider must validate and persist this value.
     */
    @JvmName("ktnnpswrvngxrceq")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

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

    /**
     * @param value Gets or sets the port of the vCenter.
     */
    @JvmName("qnpyvbgcymjlpxbi")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The Resource Group Name.
     */
    @JvmName("rpduevsmxrrphixo")
    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 Resource tags.
     */
    @JvmName("atejthnstylmuqht")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    /**
     * @param value Name of the vCenter.
     */
    @JvmName("vjxpuyyggxqbbyfw")
    public suspend fun vcenterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vcenterName = mapped
    }

    internal fun build(): VCenterArgs = VCenterArgs(
        credentials = credentials,
        extendedLocation = extendedLocation,
        fqdn = fqdn,
        kind = kind,
        location = location,
        port = port,
        resourceGroupName = resourceGroupName,
        tags = tags,
        vcenterName = vcenterName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy