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

com.pulumi.azurenative.netapp.kotlin.SubvolumeArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.netapp.kotlin

import com.pulumi.azurenative.netapp.SubvolumeArgs.builder
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.jvm.JvmName

/**
 * Subvolume Information properties
 * Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2021-10-01.
 * Other available API versions: 2022-11-01-preview, 2023-05-01, 2023-05-01-preview, 2023-07-01, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview.
 * ## Example Usage
 * ### Subvolumes_Create
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var subvolume = new AzureNative.NetApp.Subvolume("subvolume", new()
 *     {
 *         AccountName = "account1",
 *         Path = "/subvolumePath",
 *         PoolName = "pool1",
 *         ResourceGroupName = "myRG",
 *         SubvolumeName = "subvolume1",
 *         VolumeName = "volume1",
 *     });
 * });
 * ```
 * ```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.NewSubvolume(ctx, "subvolume", &netapp.SubvolumeArgs{
 * 			AccountName:       pulumi.String("account1"),
 * 			Path:              pulumi.String("/subvolumePath"),
 * 			PoolName:          pulumi.String("pool1"),
 * 			ResourceGroupName: pulumi.String("myRG"),
 * 			SubvolumeName:     pulumi.String("subvolume1"),
 * 			VolumeName:        pulumi.String("volume1"),
 * 		})
 * 		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.Subvolume;
 * import com.pulumi.azurenative.netapp.SubvolumeArgs;
 * 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 subvolume = new Subvolume("subvolume", SubvolumeArgs.builder()
 *             .accountName("account1")
 *             .path("/subvolumePath")
 *             .poolName("pool1")
 *             .resourceGroupName("myRG")
 *             .subvolumeName("subvolume1")
 *             .volumeName("volume1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:netapp:Subvolume account1/pool1/volume1/subvolume1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}
 * ```
 * @property accountName The name of the NetApp account
 * @property parentPath parent path to the subvolume
 * @property path Path to the subvolume
 * @property poolName The name of the capacity pool
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property size Truncate subvolume to the provided size in bytes
 * @property subvolumeName The name of the subvolume.
 * @property volumeName The name of the volume
 */
public data class SubvolumeArgs(
    public val accountName: Output? = null,
    public val parentPath: Output? = null,
    public val path: Output? = null,
    public val poolName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val size: Output? = null,
    public val subvolumeName: Output? = null,
    public val volumeName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.netapp.SubvolumeArgs =
        com.pulumi.azurenative.netapp.SubvolumeArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .parentPath(parentPath?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .poolName(poolName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .size(size?.applyValue({ args0 -> args0 }))
            .subvolumeName(subvolumeName?.applyValue({ args0 -> args0 }))
            .volumeName(volumeName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SubvolumeArgs].
 */
@PulumiTagMarker
public class SubvolumeArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var parentPath: Output? = null

    private var path: Output? = null

    private var poolName: Output? = null

    private var resourceGroupName: Output? = null

    private var size: Output? = null

    private var subvolumeName: Output? = null

    private var volumeName: Output? = null

    /**
     * @param value The name of the NetApp account
     */
    @JvmName("vjkcufncvscnqora")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value parent path to the subvolume
     */
    @JvmName("mjngdtoxaoobnpjh")
    public suspend fun parentPath(`value`: Output) {
        this.parentPath = value
    }

    /**
     * @param value Path to the subvolume
     */
    @JvmName("qorgcqgaufqhgmph")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The name of the capacity pool
     */
    @JvmName("jxcxrwdesgthycrq")
    public suspend fun poolName(`value`: Output) {
        this.poolName = value
    }

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

    /**
     * @param value Truncate subvolume to the provided size in bytes
     */
    @JvmName("hebpngtqmdmaelaa")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value The name of the subvolume.
     */
    @JvmName("fwjcxqioedqbvobp")
    public suspend fun subvolumeName(`value`: Output) {
        this.subvolumeName = value
    }

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

    /**
     * @param value The name of the NetApp account
     */
    @JvmName("lrnbreiadtwhmlal")
    public suspend fun accountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value parent path to the subvolume
     */
    @JvmName("irmobskdlsjksecb")
    public suspend fun parentPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parentPath = mapped
    }

    /**
     * @param value Path to the subvolume
     */
    @JvmName("xlmhigxhmsnepcet")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The name of the capacity pool
     */
    @JvmName("ukytfqickgmsacbw")
    public suspend fun poolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.poolName = mapped
    }

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

    /**
     * @param value Truncate subvolume to the provided size in bytes
     */
    @JvmName("wcmsjhvcipnnnpwk")
    public suspend fun size(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

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

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

    internal fun build(): SubvolumeArgs = SubvolumeArgs(
        accountName = accountName,
        parentPath = parentPath,
        path = path,
        poolName = poolName,
        resourceGroupName = resourceGroupName,
        size = size,
        subvolumeName = subvolumeName,
        volumeName = volumeName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy