All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.devcenter.kotlin.DevCenterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devcenter.kotlin
import com.pulumi.azurenative.devcenter.DevCenterArgs.builder
import com.pulumi.azurenative.devcenter.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.devcenter.kotlin.inputs.ManagedServiceIdentityArgsBuilder
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
/**
* Represents a devcenter resource.
* Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2022-09-01-preview.
* Other available API versions: 2023-08-01-preview, 2023-10-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview.
* ## Example Usage
* ### DevCenters_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var devCenter = new AzureNative.DevCenter.DevCenter("devCenter", new()
* {
* DevCenterName = "Contoso",
* Location = "centralus",
* ResourceGroupName = "rg1",
* Tags =
* {
* { "CostCode", "12345" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := devcenter.NewDevCenter(ctx, "devCenter", &devcenter.DevCenterArgs{
* DevCenterName: pulumi.String("Contoso"),
* Location: pulumi.String("centralus"),
* ResourceGroupName: pulumi.String("rg1"),
* Tags: pulumi.StringMap{
* "CostCode": pulumi.String("12345"),
* },
* })
* 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.devcenter.DevCenter;
* import com.pulumi.azurenative.devcenter.DevCenterArgs;
* 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 devCenter = new DevCenter("devCenter", DevCenterArgs.builder()
* .devCenterName("Contoso")
* .location("centralus")
* .resourceGroupName("rg1")
* .tags(Map.of("CostCode", "12345"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devcenter:DevCenter Contoso /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}
* ```
* @property devCenterName The name of the devcenter.
* @property identity Managed identity properties
* @property location The geo-location where the resource lives
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class DevCenterArgs(
public val devCenterName: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devcenter.DevCenterArgs =
com.pulumi.azurenative.devcenter.DevCenterArgs.builder()
.devCenterName(devCenterName?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [DevCenterArgs].
*/
@PulumiTagMarker
public class DevCenterArgsBuilder internal constructor() {
private var devCenterName: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the devcenter.
*/
@JvmName("klmqnphuguxclvga")
public suspend fun devCenterName(`value`: Output) {
this.devCenterName = value
}
/**
* @param value Managed identity properties
*/
@JvmName("ihvhprdbnswwptab")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("tsvfbgsjlrqranjq")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("ubptevbnkxpruxby")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("wboccinrkeqdfeja")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the devcenter.
*/
@JvmName("aedleklfoexqfoba")
public suspend fun devCenterName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.devCenterName = mapped
}
/**
* @param value Managed identity properties
*/
@JvmName("tluthuhkrvgaumuh")
public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Managed identity properties
*/
@JvmName("klkkscymiysvtlhx")
public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("ejrpivnomuepkfyy")
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 resource group. The name is case insensitive.
*/
@JvmName("qgnoiujsmxwkgknx")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("sfacofwflwfuuejc")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("crkvcyhotbxnsxyk")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): DevCenterArgs = DevCenterArgs(
devCenterName = devCenterName,
identity = identity,
location = location,
resourceGroupName = resourceGroupName,
tags = tags,
)
}