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

com.pulumi.azurenative.edgeorder.inputs.OrderItemDetailsArgs Maven / Gradle / Ivy

// *** 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.inputs;

import com.pulumi.azurenative.edgeorder.enums.OrderItemType;
import com.pulumi.azurenative.edgeorder.enums.OrderMode;
import com.pulumi.azurenative.edgeorder.inputs.PreferencesArgs;
import com.pulumi.azurenative.edgeorder.inputs.ProductDetailsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Order item details
 * 
 */
public final class OrderItemDetailsArgs extends com.pulumi.resources.ResourceArgs {

    public static final OrderItemDetailsArgs Empty = new OrderItemDetailsArgs();

    /**
     * Additional notification email list
     * 
     */
    @Import(name="notificationEmailList")
    private @Nullable Output> notificationEmailList;

    /**
     * @return Additional notification email list
     * 
     */
    public Optional>> notificationEmailList() {
        return Optional.ofNullable(this.notificationEmailList);
    }

    /**
     * Defines the mode of the Order item.
     * 
     */
    @Import(name="orderItemMode")
    private @Nullable Output> orderItemMode;

    /**
     * @return Defines the mode of the Order item.
     * 
     */
    public Optional>> orderItemMode() {
        return Optional.ofNullable(this.orderItemMode);
    }

    /**
     * Order item type.
     * 
     */
    @Import(name="orderItemType", required=true)
    private Output> orderItemType;

    /**
     * @return Order item type.
     * 
     */
    public Output> orderItemType() {
        return this.orderItemType;
    }

    /**
     * Customer notification Preferences
     * 
     */
    @Import(name="preferences")
    private @Nullable Output preferences;

    /**
     * @return Customer notification Preferences
     * 
     */
    public Optional> preferences() {
        return Optional.ofNullable(this.preferences);
    }

    /**
     * Unique identifier for configuration.
     * 
     */
    @Import(name="productDetails", required=true)
    private Output productDetails;

    /**
     * @return Unique identifier for configuration.
     * 
     */
    public Output productDetails() {
        return this.productDetails;
    }

    private OrderItemDetailsArgs() {}

    private OrderItemDetailsArgs(OrderItemDetailsArgs $) {
        this.notificationEmailList = $.notificationEmailList;
        this.orderItemMode = $.orderItemMode;
        this.orderItemType = $.orderItemType;
        this.preferences = $.preferences;
        this.productDetails = $.productDetails;
    }

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

    public static final class Builder {
        private OrderItemDetailsArgs $;

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

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

        /**
         * @param notificationEmailList Additional notification email list
         * 
         * @return builder
         * 
         */
        public Builder notificationEmailList(@Nullable Output> notificationEmailList) {
            $.notificationEmailList = notificationEmailList;
            return this;
        }

        /**
         * @param notificationEmailList Additional notification email list
         * 
         * @return builder
         * 
         */
        public Builder notificationEmailList(List notificationEmailList) {
            return notificationEmailList(Output.of(notificationEmailList));
        }

        /**
         * @param notificationEmailList Additional notification email list
         * 
         * @return builder
         * 
         */
        public Builder notificationEmailList(String... notificationEmailList) {
            return notificationEmailList(List.of(notificationEmailList));
        }

        /**
         * @param orderItemMode Defines the mode of the Order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemMode(@Nullable Output> orderItemMode) {
            $.orderItemMode = orderItemMode;
            return this;
        }

        /**
         * @param orderItemMode Defines the mode of the Order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemMode(Either orderItemMode) {
            return orderItemMode(Output.of(orderItemMode));
        }

        /**
         * @param orderItemMode Defines the mode of the Order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemMode(String orderItemMode) {
            return orderItemMode(Either.ofLeft(orderItemMode));
        }

        /**
         * @param orderItemMode Defines the mode of the Order item.
         * 
         * @return builder
         * 
         */
        public Builder orderItemMode(OrderMode orderItemMode) {
            return orderItemMode(Either.ofRight(orderItemMode));
        }

        /**
         * @param orderItemType Order item type.
         * 
         * @return builder
         * 
         */
        public Builder orderItemType(Output> orderItemType) {
            $.orderItemType = orderItemType;
            return this;
        }

        /**
         * @param orderItemType Order item type.
         * 
         * @return builder
         * 
         */
        public Builder orderItemType(Either orderItemType) {
            return orderItemType(Output.of(orderItemType));
        }

        /**
         * @param orderItemType Order item type.
         * 
         * @return builder
         * 
         */
        public Builder orderItemType(String orderItemType) {
            return orderItemType(Either.ofLeft(orderItemType));
        }

        /**
         * @param orderItemType Order item type.
         * 
         * @return builder
         * 
         */
        public Builder orderItemType(OrderItemType orderItemType) {
            return orderItemType(Either.ofRight(orderItemType));
        }

        /**
         * @param preferences Customer notification Preferences
         * 
         * @return builder
         * 
         */
        public Builder preferences(@Nullable Output preferences) {
            $.preferences = preferences;
            return this;
        }

        /**
         * @param preferences Customer notification Preferences
         * 
         * @return builder
         * 
         */
        public Builder preferences(PreferencesArgs preferences) {
            return preferences(Output.of(preferences));
        }

        /**
         * @param productDetails Unique identifier for configuration.
         * 
         * @return builder
         * 
         */
        public Builder productDetails(Output productDetails) {
            $.productDetails = productDetails;
            return this;
        }

        /**
         * @param productDetails Unique identifier for configuration.
         * 
         * @return builder
         * 
         */
        public Builder productDetails(ProductDetailsArgs productDetails) {
            return productDetails(Output.of(productDetails));
        }

        public OrderItemDetailsArgs build() {
            if ($.orderItemType == null) {
                throw new MissingRequiredPropertyException("OrderItemDetailsArgs", "orderItemType");
            }
            if ($.productDetails == null) {
                throw new MissingRequiredPropertyException("OrderItemDetailsArgs", "productDetails");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy