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

com.pulumi.azurenative.network.kotlin.VerifierWorkspaceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin

import com.pulumi.azurenative.network.VerifierWorkspaceArgs.builder
import com.pulumi.azurenative.network.kotlin.inputs.VerifierWorkspacePropertiesArgs
import com.pulumi.azurenative.network.kotlin.inputs.VerifierWorkspacePropertiesArgsBuilder
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

/**
 * Instance of Verifier Workspace.
 * Azure REST API version: 2024-01-01-preview.
 * ## Example Usage
 * ### VerifierWorkspaceCreate
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var verifierWorkspace = new AzureNative.Network.VerifierWorkspace("verifierWorkspace", new()
 *     {
 *         Location = "eastus",
 *         NetworkManagerName = "testNetworkManager",
 *         Properties = new AzureNative.Network.Inputs.VerifierWorkspacePropertiesArgs
 *         {
 *             Description = "A sample workspace",
 *         },
 *         ResourceGroupName = "rg1",
 *         WorkspaceName = "testWorkspace",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewVerifierWorkspace(ctx, "verifierWorkspace", &network.VerifierWorkspaceArgs{
 * 			Location:           pulumi.String("eastus"),
 * 			NetworkManagerName: pulumi.String("testNetworkManager"),
 * 			Properties: &network.VerifierWorkspacePropertiesArgs{
 * 				Description: pulumi.String("A sample workspace"),
 * 			},
 * 			ResourceGroupName: pulumi.String("rg1"),
 * 			WorkspaceName:     pulumi.String("testWorkspace"),
 * 		})
 * 		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.network.VerifierWorkspace;
 * import com.pulumi.azurenative.network.VerifierWorkspaceArgs;
 * import com.pulumi.azurenative.network.inputs.VerifierWorkspacePropertiesArgs;
 * 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 verifierWorkspace = new VerifierWorkspace("verifierWorkspace", VerifierWorkspaceArgs.builder()
 *             .location("eastus")
 *             .networkManagerName("testNetworkManager")
 *             .properties(VerifierWorkspacePropertiesArgs.builder()
 *                 .description("A sample workspace")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .workspaceName("testWorkspace")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:network:VerifierWorkspace testWorkspace /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}
 * ```
 * @property location The geo-location where the resource lives
 * @property networkManagerName The name of the network manager.
 * @property properties Properties of Verifier Workspace resource.
 * @property resourceGroupName The name of the resource group.
 * @property tags Resource tags.
 * @property workspaceName Workspace name.
 */
public data class VerifierWorkspaceArgs(
    public val location: Output? = null,
    public val networkManagerName: Output? = null,
    public val properties: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val workspaceName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.VerifierWorkspaceArgs =
        com.pulumi.azurenative.network.VerifierWorkspaceArgs.builder()
            .location(location?.applyValue({ args0 -> args0 }))
            .networkManagerName(networkManagerName?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VerifierWorkspaceArgs].
 */
@PulumiTagMarker
public class VerifierWorkspaceArgsBuilder internal constructor() {
    private var location: Output? = null

    private var networkManagerName: Output? = null

    private var properties: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var workspaceName: Output? = null

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

    /**
     * @param value The name of the network manager.
     */
    @JvmName("lcwxnpjcwcvhluqb")
    public suspend fun networkManagerName(`value`: Output) {
        this.networkManagerName = value
    }

    /**
     * @param value Properties of Verifier Workspace resource.
     */
    @JvmName("vpmsqfjmjfxcsatw")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

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

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

    /**
     * @param value Workspace name.
     */
    @JvmName("mxawfgmkyurluior")
    public suspend fun workspaceName(`value`: Output) {
        this.workspaceName = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("sjoqirxkcuhqnpca")
    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 network manager.
     */
    @JvmName("iyqbqhbyriiddkru")
    public suspend fun networkManagerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkManagerName = mapped
    }

    /**
     * @param value Properties of Verifier Workspace resource.
     */
    @JvmName("toixodqxqkrwxdxg")
    public suspend fun properties(`value`: VerifierWorkspacePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument Properties of Verifier Workspace resource.
     */
    @JvmName("tyjfxphiosasrwqn")
    public suspend fun properties(argument: suspend VerifierWorkspacePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = VerifierWorkspacePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

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

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

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

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

    internal fun build(): VerifierWorkspaceArgs = VerifierWorkspaceArgs(
        location = location,
        networkManagerName = networkManagerName,
        properties = properties,
        resourceGroupName = resourceGroupName,
        tags = tags,
        workspaceName = workspaceName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy