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

com.pulumi.alicloud.quotas.TemplateApplicationsArgs 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.quotas;

import com.pulumi.alicloud.quotas.inputs.TemplateApplicationsDimensionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TemplateApplicationsArgs Empty = new TemplateApplicationsArgs();

    /**
     * The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.
     * > **NOTE:**  Only 50 members can apply for quota increase in batch at a time. For more information about the members of the resource directory, see Query the list of all members in the resource directory.
     * 
     */
    @Import(name="aliyunUids", required=true)
    private Output> aliyunUids;

    /**
     * @return The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.
     * > **NOTE:**  Only 50 members can apply for quota increase in batch at a time. For more information about the members of the resource directory, see Query the list of all members in the resource directory.
     * 
     */
    public Output> aliyunUids() {
        return this.aliyunUids;
    }

    /**
     * The value of the quota request.
     * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
     * 
     */
    @Import(name="desireValue", required=true)
    private Output desireValue;

    /**
     * @return The value of the quota request.
     * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
     * 
     */
    public Output desireValue() {
        return this.desireValue;
    }

    /**
     * Quota dimension. See `dimensions` below.
     * 
     */
    @Import(name="dimensions")
    private @Nullable Output> dimensions;

    /**
     * @return Quota dimension. See `dimensions` below.
     * 
     */
    public Optional>> dimensions() {
        return Optional.ofNullable(this.dimensions);
    }

    /**
     * The UTC time when the quota takes effect. This parameter applies only to the equity quota (WhiteListLabel).
     * > **NOTE:**  If the current account does not select the effective time, the default is the submission time.
     * 
     */
    @Import(name="effectiveTime")
    private @Nullable Output effectiveTime;

    /**
     * @return The UTC time when the quota takes effect. This parameter applies only to the equity quota (WhiteListLabel).
     * > **NOTE:**  If the current account does not select the effective time, the default is the submission time.
     * 
     */
    public Optional> effectiveTime() {
        return Optional.ofNullable(this.effectiveTime);
    }

    /**
     * The language of the quota application result notification. Value:
     * - zh (default): Chinese.
     * - en: English.
     * 
     */
    @Import(name="envLanguage")
    private @Nullable Output envLanguage;

    /**
     * @return The language of the quota application result notification. Value:
     * - zh (default): Chinese.
     * - en: English.
     * 
     */
    public Optional> envLanguage() {
        return Optional.ofNullable(this.envLanguage);
    }

    /**
     * The UTC time when the quota expires. This parameter applies only to the equity quota (WhiteListLabel).
     * > **NOTE:**  If No Expiration Time is selected for the current account, the expiration time is 99 years from the effective time of the current quota.
     * 
     */
    @Import(name="expireTime")
    private @Nullable Output expireTime;

    /**
     * @return The UTC time when the quota expires. This parameter applies only to the equity quota (WhiteListLabel).
     * > **NOTE:**  If No Expiration Time is selected for the current account, the expiration time is 99 years from the effective time of the current quota.
     * 
     */
    public Optional> expireTime() {
        return Optional.ofNullable(this.expireTime);
    }

    /**
     * Whether to send notification of quota application result. Value:
     * - 0 (default): No.
     * - 3: Yes.
     * 
     */
    @Import(name="noticeType")
    private @Nullable Output noticeType;

    /**
     * @return Whether to send notification of quota application result. Value:
     * - 0 (default): No.
     * - 3: Yes.
     * 
     */
    public Optional> noticeType() {
        return Optional.ofNullable(this.noticeType);
    }

    /**
     * Cloud service name abbreviation.
     * > **NOTE:**  For more information about cloud services that support quota centers, see Cloud services that support quota centers.
     * 
     */
    @Import(name="productCode", required=true)
    private Output productCode;

    /**
     * @return Cloud service name abbreviation.
     * > **NOTE:**  For more information about cloud services that support quota centers, see Cloud services that support quota centers.
     * 
     */
    public Output productCode() {
        return this.productCode;
    }

    /**
     * The quota ID.
     * 
     */
    @Import(name="quotaActionCode", required=true)
    private Output quotaActionCode;

    /**
     * @return The quota ID.
     * 
     */
    public Output quotaActionCode() {
        return this.quotaActionCode;
    }

    /**
     * The quota type. Value:
     * - CommonQuota (default): Generic quota.
     * - FlowControl:API rate quota.
     * - WhiteListLabel: Equity quota.
     * 
     */
    @Import(name="quotaCategory", required=true)
    private Output quotaCategory;

    /**
     * @return The quota type. Value:
     * - CommonQuota (default): Generic quota.
     * - FlowControl:API rate quota.
     * - WhiteListLabel: Equity quota.
     * 
     */
    public Output quotaCategory() {
        return this.quotaCategory;
    }

    /**
     * Reason for quota application.
     * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
     * 
     */
    @Import(name="reason", required=true)
    private Output reason;

    /**
     * @return Reason for quota application.
     * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
     * 
     */
    public Output reason() {
        return this.reason;
    }

    private TemplateApplicationsArgs() {}

    private TemplateApplicationsArgs(TemplateApplicationsArgs $) {
        this.aliyunUids = $.aliyunUids;
        this.desireValue = $.desireValue;
        this.dimensions = $.dimensions;
        this.effectiveTime = $.effectiveTime;
        this.envLanguage = $.envLanguage;
        this.expireTime = $.expireTime;
        this.noticeType = $.noticeType;
        this.productCode = $.productCode;
        this.quotaActionCode = $.quotaActionCode;
        this.quotaCategory = $.quotaCategory;
        this.reason = $.reason;
    }

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

    public static final class Builder {
        private TemplateApplicationsArgs $;

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

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

        /**
         * @param aliyunUids The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.
         * > **NOTE:**  Only 50 members can apply for quota increase in batch at a time. For more information about the members of the resource directory, see Query the list of all members in the resource directory.
         * 
         * @return builder
         * 
         */
        public Builder aliyunUids(Output> aliyunUids) {
            $.aliyunUids = aliyunUids;
            return this;
        }

        /**
         * @param aliyunUids The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.
         * > **NOTE:**  Only 50 members can apply for quota increase in batch at a time. For more information about the members of the resource directory, see Query the list of all members in the resource directory.
         * 
         * @return builder
         * 
         */
        public Builder aliyunUids(List aliyunUids) {
            return aliyunUids(Output.of(aliyunUids));
        }

        /**
         * @param aliyunUids The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.
         * > **NOTE:**  Only 50 members can apply for quota increase in batch at a time. For more information about the members of the resource directory, see Query the list of all members in the resource directory.
         * 
         * @return builder
         * 
         */
        public Builder aliyunUids(String... aliyunUids) {
            return aliyunUids(List.of(aliyunUids));
        }

        /**
         * @param desireValue The value of the quota request.
         * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
         * 
         * @return builder
         * 
         */
        public Builder desireValue(Output desireValue) {
            $.desireValue = desireValue;
            return this;
        }

        /**
         * @param desireValue The value of the quota request.
         * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
         * 
         * @return builder
         * 
         */
        public Builder desireValue(Double desireValue) {
            return desireValue(Output.of(desireValue));
        }

        /**
         * @param dimensions Quota dimension. See `dimensions` below.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(@Nullable Output> dimensions) {
            $.dimensions = dimensions;
            return this;
        }

        /**
         * @param dimensions Quota dimension. See `dimensions` below.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(List dimensions) {
            return dimensions(Output.of(dimensions));
        }

        /**
         * @param dimensions Quota dimension. See `dimensions` below.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(TemplateApplicationsDimensionArgs... dimensions) {
            return dimensions(List.of(dimensions));
        }

        /**
         * @param effectiveTime The UTC time when the quota takes effect. This parameter applies only to the equity quota (WhiteListLabel).
         * > **NOTE:**  If the current account does not select the effective time, the default is the submission time.
         * 
         * @return builder
         * 
         */
        public Builder effectiveTime(@Nullable Output effectiveTime) {
            $.effectiveTime = effectiveTime;
            return this;
        }

        /**
         * @param effectiveTime The UTC time when the quota takes effect. This parameter applies only to the equity quota (WhiteListLabel).
         * > **NOTE:**  If the current account does not select the effective time, the default is the submission time.
         * 
         * @return builder
         * 
         */
        public Builder effectiveTime(String effectiveTime) {
            return effectiveTime(Output.of(effectiveTime));
        }

        /**
         * @param envLanguage The language of the quota application result notification. Value:
         * - zh (default): Chinese.
         * - en: English.
         * 
         * @return builder
         * 
         */
        public Builder envLanguage(@Nullable Output envLanguage) {
            $.envLanguage = envLanguage;
            return this;
        }

        /**
         * @param envLanguage The language of the quota application result notification. Value:
         * - zh (default): Chinese.
         * - en: English.
         * 
         * @return builder
         * 
         */
        public Builder envLanguage(String envLanguage) {
            return envLanguage(Output.of(envLanguage));
        }

        /**
         * @param expireTime The UTC time when the quota expires. This parameter applies only to the equity quota (WhiteListLabel).
         * > **NOTE:**  If No Expiration Time is selected for the current account, the expiration time is 99 years from the effective time of the current quota.
         * 
         * @return builder
         * 
         */
        public Builder expireTime(@Nullable Output expireTime) {
            $.expireTime = expireTime;
            return this;
        }

        /**
         * @param expireTime The UTC time when the quota expires. This parameter applies only to the equity quota (WhiteListLabel).
         * > **NOTE:**  If No Expiration Time is selected for the current account, the expiration time is 99 years from the effective time of the current quota.
         * 
         * @return builder
         * 
         */
        public Builder expireTime(String expireTime) {
            return expireTime(Output.of(expireTime));
        }

        /**
         * @param noticeType Whether to send notification of quota application result. Value:
         * - 0 (default): No.
         * - 3: Yes.
         * 
         * @return builder
         * 
         */
        public Builder noticeType(@Nullable Output noticeType) {
            $.noticeType = noticeType;
            return this;
        }

        /**
         * @param noticeType Whether to send notification of quota application result. Value:
         * - 0 (default): No.
         * - 3: Yes.
         * 
         * @return builder
         * 
         */
        public Builder noticeType(Integer noticeType) {
            return noticeType(Output.of(noticeType));
        }

        /**
         * @param productCode Cloud service name abbreviation.
         * > **NOTE:**  For more information about cloud services that support quota centers, see Cloud services that support quota centers.
         * 
         * @return builder
         * 
         */
        public Builder productCode(Output productCode) {
            $.productCode = productCode;
            return this;
        }

        /**
         * @param productCode Cloud service name abbreviation.
         * > **NOTE:**  For more information about cloud services that support quota centers, see Cloud services that support quota centers.
         * 
         * @return builder
         * 
         */
        public Builder productCode(String productCode) {
            return productCode(Output.of(productCode));
        }

        /**
         * @param quotaActionCode The quota ID.
         * 
         * @return builder
         * 
         */
        public Builder quotaActionCode(Output quotaActionCode) {
            $.quotaActionCode = quotaActionCode;
            return this;
        }

        /**
         * @param quotaActionCode The quota ID.
         * 
         * @return builder
         * 
         */
        public Builder quotaActionCode(String quotaActionCode) {
            return quotaActionCode(Output.of(quotaActionCode));
        }

        /**
         * @param quotaCategory The quota type. Value:
         * - CommonQuota (default): Generic quota.
         * - FlowControl:API rate quota.
         * - WhiteListLabel: Equity quota.
         * 
         * @return builder
         * 
         */
        public Builder quotaCategory(Output quotaCategory) {
            $.quotaCategory = quotaCategory;
            return this;
        }

        /**
         * @param quotaCategory The quota type. Value:
         * - CommonQuota (default): Generic quota.
         * - FlowControl:API rate quota.
         * - WhiteListLabel: Equity quota.
         * 
         * @return builder
         * 
         */
        public Builder quotaCategory(String quotaCategory) {
            return quotaCategory(Output.of(quotaCategory));
        }

        /**
         * @param reason Reason for quota application.
         * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
         * 
         * @return builder
         * 
         */
        public Builder reason(Output reason) {
            $.reason = reason;
            return this;
        }

        /**
         * @param reason Reason for quota application.
         * > **NOTE:**  The quota request is approved by the technical support of each cloud service. If you want to increase the chance of passing, please fill in a reasonable application value and detailed application reasons when applying for quota.
         * 
         * @return builder
         * 
         */
        public Builder reason(String reason) {
            return reason(Output.of(reason));
        }

        public TemplateApplicationsArgs build() {
            if ($.aliyunUids == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "aliyunUids");
            }
            if ($.desireValue == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "desireValue");
            }
            if ($.productCode == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "productCode");
            }
            if ($.quotaActionCode == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "quotaActionCode");
            }
            if ($.quotaCategory == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "quotaCategory");
            }
            if ($.reason == null) {
                throw new MissingRequiredPropertyException("TemplateApplicationsArgs", "reason");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy