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.mixedreality.kotlin.ObjectAnchorsAccountArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.mixedreality.kotlin
import com.pulumi.azurenative.mixedreality.ObjectAnchorsAccountArgs.builder
import com.pulumi.azurenative.mixedreality.kotlin.inputs.IdentityArgs
import com.pulumi.azurenative.mixedreality.kotlin.inputs.IdentityArgsBuilder
import com.pulumi.azurenative.mixedreality.kotlin.inputs.ObjectAnchorsAccountIdentityArgs
import com.pulumi.azurenative.mixedreality.kotlin.inputs.ObjectAnchorsAccountIdentityArgsBuilder
import com.pulumi.azurenative.mixedreality.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.mixedreality.kotlin.inputs.SkuArgsBuilder
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
/**
* ObjectAnchorsAccount Response.
* Azure REST API version: 2021-03-01-preview. Prior API version in Azure Native 1.x: 2021-03-01-preview.
* ## Example Usage
* ### Create object anchors account
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var objectAnchorsAccount = new AzureNative.MixedReality.ObjectAnchorsAccount("objectAnchorsAccount", new()
* {
* AccountName = "MyAccount",
* Identity = new AzureNative.MixedReality.Inputs.ObjectAnchorsAccountIdentityArgs
* {
* Type = AzureNative.MixedReality.ResourceIdentityType.SystemAssigned,
* },
* Location = "eastus2euap",
* ResourceGroupName = "MyResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* mixedreality "github.com/pulumi/pulumi-azure-native-sdk/mixedreality/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := mixedreality.NewObjectAnchorsAccount(ctx, "objectAnchorsAccount", &mixedreality.ObjectAnchorsAccountArgs{
* AccountName: pulumi.String("MyAccount"),
* Identity: &mixedreality.ObjectAnchorsAccountIdentityArgs{
* Type: mixedreality.ResourceIdentityTypeSystemAssigned,
* },
* Location: pulumi.String("eastus2euap"),
* ResourceGroupName: pulumi.String("MyResourceGroup"),
* })
* 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.mixedreality.ObjectAnchorsAccount;
* import com.pulumi.azurenative.mixedreality.ObjectAnchorsAccountArgs;
* import com.pulumi.azurenative.mixedreality.inputs.ObjectAnchorsAccountIdentityArgs;
* 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 objectAnchorsAccount = new ObjectAnchorsAccount("objectAnchorsAccount", ObjectAnchorsAccountArgs.builder()
* .accountName("MyAccount")
* .identity(ObjectAnchorsAccountIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .location("eastus2euap")
* .resourceGroupName("MyResourceGroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:mixedreality:ObjectAnchorsAccount MyAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}
* ```
* @property accountName Name of an Mixed Reality Account.
* @property identity
* @property kind The kind of account, if supported
* @property location The geo-location where the resource lives
* @property plan The plan associated with this account
* @property resourceGroupName Name of an Azure resource group.
* @property sku The sku associated with this account
* @property storageAccountName The name of the storage account associated with this accountId
* @property tags Resource tags.
*/
public data class ObjectAnchorsAccountArgs(
public val accountName: Output? = null,
public val identity: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val plan: Output? = null,
public val resourceGroupName: Output? = null,
public val sku: Output? = null,
public val storageAccountName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.mixedreality.ObjectAnchorsAccountArgs =
com.pulumi.azurenative.mixedreality.ObjectAnchorsAccountArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kind(kind?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.plan(plan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.storageAccountName(storageAccountName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ObjectAnchorsAccountArgs].
*/
@PulumiTagMarker
public class ObjectAnchorsAccountArgsBuilder internal constructor() {
private var accountName: Output? = null
private var identity: Output? = null
private var kind: Output? = null
private var location: Output? = null
private var plan: Output? = null
private var resourceGroupName: Output? = null
private var sku: Output? = null
private var storageAccountName: Output? = null
private var tags: Output>? = null
/**
* @param value Name of an Mixed Reality Account.
*/
@JvmName("prrocjdpqtcsnhgn")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value
*/
@JvmName("phfvyomniyrlxrdr")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The kind of account, if supported
*/
@JvmName("spifaaiecoorangy")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("onvcowpgssjbyhgi")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The plan associated with this account
*/
@JvmName("qadywywjewplgpbw")
public suspend fun plan(`value`: Output) {
this.plan = value
}
/**
* @param value Name of an Azure resource group.
*/
@JvmName("avuapppjqckmwjwp")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The sku associated with this account
*/
@JvmName("pyqnwqxvgnqjysse")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value The name of the storage account associated with this accountId
*/
@JvmName("oaiplcuhrlkowrqy")
public suspend fun storageAccountName(`value`: Output) {
this.storageAccountName = value
}
/**
* @param value Resource tags.
*/
@JvmName("xyvmvqeaeumyrjgv")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Name of an Mixed Reality Account.
*/
@JvmName("pxlxupiuupsuulje")
public suspend fun accountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountName = mapped
}
/**
* @param value
*/
@JvmName("kjljofwesddxtshj")
public suspend fun identity(`value`: ObjectAnchorsAccountIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument
*/
@JvmName("yguikkmbamhmrixt")
public suspend fun identity(argument: suspend ObjectAnchorsAccountIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ObjectAnchorsAccountIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The kind of account, if supported
*/
@JvmName("ijwjdbkvttfupbfj")
public suspend fun kind(`value`: SkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param argument The kind of account, if supported
*/
@JvmName("rcojmhhxbykippyv")
public suspend fun kind(argument: suspend SkuArgsBuilder.() -> Unit) {
val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.kind = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("dmtpklwklgqwqkqi")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The plan associated with this account
*/
@JvmName("dscinfachbywikki")
public suspend fun plan(`value`: IdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.plan = mapped
}
/**
* @param argument The plan associated with this account
*/
@JvmName("ynbhvccsygqniqjk")
public suspend fun plan(argument: suspend IdentityArgsBuilder.() -> Unit) {
val toBeMapped = IdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.plan = mapped
}
/**
* @param value Name of an Azure resource group.
*/
@JvmName("waclbocypwbwbmdi")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The sku associated with this account
*/
@JvmName("wujudookyporkrto")
public suspend fun sku(`value`: SkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param argument The sku associated with this account
*/
@JvmName("hrrqltairbhctjig")
public suspend fun sku(argument: suspend SkuArgsBuilder.() -> Unit) {
val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sku = mapped
}
/**
* @param value The name of the storage account associated with this accountId
*/
@JvmName("pukuxkkfjhdjcrtu")
public suspend fun storageAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("frxyiggrqvhjwond")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("dnimlrrutcpbiuxs")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ObjectAnchorsAccountArgs = ObjectAnchorsAccountArgs(
accountName = accountName,
identity = identity,
kind = kind,
location = location,
plan = plan,
resourceGroupName = resourceGroupName,
sku = sku,
storageAccountName = storageAccountName,
tags = tags,
)
}