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.netapp.kotlin.BackupVaultArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.netapp.kotlin
import com.pulumi.azurenative.netapp.BackupVaultArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Backup Vault information
* Azure REST API version: 2022-11-01-preview.
* Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview.
* ## Example Usage
* ### BackupVault_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var backupVault = new AzureNative.NetApp.BackupVault("backupVault", new()
* {
* AccountName = "account1",
* BackupVaultName = "backupVault1",
* Location = "eastus",
* ResourceGroupName = "myRG",
* });
* });
* ```
* ```go
* package main
* import (
* netapp "github.com/pulumi/pulumi-azure-native-sdk/netapp/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := netapp.NewBackupVault(ctx, "backupVault", &netapp.BackupVaultArgs{
* AccountName: pulumi.String("account1"),
* BackupVaultName: pulumi.String("backupVault1"),
* Location: pulumi.String("eastus"),
* ResourceGroupName: pulumi.String("myRG"),
* })
* 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.netapp.BackupVault;
* import com.pulumi.azurenative.netapp.BackupVaultArgs;
* 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 backupVault = new BackupVault("backupVault", BackupVaultArgs.builder()
* .accountName("account1")
* .backupVaultName("backupVault1")
* .location("eastus")
* .resourceGroupName("myRG")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:netapp:BackupVault account1/backupVault1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}
* ```
* @property accountName The name of the NetApp account
* @property backupVaultName The name of the Backup Vault
* @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 BackupVaultArgs(
public val accountName: Output? = null,
public val backupVaultName: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.netapp.BackupVaultArgs =
com.pulumi.azurenative.netapp.BackupVaultArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.backupVaultName(backupVaultName?.applyValue({ args0 -> args0 }))
.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 [BackupVaultArgs].
*/
@PulumiTagMarker
public class BackupVaultArgsBuilder internal constructor() {
private var accountName: Output? = null
private var backupVaultName: Output? = null
private var location: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the NetApp account
*/
@JvmName("ojwnruaurlrhqkyf")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value The name of the Backup Vault
*/
@JvmName("slnbqnaudapkcrsy")
public suspend fun backupVaultName(`value`: Output) {
this.backupVaultName = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("jwpubmxubrkddjur")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("aaorouhhqmgwfxvm")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("surkscaapsakflsk")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the NetApp account
*/
@JvmName("xklfjkyckpicbaox")
public suspend fun accountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountName = mapped
}
/**
* @param value The name of the Backup Vault
*/
@JvmName("prgscsbkltxrijbg")
public suspend fun backupVaultName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupVaultName = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("dpmbbvaqqohxjghp")
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("vhgiymqydhtjmvct")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("mccyjndjeyluefci")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("pwpybqsekksifogr")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): BackupVaultArgs = BackupVaultArgs(
accountName = accountName,
backupVaultName = backupVaultName,
location = location,
resourceGroupName = resourceGroupName,
tags = tags,
)
}