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

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

import com.pulumi.aws.inputs.GetRegionsFilter;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetRegionsPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRegionsPlainArgs Empty = new GetRegionsPlainArgs();

    /**
     * If true the source will query all regions regardless of availability.
     * 
     */
    @Import(name="allRegions")
    private @Nullable Boolean allRegions;

    /**
     * @return If true the source will query all regions regardless of availability.
     * 
     */
    public Optional allRegions() {
        return Optional.ofNullable(this.allRegions);
    }

    /**
     * Configuration block(s) to use as filters. Detailed below.
     * 
     */
    @Import(name="filters")
    private @Nullable List filters;

    /**
     * @return Configuration block(s) to use as filters. Detailed below.
     * 
     */
    public Optional> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China).
     * 
     */
    @Import(name="id")
    private @Nullable String id;

    /**
     * @return Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China).
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }

    private GetRegionsPlainArgs() {}

    private GetRegionsPlainArgs(GetRegionsPlainArgs $) {
        this.allRegions = $.allRegions;
        this.filters = $.filters;
        this.id = $.id;
    }

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

    public static final class Builder {
        private GetRegionsPlainArgs $;

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

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

        /**
         * @param allRegions If true the source will query all regions regardless of availability.
         * 
         * @return builder
         * 
         */
        public Builder allRegions(@Nullable Boolean allRegions) {
            $.allRegions = allRegions;
            return this;
        }

        /**
         * @param filters Configuration block(s) to use as filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable List filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Configuration block(s) to use as filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetRegionsFilter... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param id Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China).
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable String id) {
            $.id = id;
            return this;
        }

        public GetRegionsPlainArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy