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

com.pulumi.aws.apigateway.inputs.UsagePlanState 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.aws.apigateway.inputs;

import com.pulumi.aws.apigateway.inputs.UsagePlanApiStageArgs;
import com.pulumi.aws.apigateway.inputs.UsagePlanQuotaSettingsArgs;
import com.pulumi.aws.apigateway.inputs.UsagePlanThrottleSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final UsagePlanState Empty = new UsagePlanState();

    /**
     * Associated API stages of the usage plan.
     * 
     */
    @Import(name="apiStages")
    private @Nullable Output> apiStages;

    /**
     * @return Associated API stages of the usage plan.
     * 
     */
    public Optional>> apiStages() {
        return Optional.ofNullable(this.apiStages);
    }

    /**
     * ARN
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Description of a usage plan.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of a usage plan.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Name of the usage plan.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the usage plan.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
     * 
     */
    @Import(name="productCode")
    private @Nullable Output productCode;

    /**
     * @return AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
     * 
     */
    public Optional> productCode() {
        return Optional.ofNullable(this.productCode);
    }

    /**
     * Quota of the usage plan.
     * 
     */
    @Import(name="quotaSettings")
    private @Nullable Output quotaSettings;

    /**
     * @return Quota of the usage plan.
     * 
     */
    public Optional> quotaSettings() {
        return Optional.ofNullable(this.quotaSettings);
    }

    @Import(name="tags")
    private @Nullable Output> tags;

    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * Throttling limits of the usage plan.
     * 
     */
    @Import(name="throttleSettings")
    private @Nullable Output throttleSettings;

    /**
     * @return Throttling limits of the usage plan.
     * 
     */
    public Optional> throttleSettings() {
        return Optional.ofNullable(this.throttleSettings);
    }

    private UsagePlanState() {}

    private UsagePlanState(UsagePlanState $) {
        this.apiStages = $.apiStages;
        this.arn = $.arn;
        this.description = $.description;
        this.name = $.name;
        this.productCode = $.productCode;
        this.quotaSettings = $.quotaSettings;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.throttleSettings = $.throttleSettings;
    }

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

    public static final class Builder {
        private UsagePlanState $;

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

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

        /**
         * @param apiStages Associated API stages of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder apiStages(@Nullable Output> apiStages) {
            $.apiStages = apiStages;
            return this;
        }

        /**
         * @param apiStages Associated API stages of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder apiStages(List apiStages) {
            return apiStages(Output.of(apiStages));
        }

        /**
         * @param apiStages Associated API stages of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder apiStages(UsagePlanApiStageArgs... apiStages) {
            return apiStages(List.of(apiStages));
        }

        /**
         * @param arn ARN
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param description Description of a usage plan.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of a usage plan.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name Name of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param productCode AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
         * 
         * @return builder
         * 
         */
        public Builder productCode(@Nullable Output productCode) {
            $.productCode = productCode;
            return this;
        }

        /**
         * @param productCode AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
         * 
         * @return builder
         * 
         */
        public Builder productCode(String productCode) {
            return productCode(Output.of(productCode));
        }

        /**
         * @param quotaSettings Quota of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder quotaSettings(@Nullable Output quotaSettings) {
            $.quotaSettings = quotaSettings;
            return this;
        }

        /**
         * @param quotaSettings Quota of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder quotaSettings(UsagePlanQuotaSettingsArgs quotaSettings) {
            return quotaSettings(Output.of(quotaSettings));
        }

        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param throttleSettings Throttling limits of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder throttleSettings(@Nullable Output throttleSettings) {
            $.throttleSettings = throttleSettings;
            return this;
        }

        /**
         * @param throttleSettings Throttling limits of the usage plan.
         * 
         * @return builder
         * 
         */
        public Builder throttleSettings(UsagePlanThrottleSettingsArgs throttleSettings) {
            return throttleSettings(Output.of(throttleSettings));
        }

        public UsagePlanState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy