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

com.pulumi.azurenative.portal.kotlin.ConsoleWithLocationArgs.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.portal.kotlin

import com.pulumi.azurenative.portal.ConsoleWithLocationArgs.builder
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

/**
 * Cloud shell console
 * Azure REST API version: 2018-10-01. Prior API version in Azure Native 1.x: 2018-10-01.
 * ## Example Usage
 * ### PutConsole
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var consoleWithLocation = new AzureNative.Portal.ConsoleWithLocation("consoleWithLocation", new()
 *     {
 *         ConsoleName = "default",
 *         Location = "eastus",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	portal "github.com/pulumi/pulumi-azure-native-sdk/portal/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := portal.NewConsoleWithLocation(ctx, "consoleWithLocation", &portal.ConsoleWithLocationArgs{
 * 			ConsoleName: pulumi.String("default"),
 * 			Location:    pulumi.String("eastus"),
 * 		})
 * 		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.portal.ConsoleWithLocation;
 * import com.pulumi.azurenative.portal.ConsoleWithLocationArgs;
 * 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 consoleWithLocation = new ConsoleWithLocation("consoleWithLocation", ConsoleWithLocationArgs.builder()
 *             .consoleName("default")
 *             .location("eastus")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:portal:ConsoleWithLocation myresource1 /providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}
 * ```
 * @property consoleName The name of the console
 * @property location The provider location
 */
public data class ConsoleWithLocationArgs(
    public val consoleName: Output? = null,
    public val location: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.portal.ConsoleWithLocationArgs =
        com.pulumi.azurenative.portal.ConsoleWithLocationArgs.builder()
            .consoleName(consoleName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConsoleWithLocationArgs].
 */
@PulumiTagMarker
public class ConsoleWithLocationArgsBuilder internal constructor() {
    private var consoleName: Output? = null

    private var location: Output? = null

    /**
     * @param value The name of the console
     */
    @JvmName("efyvfjnugpwcmnyl")
    public suspend fun consoleName(`value`: Output) {
        this.consoleName = value
    }

    /**
     * @param value The provider location
     */
    @JvmName("htglqnwkkdskpqoa")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

    /**
     * @param value The provider location
     */
    @JvmName("uxosmljjssnifwxe")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    internal fun build(): ConsoleWithLocationArgs = ConsoleWithLocationArgs(
        consoleName = consoleName,
        location = location,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy