![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.databoxedge.kotlin.ContainerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
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.databoxedge.kotlin
import com.pulumi.azurenative.databoxedge.ContainerArgs.builder
import com.pulumi.azurenative.databoxedge.kotlin.enums.AzureContainerDataFormat
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents a container on the Data Box Edge/Gateway device.
* Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
* Other available API versions: 2023-01-01-preview, 2023-07-01, 2023-12-01.
* ## Example Usage
* ### ContainerPut
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var container = new AzureNative.DataBoxEdge.Container("container", new()
* {
* ContainerName = "blobcontainer1",
* DataFormat = AzureNative.DataBoxEdge.AzureContainerDataFormat.BlockBlob,
* DeviceName = "testedgedevice",
* ResourceGroupName = "GroupForEdgeAutomation",
* StorageAccountName = "storageaccount1",
* });
* });
* ```
* ```go
* package main
* import (
* databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := databoxedge.NewContainer(ctx, "container", &databoxedge.ContainerArgs{
* ContainerName: pulumi.String("blobcontainer1"),
* DataFormat: pulumi.String(databoxedge.AzureContainerDataFormatBlockBlob),
* DeviceName: pulumi.String("testedgedevice"),
* ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
* StorageAccountName: pulumi.String("storageaccount1"),
* })
* 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.databoxedge.Container;
* import com.pulumi.azurenative.databoxedge.ContainerArgs;
* 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 container = new Container("container", ContainerArgs.builder()
* .containerName("blobcontainer1")
* .dataFormat("BlockBlob")
* .deviceName("testedgedevice")
* .resourceGroupName("GroupForEdgeAutomation")
* .storageAccountName("storageaccount1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:databoxedge:Container blobcontainer-5e155efe /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccounts/{storageAccountName}/containers/{containerName}
* ```
* @property containerName The container name.
* @property dataFormat DataFormat for Container
* @property deviceName The device name.
* @property resourceGroupName The resource group name.
* @property storageAccountName The Storage Account Name
*/
public data class ContainerArgs(
public val containerName: Output? = null,
public val dataFormat: Output>? = null,
public val deviceName: Output? = null,
public val resourceGroupName: Output? = null,
public val storageAccountName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.databoxedge.ContainerArgs =
com.pulumi.azurenative.databoxedge.ContainerArgs.builder()
.containerName(containerName?.applyValue({ args0 -> args0 }))
.dataFormat(
dataFormat?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.deviceName(deviceName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.storageAccountName(storageAccountName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerArgs].
*/
@PulumiTagMarker
public class ContainerArgsBuilder internal constructor() {
private var containerName: Output? = null
private var dataFormat: Output>? = null
private var deviceName: Output? = null
private var resourceGroupName: Output? = null
private var storageAccountName: Output? = null
/**
* @param value The container name.
*/
@JvmName("uoomakumjjnchiof")
public suspend fun containerName(`value`: Output) {
this.containerName = value
}
/**
* @param value DataFormat for Container
*/
@JvmName("xlwxmrejpqdmuvqj")
public suspend fun dataFormat(`value`: Output>) {
this.dataFormat = value
}
/**
* @param value The device name.
*/
@JvmName("kjsdkwytxbgbojyf")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value The resource group name.
*/
@JvmName("wqylixolvqiraxvj")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The Storage Account Name
*/
@JvmName("tvnlrnigwhhioiut")
public suspend fun storageAccountName(`value`: Output) {
this.storageAccountName = value
}
/**
* @param value The container name.
*/
@JvmName("gesninxcymwcgbdu")
public suspend fun containerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.containerName = mapped
}
/**
* @param value DataFormat for Container
*/
@JvmName("tbywrmpjbpyuqdku")
public suspend fun dataFormat(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataFormat = mapped
}
/**
* @param value DataFormat for Container
*/
@JvmName("rbwgregytkawbmyp")
public fun dataFormat(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataFormat = mapped
}
/**
* @param value DataFormat for Container
*/
@JvmName("ohqpolsvhukkvykn")
public fun dataFormat(`value`: AzureContainerDataFormat) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataFormat = mapped
}
/**
* @param value The device name.
*/
@JvmName("thmuohsvpfmyqbam")
public suspend fun deviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value The resource group name.
*/
@JvmName("udkycgaylhrnbivg")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The Storage Account Name
*/
@JvmName("hyeexwdqiyjulwnv")
public suspend fun storageAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountName = mapped
}
internal fun build(): ContainerArgs = ContainerArgs(
containerName = containerName,
dataFormat = dataFormat,
deviceName = deviceName,
resourceGroupName = resourceGroupName,
storageAccountName = storageAccountName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy