![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.databoxedge.kotlin.OrderArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.databoxedge.kotlin
import com.pulumi.azure.databoxedge.OrderArgs.builder
import com.pulumi.azure.databoxedge.kotlin.inputs.OrderContactArgs
import com.pulumi.azure.databoxedge.kotlin.inputs.OrderContactArgsBuilder
import com.pulumi.azure.databoxedge.kotlin.inputs.OrderShipmentAddressArgs
import com.pulumi.azure.databoxedge.kotlin.inputs.OrderShipmentAddressArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Manages a Databox Edge Order.
* !> Creation of Databox Edge Order is not supported by the Azure API - as such the `azure.databoxedge.Order` resource is deprecated and will be removed in v4.0 of the AzureRM Provider.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-databoxedge",
* location: "West Europe",
* });
* const exampleDevice = new azure.databoxedge.Device("example", {
* name: "example-device",
* resourceGroupName: example.name,
* location: example.location,
* skuName: "EdgeP_Base-Standard",
* });
* const exampleOrder = new azure.databoxedge.Order("example", {
* resourceGroupName: example.name,
* deviceName: exampleDevice.name,
* contact: {
* name: "TerraForm Test",
* emails: ["creator4983@FlynnsArcade.com"],
* companyName: "Flynn's Arcade",
* phoneNumber: "(800) 555-1234",
* },
* shipmentAddress: {
* addresses: ["One Microsoft Way"],
* city: "Redmond",
* postalCode: "98052",
* state: "WA",
* country: "United States",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-databoxedge",
* location="West Europe")
* example_device = azure.databoxedge.Device("example",
* name="example-device",
* resource_group_name=example.name,
* location=example.location,
* sku_name="EdgeP_Base-Standard")
* example_order = azure.databoxedge.Order("example",
* resource_group_name=example.name,
* device_name=example_device.name,
* contact={
* "name": "TerraForm Test",
* "emails": ["creator4983@FlynnsArcade.com"],
* "company_name": "Flynn's Arcade",
* "phone_number": "(800) 555-1234",
* },
* shipment_address={
* "addresses": ["One Microsoft Way"],
* "city": "Redmond",
* "postal_code": "98052",
* "state": "WA",
* "country": "United States",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-databoxedge",
* Location = "West Europe",
* });
* var exampleDevice = new Azure.DataboxEdge.Device("example", new()
* {
* Name = "example-device",
* ResourceGroupName = example.Name,
* Location = example.Location,
* SkuName = "EdgeP_Base-Standard",
* });
* var exampleOrder = new Azure.DataboxEdge.Order("example", new()
* {
* ResourceGroupName = example.Name,
* DeviceName = exampleDevice.Name,
* Contact = new Azure.DataboxEdge.Inputs.OrderContactArgs
* {
* Name = "TerraForm Test",
* Emails = new[]
* {
* "[email protected]",
* },
* CompanyName = "Flynn's Arcade",
* PhoneNumber = "(800) 555-1234",
* },
* ShipmentAddress = new Azure.DataboxEdge.Inputs.OrderShipmentAddressArgs
* {
* Addresses = new[]
* {
* "One Microsoft Way",
* },
* City = "Redmond",
* PostalCode = "98052",
* State = "WA",
* Country = "United States",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/databoxedge"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-databoxedge"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleDevice, err := databoxedge.NewDevice(ctx, "example", &databoxedge.DeviceArgs{
* Name: pulumi.String("example-device"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* SkuName: pulumi.String("EdgeP_Base-Standard"),
* })
* if err != nil {
* return err
* }
* _, err = databoxedge.NewOrder(ctx, "example", &databoxedge.OrderArgs{
* ResourceGroupName: example.Name,
* DeviceName: exampleDevice.Name,
* Contact: &databoxedge.OrderContactArgs{
* Name: pulumi.String("TerraForm Test"),
* Emails: pulumi.StringArray{
* pulumi.String("[email protected]"),
* },
* CompanyName: pulumi.String("Flynn's Arcade"),
* PhoneNumber: pulumi.String("(800) 555-1234"),
* },
* ShipmentAddress: &databoxedge.OrderShipmentAddressArgs{
* Addresses: pulumi.StringArray{
* pulumi.String("One Microsoft Way"),
* },
* City: pulumi.String("Redmond"),
* PostalCode: pulumi.String("98052"),
* State: pulumi.String("WA"),
* Country: pulumi.String("United States"),
* },
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.databoxedge.Device;
* import com.pulumi.azure.databoxedge.DeviceArgs;
* import com.pulumi.azure.databoxedge.Order;
* import com.pulumi.azure.databoxedge.OrderArgs;
* import com.pulumi.azure.databoxedge.inputs.OrderContactArgs;
* import com.pulumi.azure.databoxedge.inputs.OrderShipmentAddressArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-databoxedge")
* .location("West Europe")
* .build());
* var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
* .name("example-device")
* .resourceGroupName(example.name())
* .location(example.location())
* .skuName("EdgeP_Base-Standard")
* .build());
* var exampleOrder = new Order("exampleOrder", OrderArgs.builder()
* .resourceGroupName(example.name())
* .deviceName(exampleDevice.name())
* .contact(OrderContactArgs.builder()
* .name("TerraForm Test")
* .emails("[email protected]")
* .companyName("Flynn's Arcade")
* .phoneNumber("(800) 555-1234")
* .build())
* .shipmentAddress(OrderShipmentAddressArgs.builder()
* .addresses("One Microsoft Way")
* .city("Redmond")
* .postalCode("98052")
* .state("WA")
* .country("United States")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-databoxedge
* location: West Europe
* exampleDevice:
* type: azure:databoxedge:Device
* name: example
* properties:
* name: example-device
* resourceGroupName: ${example.name}
* location: ${example.location}
* skuName: EdgeP_Base-Standard
* exampleOrder:
* type: azure:databoxedge:Order
* name: example
* properties:
* resourceGroupName: ${example.name}
* deviceName: ${exampleDevice.name}
* contact:
* name: TerraForm Test
* emails:
* - [email protected]
* companyName: Flynn's Arcade
* phoneNumber: (800) 555-1234
* shipmentAddress:
* addresses:
* - One Microsoft Way
* city: Redmond
* postalCode: '98052'
* state: WA
* country: United States
* ```
*
* ## Import
* Databox Edge Orders can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:databoxedge/order:Order example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/device1
* ```
* @property contact A `contact` block as defined below.
* @property deviceName The name of the Databox Edge Device this order is for. Changing this forces a new Databox Edge Order to be created.
* @property resourceGroupName The name of the Resource Group where the Databox Edge Order should exist. Changing this forces a new Databox Edge Order to be created.
* @property shipmentAddress A `shipment_address` block as defined below.
*/
public data class OrderArgs(
public val contact: Output? = null,
public val deviceName: Output? = null,
public val resourceGroupName: Output? = null,
public val shipmentAddress: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.databoxedge.OrderArgs =
com.pulumi.azure.databoxedge.OrderArgs.builder()
.contact(contact?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.deviceName(deviceName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.shipmentAddress(
shipmentAddress?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [OrderArgs].
*/
@PulumiTagMarker
public class OrderArgsBuilder internal constructor() {
private var contact: Output? = null
private var deviceName: Output? = null
private var resourceGroupName: Output? = null
private var shipmentAddress: Output? = null
/**
* @param value A `contact` block as defined below.
*/
@JvmName("ackohtwyidolqgew")
public suspend fun contact(`value`: Output) {
this.contact = value
}
/**
* @param value The name of the Databox Edge Device this order is for. Changing this forces a new Databox Edge Order to be created.
*/
@JvmName("orrxxcjsyekylihy")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value The name of the Resource Group where the Databox Edge Order should exist. Changing this forces a new Databox Edge Order to be created.
*/
@JvmName("crhwyjsgmbuqfhji")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value A `shipment_address` block as defined below.
*/
@JvmName("mkdiagferawchqpe")
public suspend fun shipmentAddress(`value`: Output) {
this.shipmentAddress = value
}
/**
* @param value A `contact` block as defined below.
*/
@JvmName("odijgtwslccykjqq")
public suspend fun contact(`value`: OrderContactArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contact = mapped
}
/**
* @param argument A `contact` block as defined below.
*/
@JvmName("hdnxqichpmuaasrb")
public suspend fun contact(argument: suspend OrderContactArgsBuilder.() -> Unit) {
val toBeMapped = OrderContactArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.contact = mapped
}
/**
* @param value The name of the Databox Edge Device this order is for. Changing this forces a new Databox Edge Order to be created.
*/
@JvmName("igdijnspselydrrx")
public suspend fun deviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value The name of the Resource Group where the Databox Edge Order should exist. Changing this forces a new Databox Edge Order to be created.
*/
@JvmName("qbgemsnyirchdlpv")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value A `shipment_address` block as defined below.
*/
@JvmName("dosuyjxvnsvumauv")
public suspend fun shipmentAddress(`value`: OrderShipmentAddressArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.shipmentAddress = mapped
}
/**
* @param argument A `shipment_address` block as defined below.
*/
@JvmName("enbvfyldwjsssrjf")
public suspend fun shipmentAddress(argument: suspend OrderShipmentAddressArgsBuilder.() -> Unit) {
val toBeMapped = OrderShipmentAddressArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.shipmentAddress = mapped
}
internal fun build(): OrderArgs = OrderArgs(
contact = contact,
deviceName = deviceName,
resourceGroupName = resourceGroupName,
shipmentAddress = shipmentAddress,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy