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

com.pulumi.azurenative.databoxedge.Order Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.databoxedge;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.databoxedge.OrderArgs;
import com.pulumi.azurenative.databoxedge.outputs.AddressResponse;
import com.pulumi.azurenative.databoxedge.outputs.ContactDetailsResponse;
import com.pulumi.azurenative.databoxedge.outputs.OrderStatusResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.azurenative.databoxedge.outputs.TrackingInfoResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The order details.
 * Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2020-05-01-preview, 2022-04-01-preview, 2023-01-01-preview, 2023-07-01, 2023-12-01.
 * 
 * ## Example Usage
 * ### OrderPut
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.databoxedge.Order;
 * import com.pulumi.azurenative.databoxedge.OrderArgs;
 * import com.pulumi.azurenative.databoxedge.inputs.ContactDetailsArgs;
 * import com.pulumi.azurenative.databoxedge.inputs.AddressArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var order = new Order("order", OrderArgs.builder()
 *             .contactInformation(ContactDetailsArgs.builder()
 *                 .companyName("Microsoft")
 *                 .contactPerson("John Mcclane")
 *                 .emailList("john}{@literal @}{@code microsoft.com")
 *                 .phone("(800) 426-9400")
 *                 .build())
 *             .deviceName("testedgedevice")
 *             .resourceGroupName("GroupForEdgeAutomation")
 *             .shippingAddress(AddressArgs.builder()
 *                 .addressLine1("Microsoft Corporation")
 *                 .addressLine2("One Microsoft Way")
 *                 .addressLine3("Redmond")
 *                 .city("WA")
 *                 .country("USA")
 *                 .postalCode("98052")
 *                 .state("WA")
 *                 .build())
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:databoxedge:Order default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default * ``` * */ @ResourceType(type="azure-native:databoxedge:Order") public class Order extends com.pulumi.resources.CustomResource { /** * The contact details. * */ @Export(name="contactInformation", refs={ContactDetailsResponse.class}, tree="[0]") private Output contactInformation; /** * @return The contact details. * */ public Output contactInformation() { return this.contactInformation; } /** * Current status of the order. * */ @Export(name="currentStatus", refs={OrderStatusResponse.class}, tree="[0]") private Output currentStatus; /** * @return Current status of the order. * */ public Output currentStatus() { return this.currentStatus; } /** * Tracking information for the package delivered to the customer whether it has an original or a replacement device. * */ @Export(name="deliveryTrackingInfo", refs={List.class,TrackingInfoResponse.class}, tree="[0,1]") private Output> deliveryTrackingInfo; /** * @return Tracking information for the package delivered to the customer whether it has an original or a replacement device. * */ public Output> deliveryTrackingInfo() { return this.deliveryTrackingInfo; } /** * It specify the order api version. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return It specify the order api version. * */ public Output kind() { return this.kind; } /** * The object name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The object name. * */ public Output name() { return this.name; } /** * List of status changes in the order. * */ @Export(name="orderHistory", refs={List.class,OrderStatusResponse.class}, tree="[0,1]") private Output> orderHistory; /** * @return List of status changes in the order. * */ public Output> orderHistory() { return this.orderHistory; } /** * It specify the order resource id. * */ @Export(name="orderId", refs={String.class}, tree="[0]") private Output orderId; /** * @return It specify the order resource id. * */ public Output orderId() { return this.orderId; } /** * Tracking information for the package returned from the customer whether it has an original or a replacement device. * */ @Export(name="returnTrackingInfo", refs={List.class,TrackingInfoResponse.class}, tree="[0,1]") private Output> returnTrackingInfo; /** * @return Tracking information for the package returned from the customer whether it has an original or a replacement device. * */ public Output> returnTrackingInfo() { return this.returnTrackingInfo; } /** * Serial number of the device. * */ @Export(name="serialNumber", refs={String.class}, tree="[0]") private Output serialNumber; /** * @return Serial number of the device. * */ public Output serialNumber() { return this.serialNumber; } /** * ShipmentType of the order * */ @Export(name="shipmentType", refs={String.class}, tree="[0]") private Output shipmentType; /** * @return ShipmentType of the order * */ public Output> shipmentType() { return Codegen.optional(this.shipmentType); } /** * The shipping address. * */ @Export(name="shippingAddress", refs={AddressResponse.class}, tree="[0]") private Output shippingAddress; /** * @return The shipping address. * */ public Output> shippingAddress() { return Codegen.optional(this.shippingAddress); } /** * Metadata pertaining to creation and last modification of Order * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of Order * */ public Output systemData() { return this.systemData; } /** * The hierarchical type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The hierarchical type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Order(java.lang.String name) { this(name, OrderArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Order(java.lang.String name, OrderArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Order(java.lang.String name, OrderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:Order", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Order(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:Order", name, null, makeResourceOptions(options, id), false); } private static OrderArgs makeArgs(OrderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? OrderArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:databoxedge/v20190301:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190701:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190801:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200501preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20201201:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220301:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220401preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20221201preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230101preview:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230701:Order").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20231201:Order").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Order get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Order(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy