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

com.pulumi.alicloud.marketplace.inputs.OrderState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.marketplace.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OrderState Empty = new OrderState();

    /**
     * Service providers customize additional components.
     * 
     */
    @Import(name="components")
    private @Nullable Output> components;

    /**
     * @return Service providers customize additional components.
     * 
     */
    public Optional>> components() {
        return Optional.ofNullable(this.components);
    }

    /**
     * The coupon id of the market product.
     * 
     */
    @Import(name="couponId")
    private @Nullable Output couponId;

    /**
     * @return The coupon id of the market product.
     * 
     */
    public Optional> couponId() {
        return Optional.ofNullable(this.couponId);
    }

    /**
     * The number of purchase cycles.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return The number of purchase cycles.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * The package version of the market product.
     * 
     */
    @Import(name="packageVersion")
    private @Nullable Output packageVersion;

    /**
     * @return The package version of the market product.
     * 
     */
    public Optional> packageVersion() {
        return Optional.ofNullable(this.packageVersion);
    }

    /**
     * Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
     * 
     */
    @Import(name="payType")
    private @Nullable Output payType;

    /**
     * @return Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
     * 
     */
    public Optional> payType() {
        return Optional.ofNullable(this.payType);
    }

    /**
     * The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
     * 
     */
    @Import(name="pricingCycle")
    private @Nullable Output pricingCycle;

    /**
     * @return The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
     * 
     */
    public Optional> pricingCycle() {
        return Optional.ofNullable(this.pricingCycle);
    }

    /**
     * The product_code of market place product.
     * 
     */
    @Import(name="productCode")
    private @Nullable Output productCode;

    /**
     * @return The product_code of market place product.
     * 
     */
    public Optional> productCode() {
        return Optional.ofNullable(this.productCode);
    }

    /**
     * The quantity of the market product will be purchased.
     * 
     */
    @Import(name="quantity")
    private @Nullable Output quantity;

    /**
     * @return The quantity of the market product will be purchased.
     * 
     */
    public Optional> quantity() {
        return Optional.ofNullable(this.quantity);
    }

    private OrderState() {}

    private OrderState(OrderState $) {
        this.components = $.components;
        this.couponId = $.couponId;
        this.duration = $.duration;
        this.packageVersion = $.packageVersion;
        this.payType = $.payType;
        this.pricingCycle = $.pricingCycle;
        this.productCode = $.productCode;
        this.quantity = $.quantity;
    }

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

    public static final class Builder {
        private OrderState $;

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

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

        /**
         * @param components Service providers customize additional components.
         * 
         * @return builder
         * 
         */
        public Builder components(@Nullable Output> components) {
            $.components = components;
            return this;
        }

        /**
         * @param components Service providers customize additional components.
         * 
         * @return builder
         * 
         */
        public Builder components(Map components) {
            return components(Output.of(components));
        }

        /**
         * @param couponId The coupon id of the market product.
         * 
         * @return builder
         * 
         */
        public Builder couponId(@Nullable Output couponId) {
            $.couponId = couponId;
            return this;
        }

        /**
         * @param couponId The coupon id of the market product.
         * 
         * @return builder
         * 
         */
        public Builder couponId(String couponId) {
            return couponId(Output.of(couponId));
        }

        /**
         * @param duration The number of purchase cycles.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration The number of purchase cycles.
         * 
         * @return builder
         * 
         */
        public Builder duration(Integer duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param packageVersion The package version of the market product.
         * 
         * @return builder
         * 
         */
        public Builder packageVersion(@Nullable Output packageVersion) {
            $.packageVersion = packageVersion;
            return this;
        }

        /**
         * @param packageVersion The package version of the market product.
         * 
         * @return builder
         * 
         */
        public Builder packageVersion(String packageVersion) {
            return packageVersion(Output.of(packageVersion));
        }

        /**
         * @param payType Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
         * 
         * @return builder
         * 
         */
        public Builder payType(@Nullable Output payType) {
            $.payType = payType;
            return this;
        }

        /**
         * @param payType Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
         * 
         * @return builder
         * 
         */
        public Builder payType(String payType) {
            return payType(Output.of(payType));
        }

        /**
         * @param pricingCycle The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
         * 
         * @return builder
         * 
         */
        public Builder pricingCycle(@Nullable Output pricingCycle) {
            $.pricingCycle = pricingCycle;
            return this;
        }

        /**
         * @param pricingCycle The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
         * 
         * @return builder
         * 
         */
        public Builder pricingCycle(String pricingCycle) {
            return pricingCycle(Output.of(pricingCycle));
        }

        /**
         * @param productCode The product_code of market place product.
         * 
         * @return builder
         * 
         */
        public Builder productCode(@Nullable Output productCode) {
            $.productCode = productCode;
            return this;
        }

        /**
         * @param productCode The product_code of market place product.
         * 
         * @return builder
         * 
         */
        public Builder productCode(String productCode) {
            return productCode(Output.of(productCode));
        }

        /**
         * @param quantity The quantity of the market product will be purchased.
         * 
         * @return builder
         * 
         */
        public Builder quantity(@Nullable Output quantity) {
            $.quantity = quantity;
            return this;
        }

        /**
         * @param quantity The quantity of the market product will be purchased.
         * 
         * @return builder
         * 
         */
        public Builder quantity(Integer quantity) {
            return quantity(Output.of(quantity));
        }

        public OrderState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy