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

com.pulumi.alicloud.opensearch.inputs.AppGroupQuotaArgs 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.opensearch.inputs;

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


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

    public static final AppGroupQuotaArgs Empty = new AppGroupQuotaArgs();

    /**
     * Computing resources. Unit: LCU.
     * 
     */
    @Import(name="computeResource", required=true)
    private Output computeResource;

    /**
     * @return Computing resources. Unit: LCU.
     * 
     */
    public Output computeResource() {
        return this.computeResource;
    }

    /**
     * Storage Size. Unit: GB.
     * 
     */
    @Import(name="docSize", required=true)
    private Output docSize;

    /**
     * @return Storage Size. Unit: GB.
     * 
     */
    public Output docSize() {
        return this.docSize;
    }

    /**
     * Search request. Unit: times/second.
     * 
     */
    @Import(name="qps")
    private @Nullable Output qps;

    /**
     * @return Search request. Unit: times/second.
     * 
     */
    public Optional> qps() {
        return Optional.ofNullable(this.qps);
    }

    /**
     * Specification. Valid values:
     * * `opensearch.share.junior`: Entry-level.
     * * `opensearch.share.common`: Shared universal.
     * * `opensearch.share.compute`: Shared computing.
     * * `opensearch.share.storage`: Shared storage type.
     * * `opensearch.private.common`: Exclusive universal type.
     * * `opensearch.private.compute`: Exclusive computing type.
     * * `opensearch.private.storage`: Exclusive storage type
     * 
     */
    @Import(name="spec", required=true)
    private Output spec;

    /**
     * @return Specification. Valid values:
     * * `opensearch.share.junior`: Entry-level.
     * * `opensearch.share.common`: Shared universal.
     * * `opensearch.share.compute`: Shared computing.
     * * `opensearch.share.storage`: Shared storage type.
     * * `opensearch.private.common`: Exclusive universal type.
     * * `opensearch.private.compute`: Exclusive computing type.
     * * `opensearch.private.storage`: Exclusive storage type
     * 
     */
    public Output spec() {
        return this.spec;
    }

    private AppGroupQuotaArgs() {}

    private AppGroupQuotaArgs(AppGroupQuotaArgs $) {
        this.computeResource = $.computeResource;
        this.docSize = $.docSize;
        this.qps = $.qps;
        this.spec = $.spec;
    }

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

    public static final class Builder {
        private AppGroupQuotaArgs $;

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

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

        /**
         * @param computeResource Computing resources. Unit: LCU.
         * 
         * @return builder
         * 
         */
        public Builder computeResource(Output computeResource) {
            $.computeResource = computeResource;
            return this;
        }

        /**
         * @param computeResource Computing resources. Unit: LCU.
         * 
         * @return builder
         * 
         */
        public Builder computeResource(Integer computeResource) {
            return computeResource(Output.of(computeResource));
        }

        /**
         * @param docSize Storage Size. Unit: GB.
         * 
         * @return builder
         * 
         */
        public Builder docSize(Output docSize) {
            $.docSize = docSize;
            return this;
        }

        /**
         * @param docSize Storage Size. Unit: GB.
         * 
         * @return builder
         * 
         */
        public Builder docSize(Integer docSize) {
            return docSize(Output.of(docSize));
        }

        /**
         * @param qps Search request. Unit: times/second.
         * 
         * @return builder
         * 
         */
        public Builder qps(@Nullable Output qps) {
            $.qps = qps;
            return this;
        }

        /**
         * @param qps Search request. Unit: times/second.
         * 
         * @return builder
         * 
         */
        public Builder qps(Integer qps) {
            return qps(Output.of(qps));
        }

        /**
         * @param spec Specification. Valid values:
         * * `opensearch.share.junior`: Entry-level.
         * * `opensearch.share.common`: Shared universal.
         * * `opensearch.share.compute`: Shared computing.
         * * `opensearch.share.storage`: Shared storage type.
         * * `opensearch.private.common`: Exclusive universal type.
         * * `opensearch.private.compute`: Exclusive computing type.
         * * `opensearch.private.storage`: Exclusive storage type
         * 
         * @return builder
         * 
         */
        public Builder spec(Output spec) {
            $.spec = spec;
            return this;
        }

        /**
         * @param spec Specification. Valid values:
         * * `opensearch.share.junior`: Entry-level.
         * * `opensearch.share.common`: Shared universal.
         * * `opensearch.share.compute`: Shared computing.
         * * `opensearch.share.storage`: Shared storage type.
         * * `opensearch.private.common`: Exclusive universal type.
         * * `opensearch.private.compute`: Exclusive computing type.
         * * `opensearch.private.storage`: Exclusive storage type
         * 
         * @return builder
         * 
         */
        public Builder spec(String spec) {
            return spec(Output.of(spec));
        }

        public AppGroupQuotaArgs build() {
            if ($.computeResource == null) {
                throw new MissingRequiredPropertyException("AppGroupQuotaArgs", "computeResource");
            }
            if ($.docSize == null) {
                throw new MissingRequiredPropertyException("AppGroupQuotaArgs", "docSize");
            }
            if ($.spec == null) {
                throw new MissingRequiredPropertyException("AppGroupQuotaArgs", "spec");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy