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

com.pulumi.aws.apigateway.UsagePlanArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.apigateway;

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 UsagePlanArgs extends com.pulumi.resources.ResourceArgs {

    public static final UsagePlanArgs Empty = new UsagePlanArgs();

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * 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 UsagePlanArgs() {}

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

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

    public static final class Builder {
        private UsagePlanArgs $;

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

        public Builder(UsagePlanArgs defaults) {
            $ = new UsagePlanArgs(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 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 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 UsagePlanArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy