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

com.pulumi.azurenative.edgeorder.OrderItemArgs 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.edgeorder;

import com.pulumi.azurenative.edgeorder.inputs.AddressDetailsArgs;
import com.pulumi.azurenative.edgeorder.inputs.OrderItemDetailsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class OrderItemArgs extends com.pulumi.resources.ResourceArgs {

    public static final OrderItemArgs Empty = new OrderItemArgs();

    /**
     * Represents shipping and return address for order item.
     * 
     */
    @Import(name="addressDetails", required=true)
    private Output addressDetails;

    /**
     * @return Represents shipping and return address for order item.
     * 
     */
    public Output addressDetails() {
        return this.addressDetails;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Id of the order to which order item belongs to.
     * 
     */
    @Import(name="orderId", required=true)
    private Output orderId;

    /**
     * @return Id of the order to which order item belongs to.
     * 
     */
    public Output orderId() {
        return this.orderId;
    }

    /**
     * Represents order item details.
     * 
     */
    @Import(name="orderItemDetails", required=true)
    private Output orderItemDetails;

    /**
     * @return Represents order item details.
     * 
     */
    public Output orderItemDetails() {
        return this.orderItemDetails;
    }

    /**
     * The name of the order item.
     * 
     */
    @Import(name="orderItemName")
    private @Nullable Output orderItemName;

    /**
     * @return The name of the order item.
     * 
     */
    public Optional> orderItemName() {
        return Optional.ofNullable(this.orderItemName);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private OrderItemArgs() {}

    private OrderItemArgs(OrderItemArgs $) {
        this.addressDetails = $.addressDetails;
        this.location = $.location;
        this.orderId = $.orderId;
        this.orderItemDetails = $.orderItemDetails;
        this.orderItemName = $.orderItemName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(OrderItemArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private OrderItemArgs $;

        public Builder() {
            $ = new OrderItemArgs();
        }

        public Builder(OrderItemArgs defaults) {
            $ = new OrderItemArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param addressDetails Represents shipping and return address for order item.
         * 
         * @return builder
         * 
         */
        public Builder addressDetails(Output addressDetails) {
            $.addressDetails = addressDetails;
            return this;
        }

        /**
         * @param addressDetails Represents shipping and return address for order item.
         * 
         * @return builder
         * 
         */
        public Builder addressDetails(AddressDetailsArgs addressDetails) {
            return addressDetails(Output.of(addressDetails));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param orderId Id of the order to which order item belongs to.
         * 
         * @return builder
         * 
         */
        public Builder orderId(Output orderId) {
            $.orderId = orderId;
            return this;
        }

        /**
         * @param orderId Id of the order to which order item belongs to.
         * 
         * @return builder
         * 
         */
        public Builder orderId(String orderId) {
            return orderId(Output.of(orderId));
        }

        /**
         * @param orderItemDetails Represents order item details.
         * 
         * @return builder
         * 
         */
        public Builder orderItemDetails(Output orderItemDetails) {
            $.orderItemDetails = orderItemDetails;
            return this;
        }

        /**
         * @param orderItemDetails Represents order item details.
         * 
         * @return builder
         * 
         */
        public Builder orderItemDetails(OrderItemDetailsArgs orderItemDetails) {
            return orderItemDetails(Output.of(orderItemDetails));
        }

        /**
         * @param orderItemName The name of the order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemName(@Nullable Output orderItemName) {
            $.orderItemName = orderItemName;
            return this;
        }

        /**
         * @param orderItemName The name of the order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemName(String orderItemName) {
            return orderItemName(Output.of(orderItemName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public OrderItemArgs build() {
            if ($.addressDetails == null) {
                throw new MissingRequiredPropertyException("OrderItemArgs", "addressDetails");
            }
            if ($.orderId == null) {
                throw new MissingRequiredPropertyException("OrderItemArgs", "orderId");
            }
            if ($.orderItemDetails == null) {
                throw new MissingRequiredPropertyException("OrderItemArgs", "orderItemDetails");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("OrderItemArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy