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

com.pulumi.azurenative.storsimple.kotlin.VolumeArgs.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.storsimple.kotlin

import com.pulumi.azurenative.storsimple.VolumeArgs.builder
import com.pulumi.azurenative.storsimple.kotlin.enums.Kind
import com.pulumi.azurenative.storsimple.kotlin.enums.MonitoringStatus
import com.pulumi.azurenative.storsimple.kotlin.enums.VolumeStatus
import com.pulumi.azurenative.storsimple.kotlin.enums.VolumeType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The volume.
 * Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 2017-06-01.
 * ## Example Usage
 * ### VolumesCreateOrUpdate
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var volume = new AzureNative.StorSimple.Volume("volume", new()
 *     {
 *         AccessControlRecordIds = new[]
 *         {
 *             "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2",
 *         },
 *         DeviceName = "Device05ForSDKTest",
 *         ManagerName = "ManagerForSDKTest1",
 *         MonitoringStatus = AzureNative.StorSimple.MonitoringStatus.Enabled,
 *         ResourceGroupName = "ResourceGroupForSDKTest",
 *         SizeInBytes = 5368709120,
 *         VolumeContainerName = "VolumeContainerForSDKTest",
 *         VolumeName = "Volume1ForSDKTest",
 *         VolumeStatus = AzureNative.StorSimple.VolumeStatus.Offline,
 *         VolumeType = AzureNative.StorSimple.VolumeType.Tiered,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := storsimple.NewVolume(ctx, "volume", &storsimple.VolumeArgs{
 * 			AccessControlRecordIds: pulumi.StringArray{
 * 				pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2"),
 * 			},
 * 			DeviceName:          pulumi.String("Device05ForSDKTest"),
 * 			ManagerName:         pulumi.String("ManagerForSDKTest1"),
 * 			MonitoringStatus:    storsimple.MonitoringStatusEnabled,
 * 			ResourceGroupName:   pulumi.String("ResourceGroupForSDKTest"),
 * 			SizeInBytes:         pulumi.Float64(5368709120),
 * 			VolumeContainerName: pulumi.String("VolumeContainerForSDKTest"),
 * 			VolumeName:          pulumi.String("Volume1ForSDKTest"),
 * 			VolumeStatus:        storsimple.VolumeStatusOffline,
 * 			VolumeType:          storsimple.VolumeTypeTiered,
 * 		})
 * 		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.storsimple.Volume;
 * import com.pulumi.azurenative.storsimple.VolumeArgs;
 * 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 volume = new Volume("volume", VolumeArgs.builder()
 *             .accessControlRecordIds("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2")
 *             .deviceName("Device05ForSDKTest")
 *             .managerName("ManagerForSDKTest1")
 *             .monitoringStatus("Enabled")
 *             .resourceGroupName("ResourceGroupForSDKTest")
 *             .sizeInBytes(5368709120)
 *             .volumeContainerName("VolumeContainerForSDKTest")
 *             .volumeName("Volume1ForSDKTest")
 *             .volumeStatus("Offline")
 *             .volumeType("Tiered")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:storsimple:Volume Volume1ForSDKTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/volumeContainers/{volumeContainerName}/volumes/{volumeName}
 * ```
 * @property accessControlRecordIds The IDs of the access control records, associated with the volume.
 * @property deviceName The device name
 * @property kind The Kind of the object. Currently only Series8000 is supported
 * @property managerName The manager name
 * @property monitoringStatus The monitoring status of the volume.
 * @property resourceGroupName The resource group name
 * @property sizeInBytes The size of the volume in bytes.
 * @property volumeContainerName The volume container name.
 * @property volumeName The volume name.
 * @property volumeStatus The volume status.
 * @property volumeType The type of the volume.
 */
public data class VolumeArgs(
    public val accessControlRecordIds: Output>? = null,
    public val deviceName: Output? = null,
    public val kind: Output? = null,
    public val managerName: Output? = null,
    public val monitoringStatus: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sizeInBytes: Output? = null,
    public val volumeContainerName: Output? = null,
    public val volumeName: Output? = null,
    public val volumeStatus: Output? = null,
    public val volumeType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storsimple.VolumeArgs =
        com.pulumi.azurenative.storsimple.VolumeArgs.builder()
            .accessControlRecordIds(
                accessControlRecordIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .deviceName(deviceName?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .managerName(managerName?.applyValue({ args0 -> args0 }))
            .monitoringStatus(monitoringStatus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sizeInBytes(sizeInBytes?.applyValue({ args0 -> args0 }))
            .volumeContainerName(volumeContainerName?.applyValue({ args0 -> args0 }))
            .volumeName(volumeName?.applyValue({ args0 -> args0 }))
            .volumeStatus(volumeStatus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .volumeType(volumeType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VolumeArgs].
 */
@PulumiTagMarker
public class VolumeArgsBuilder internal constructor() {
    private var accessControlRecordIds: Output>? = null

    private var deviceName: Output? = null

    private var kind: Output? = null

    private var managerName: Output? = null

    private var monitoringStatus: Output? = null

    private var resourceGroupName: Output? = null

    private var sizeInBytes: Output? = null

    private var volumeContainerName: Output? = null

    private var volumeName: Output? = null

    private var volumeStatus: Output? = null

    private var volumeType: Output? = null

    /**
     * @param value The IDs of the access control records, associated with the volume.
     */
    @JvmName("vgrdyweevltgcxpn")
    public suspend fun accessControlRecordIds(`value`: Output>) {
        this.accessControlRecordIds = value
    }

    @JvmName("qjyiykjdjyjivmju")
    public suspend fun accessControlRecordIds(vararg values: Output) {
        this.accessControlRecordIds = Output.all(values.asList())
    }

    /**
     * @param values The IDs of the access control records, associated with the volume.
     */
    @JvmName("dylkxjwdbphurtox")
    public suspend fun accessControlRecordIds(values: List>) {
        this.accessControlRecordIds = Output.all(values)
    }

    /**
     * @param value The device name
     */
    @JvmName("unlnualrpreodavr")
    public suspend fun deviceName(`value`: Output) {
        this.deviceName = value
    }

    /**
     * @param value The Kind of the object. Currently only Series8000 is supported
     */
    @JvmName("gfvbjeafiuehvxar")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value The manager name
     */
    @JvmName("axkfhtydndwceusu")
    public suspend fun managerName(`value`: Output) {
        this.managerName = value
    }

    /**
     * @param value The monitoring status of the volume.
     */
    @JvmName("awvovaiqpuaxdhiy")
    public suspend fun monitoringStatus(`value`: Output) {
        this.monitoringStatus = value
    }

    /**
     * @param value The resource group name
     */
    @JvmName("mdbovxekfiprsrbx")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The size of the volume in bytes.
     */
    @JvmName("gjbhheortwfjsixg")
    public suspend fun sizeInBytes(`value`: Output) {
        this.sizeInBytes = value
    }

    /**
     * @param value The volume container name.
     */
    @JvmName("ptalvksfdtnrftgh")
    public suspend fun volumeContainerName(`value`: Output) {
        this.volumeContainerName = value
    }

    /**
     * @param value The volume name.
     */
    @JvmName("whgisqfoatwkommw")
    public suspend fun volumeName(`value`: Output) {
        this.volumeName = value
    }

    /**
     * @param value The volume status.
     */
    @JvmName("byqobhvpkvflvtsc")
    public suspend fun volumeStatus(`value`: Output) {
        this.volumeStatus = value
    }

    /**
     * @param value The type of the volume.
     */
    @JvmName("qfnwtlwalpqgbxqu")
    public suspend fun volumeType(`value`: Output) {
        this.volumeType = value
    }

    /**
     * @param value The IDs of the access control records, associated with the volume.
     */
    @JvmName("tosdqxbdvvisvtgs")
    public suspend fun accessControlRecordIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessControlRecordIds = mapped
    }

    /**
     * @param values The IDs of the access control records, associated with the volume.
     */
    @JvmName("yxvemkpymojnwjyw")
    public suspend fun accessControlRecordIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessControlRecordIds = mapped
    }

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

    /**
     * @param value The Kind of the object. Currently only Series8000 is supported
     */
    @JvmName("agoxfwmwpqvunkor")
    public suspend fun kind(`value`: Kind?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

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

    /**
     * @param value The monitoring status of the volume.
     */
    @JvmName("rhqsjqmtipkbfbnn")
    public suspend fun monitoringStatus(`value`: MonitoringStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringStatus = mapped
    }

    /**
     * @param value The resource group name
     */
    @JvmName("coqjieolujqtjssd")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The size of the volume in bytes.
     */
    @JvmName("qhwilhpyjrniyqnx")
    public suspend fun sizeInBytes(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeInBytes = mapped
    }

    /**
     * @param value The volume container name.
     */
    @JvmName("iouyfybfjyasfkfx")
    public suspend fun volumeContainerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeContainerName = mapped
    }

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

    /**
     * @param value The volume status.
     */
    @JvmName("bsinrvrsmaswpkna")
    public suspend fun volumeStatus(`value`: VolumeStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeStatus = mapped
    }

    /**
     * @param value The type of the volume.
     */
    @JvmName("qnetsecnwwdmkqhe")
    public suspend fun volumeType(`value`: VolumeType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeType = mapped
    }

    internal fun build(): VolumeArgs = VolumeArgs(
        accessControlRecordIds = accessControlRecordIds,
        deviceName = deviceName,
        kind = kind,
        managerName = managerName,
        monitoringStatus = monitoringStatus,
        resourceGroupName = resourceGroupName,
        sizeInBytes = sizeInBytes,
        volumeContainerName = volumeContainerName,
        volumeName = volumeName,
        volumeStatus = volumeStatus,
        volumeType = volumeType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy