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

com.pulumi.alicloud.quotas.QuotaApplication 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.Utilities;
import com.pulumi.alicloud.quotas.QuotaApplicationArgs;
import com.pulumi.alicloud.quotas.inputs.QuotaApplicationState;
import com.pulumi.alicloud.quotas.outputs.QuotaApplicationDimension;
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.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * ## Import
 * 
 * Quotas Quota Application can be imported using the id, e.g.
 * 
 * ```sh
 * $ pulumi import alicloud:quotas/quotaApplication:QuotaApplication example <id>
 * ```
 * 
 */
@ResourceType(type="alicloud:quotas/quotaApplication:QuotaApplication")
public class QuotaApplication extends com.pulumi.resources.CustomResource {
    /**
     * The approve value of the quota application.
     * 
     */
    @Export(name="approveValue", refs={String.class}, tree="[0]")
    private Output approveValue;

    /**
     * @return The approve value of the quota application.
     * 
     */
    public Output approveValue() {
        return this.approveValue;
    }
    /**
     * Quota audit mode. Value:
     * - Sync: Synchronize auditing. The quota center automatically approves, and the approval result is returned immediately, but the probability of application passing is lower than that of asynchronous approval, and the validity period of the increase quota is 1 hour.
     * - Async: Asynchronous auditing. Manual review, the probability of application passing is relatively high, and the validity period of the increase quota is 1 month.
     * > **NOTE:**  This parameter takes effect only for the ECS specification quota of the cloud server.
     * 
     */
    @Export(name="auditMode", refs={String.class}, tree="[0]")
    private Output auditMode;

    /**
     * @return Quota audit mode. Value:
     * - Sync: Synchronize auditing. The quota center automatically approves, and the approval result is returned immediately, but the probability of application passing is lower than that of asynchronous approval, and the validity period of the increase quota is 1 hour.
     * - Async: Asynchronous auditing. Manual review, the probability of application passing is relatively high, and the validity period of the increase quota is 1 month.
     * > **NOTE:**  This parameter takes effect only for the ECS specification quota of the cloud server.
     * 
     */
    public Output auditMode() {
        return this.auditMode;
    }
    /**
     * The audit reason.
     * 
     */
    @Export(name="auditReason", refs={String.class}, tree="[0]")
    private Output auditReason;

    /**
     * @return The audit reason.
     * 
     */
    public Output auditReason() {
        return this.auditReason;
    }
    /**
     * Resource attribute field representing creation time.
     * 
     */
    @Export(name="createTime", refs={String.class}, tree="[0]")
    private Output createTime;

    /**
     * @return Resource attribute field representing creation time.
     * 
     */
    public Output createTime() {
        return this.createTime;
    }
    /**
     * The desire value of the quota application.
     * 
     */
    @Export(name="desireValue", refs={Double.class}, tree="[0]")
    private Output desireValue;

    /**
     * @return The desire value of the quota application.
     * 
     */
    public Output desireValue() {
        return this.desireValue;
    }
    /**
     * QuotaDimensions. See `dimensions` below.
     * 
     */
    @Export(name="dimensions", refs={List.class,QuotaApplicationDimension.class}, tree="[0,1]")
    private Output> dimensions;

    /**
     * @return QuotaDimensions. See `dimensions` below.
     * 
     */
    public Output>> dimensions() {
        return Codegen.optional(this.dimensions);
    }
    /**
     * The effective time of the quota application.
     * 
     */
    @Export(name="effectiveTime", refs={String.class}, tree="[0]")
    private Output effectiveTime;

    /**
     * @return The effective time of the quota application.
     * 
     */
    public Output> effectiveTime() {
        return Codegen.optional(this.effectiveTime);
    }
    /**
     * The language of the quota alert notification. Value:
     * - zh (default): Chinese.
     * - en: English.
     * 
     */
    @Export(name="envLanguage", refs={String.class}, tree="[0]")
    private Output envLanguage;

    /**
     * @return The language of the quota alert notification. Value:
     * - zh (default): Chinese.
     * - en: English.
     * 
     */
    public Output> envLanguage() {
        return Codegen.optional(this.envLanguage);
    }
    /**
     * The expired time of the quota application.
     * 
     */
    @Export(name="expireTime", refs={String.class}, tree="[0]")
    private Output expireTime;

    /**
     * @return The expired time of the quota application.
     * 
     */
    public Output> expireTime() {
        return Codegen.optional(this.expireTime);
    }
    /**
     * Specifies whether to send a notification about the application result. Valid values:0: sends a notification about the application result.3: A notification about the application result is sent.
     * 
     */
    @Export(name="noticeType", refs={Integer.class}, tree="[0]")
    private Output noticeType;

    /**
     * @return Specifies whether to send a notification about the application result. Valid values:0: sends a notification about the application result.3: A notification about the application result is sent.
     * 
     */
    public Output noticeType() {
        return this.noticeType;
    }
    /**
     * The product code.
     * 
     */
    @Export(name="productCode", refs={String.class}, tree="[0]")
    private Output productCode;

    /**
     * @return The product code.
     * 
     */
    public Output productCode() {
        return this.productCode;
    }
    /**
     * The ID of quota action.
     * 
     */
    @Export(name="quotaActionCode", refs={String.class}, tree="[0]")
    private Output quotaActionCode;

    /**
     * @return The ID of quota action.
     * 
     */
    public Output quotaActionCode() {
        return this.quotaActionCode;
    }
    /**
     * The quota type.
     * - CommonQuota (default): Generic quota.
     * - FlowControl:API rate quota.
     * - WhiteListLabel: Equity quota.
     * 
     */
    @Export(name="quotaCategory", refs={String.class}, tree="[0]")
    private Output quotaCategory;

    /**
     * @return The quota type.
     * - CommonQuota (default): Generic quota.
     * - FlowControl:API rate quota.
     * - WhiteListLabel: Equity quota.
     * 
     */
    public Output> quotaCategory() {
        return Codegen.optional(this.quotaCategory);
    }
    /**
     * The description of the quota application.
     * 
     */
    @Export(name="quotaDescription", refs={String.class}, tree="[0]")
    private Output quotaDescription;

    /**
     * @return The description of the quota application.
     * 
     */
    public Output quotaDescription() {
        return this.quotaDescription;
    }
    /**
     * The name of the quota application.
     * 
     */
    @Export(name="quotaName", refs={String.class}, tree="[0]")
    private Output quotaName;

    /**
     * @return The name of the quota application.
     * 
     */
    public Output quotaName() {
        return this.quotaName;
    }
    /**
     * The unit of the quota application.
     * 
     */
    @Export(name="quotaUnit", refs={String.class}, tree="[0]")
    private Output quotaUnit;

    /**
     * @return The unit of the quota application.
     * 
     */
    public Output quotaUnit() {
        return this.quotaUnit;
    }
    /**
     * The reason of the quota application.
     * 
     */
    @Export(name="reason", refs={String.class}, tree="[0]")
    private Output reason;

    /**
     * @return The reason of the quota application.
     * 
     */
    public Output reason() {
        return this.reason;
    }
    /**
     * Application Status:
     * - Disagree: reject.
     * - Agree: Approved.
     * - Process: under review.
     * - Cancel: Closed.
     * 
     */
    @Export(name="status", refs={String.class}, tree="[0]")
    private Output status;

    /**
     * @return Application Status:
     * - Disagree: reject.
     * - Agree: Approved.
     * - Process: under review.
     * - Cancel: Closed.
     * 
     */
    public Output status() {
        return this.status;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public QuotaApplication(java.lang.String name) {
        this(name, QuotaApplicationArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public QuotaApplication(java.lang.String name, QuotaApplicationArgs 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 QuotaApplication(java.lang.String name, QuotaApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:quotas/quotaApplication:QuotaApplication", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private QuotaApplication(java.lang.String name, Output id, @Nullable QuotaApplicationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:quotas/quotaApplication:QuotaApplication", name, state, makeResourceOptions(options, id), false);
    }

    private static QuotaApplicationArgs makeArgs(QuotaApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? QuotaApplicationArgs.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())
            .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 state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static QuotaApplication get(java.lang.String name, Output id, @Nullable QuotaApplicationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new QuotaApplication(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy