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

com.pulumi.azurenative.azurelargeinstance.kotlin.AzureLargeStorageInstanceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.azurelargeinstance.kotlin

import com.pulumi.azurenative.azurelargeinstance.AzureLargeStorageInstanceArgs.builder
import com.pulumi.azurenative.azurelargeinstance.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.azurelargeinstance.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.azurenative.azurelargeinstance.kotlin.inputs.StoragePropertiesArgs
import com.pulumi.azurenative.azurelargeinstance.kotlin.inputs.StoragePropertiesArgsBuilder
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

/**
 * AzureLargeStorageInstance info on Azure (ARM properties and
 * AzureLargeStorageInstance properties)
 * Azure REST API version: 2024-08-01-preview.
 * ## Example Usage
 * ### AzureLargeStorageInstance_Create
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var azureLargeStorageInstance = new AzureNative.AzureLargeInstance.AzureLargeStorageInstance("azureLargeStorageInstance", new()
 *     {
 *         AzureLargeStorageInstanceName = "myAzureLargeStorageInstance",
 *         AzureLargeStorageInstanceUniqueIdentifier = "23415635-4d7e-41dc-9598-8194f22c24e9",
 *         Location = "westus2",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProperties = new AzureNative.AzureLargeInstance.Inputs.StoragePropertiesArgs
 *         {
 *             Generation = "Gen4",
 *             HardwareType = "NetApp",
 *             OfferingType = "EPIC",
 *             StorageBillingProperties = new AzureNative.AzureLargeInstance.Inputs.StorageBillingPropertiesArgs
 *             {
 *                 BillingMode = "PAYG",
 *                 Sku = "",
 *             },
 *             StorageType = "FC",
 *             WorkloadType = "ODB",
 *         },
 *         Tags =
 *         {
 *             { "key", "value" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	azurelargeinstance "github.com/pulumi/pulumi-azure-native-sdk/azurelargeinstance/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := azurelargeinstance.NewAzureLargeStorageInstance(ctx, "azureLargeStorageInstance", &azurelargeinstance.AzureLargeStorageInstanceArgs{
 * 			AzureLargeStorageInstanceName:             pulumi.String("myAzureLargeStorageInstance"),
 * 			AzureLargeStorageInstanceUniqueIdentifier: pulumi.String("23415635-4d7e-41dc-9598-8194f22c24e9"),
 * 			Location:          pulumi.String("westus2"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProperties: &azurelargeinstance.StoragePropertiesArgs{
 * 				Generation:   pulumi.String("Gen4"),
 * 				HardwareType: pulumi.String("NetApp"),
 * 				OfferingType: pulumi.String("EPIC"),
 * 				StorageBillingProperties: &azurelargeinstance.StorageBillingPropertiesArgs{
 * 					BillingMode: pulumi.String("PAYG"),
 * 					Sku:         pulumi.String(""),
 * 				},
 * 				StorageType:  pulumi.String("FC"),
 * 				WorkloadType: pulumi.String("ODB"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"key": pulumi.String("value"),
 * 			},
 * 		})
 * 		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.azurelargeinstance.AzureLargeStorageInstance;
 * import com.pulumi.azurenative.azurelargeinstance.AzureLargeStorageInstanceArgs;
 * import com.pulumi.azurenative.azurelargeinstance.inputs.StoragePropertiesArgs;
 * import com.pulumi.azurenative.azurelargeinstance.inputs.StorageBillingPropertiesArgs;
 * 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 azureLargeStorageInstance = new AzureLargeStorageInstance("azureLargeStorageInstance", AzureLargeStorageInstanceArgs.builder()
 *             .azureLargeStorageInstanceName("myAzureLargeStorageInstance")
 *             .azureLargeStorageInstanceUniqueIdentifier("23415635-4d7e-41dc-9598-8194f22c24e9")
 *             .location("westus2")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProperties(StoragePropertiesArgs.builder()
 *                 .generation("Gen4")
 *                 .hardwareType("NetApp")
 *                 .offeringType("EPIC")
 *                 .storageBillingProperties(StorageBillingPropertiesArgs.builder()
 *                     .billingMode("PAYG")
 *                     .sku("")
 *                     .build())
 *                 .storageType("FC")
 *                 .workloadType("ODB")
 *                 .build())
 *             .tags(Map.of("key", "value"))
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:azurelargeinstance:AzureLargeStorageInstance myAzureLargeStorageInstance /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/{azureLargeStorageInstanceName}
 * ```
 * @property azureLargeStorageInstanceName Name of the AzureLargeStorageInstance.
 * @property azureLargeStorageInstanceUniqueIdentifier Specifies the AzureLargeStorageInstance unique ID.
 * @property identity The managed service identities assigned to this resource.
 * @property location The geo-location where the resource lives
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property storageProperties Specifies the storage properties for the AzureLargeStorage instance.
 * @property tags Resource tags.
 */
public data class AzureLargeStorageInstanceArgs(
    public val azureLargeStorageInstanceName: Output? = null,
    public val azureLargeStorageInstanceUniqueIdentifier: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val storageProperties: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurelargeinstance.AzureLargeStorageInstanceArgs =
        com.pulumi.azurenative.azurelargeinstance.AzureLargeStorageInstanceArgs.builder()
            .azureLargeStorageInstanceName(azureLargeStorageInstanceName?.applyValue({ args0 -> args0 }))
            .azureLargeStorageInstanceUniqueIdentifier(
                azureLargeStorageInstanceUniqueIdentifier?.applyValue({ args0 ->
                    args0
                }),
            )
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .storageProperties(storageProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AzureLargeStorageInstanceArgs].
 */
@PulumiTagMarker
public class AzureLargeStorageInstanceArgsBuilder internal constructor() {
    private var azureLargeStorageInstanceName: Output? = null

    private var azureLargeStorageInstanceUniqueIdentifier: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var storageProperties: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Name of the AzureLargeStorageInstance.
     */
    @JvmName("htawoiypqdqqwbxt")
    public suspend fun azureLargeStorageInstanceName(`value`: Output) {
        this.azureLargeStorageInstanceName = value
    }

    /**
     * @param value Specifies the AzureLargeStorageInstance unique ID.
     */
    @JvmName("mkoqldjfouqxvmws")
    public suspend fun azureLargeStorageInstanceUniqueIdentifier(`value`: Output) {
        this.azureLargeStorageInstanceUniqueIdentifier = value
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("vudauphbxrirjtya")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

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

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

    /**
     * @param value Specifies the storage properties for the AzureLargeStorage instance.
     */
    @JvmName("jybcswwdkikuyskw")
    public suspend fun storageProperties(`value`: Output) {
        this.storageProperties = value
    }

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

    /**
     * @param value Name of the AzureLargeStorageInstance.
     */
    @JvmName("vywmdtkkfbxmqsok")
    public suspend fun azureLargeStorageInstanceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureLargeStorageInstanceName = mapped
    }

    /**
     * @param value Specifies the AzureLargeStorageInstance unique ID.
     */
    @JvmName("huwrnycrthgcxlca")
    public suspend fun azureLargeStorageInstanceUniqueIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureLargeStorageInstanceUniqueIdentifier = mapped
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("nsxldkpmndvxplty")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The managed service identities assigned to this resource.
     */
    @JvmName("mxyjqovdpiavnitj")
    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("oebpbeafekiioxoc")
    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("muvfvvkyonfdbnkh")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Specifies the storage properties for the AzureLargeStorage instance.
     */
    @JvmName("pfrxupwjrtjfdqtv")
    public suspend fun storageProperties(`value`: StoragePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageProperties = mapped
    }

    /**
     * @param argument Specifies the storage properties for the AzureLargeStorage instance.
     */
    @JvmName("ffwdveaioprfwuvw")
    public suspend fun storageProperties(argument: suspend StoragePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = StoragePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageProperties = mapped
    }

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

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

    internal fun build(): AzureLargeStorageInstanceArgs = AzureLargeStorageInstanceArgs(
        azureLargeStorageInstanceName = azureLargeStorageInstanceName,
        azureLargeStorageInstanceUniqueIdentifier = azureLargeStorageInstanceUniqueIdentifier,
        identity = identity,
        location = location,
        resourceGroupName = resourceGroupName,
        storageProperties = storageProperties,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy