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

com.pulumi.aws.inputs.GetAvailabilityZonesArgs Maven / Gradle / Ivy

Go to download

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

The 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.inputs;

import com.pulumi.aws.inputs.GetAvailabilityZonesFilterArgs;
import com.pulumi.core.Output;
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 GetAvailabilityZonesArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAvailabilityZonesArgs Empty = new GetAvailabilityZonesArgs();

    /**
     * Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
     * 
     */
    @Import(name="allAvailabilityZones")
    private @Nullable Output allAvailabilityZones;

    /**
     * @return Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
     * 
     */
    public Optional> allAvailabilityZones() {
        return Optional.ofNullable(this.allAvailabilityZones);
    }

    /**
     * List of Availability Zone names to exclude.
     * 
     */
    @Import(name="excludeNames")
    private @Nullable Output> excludeNames;

    /**
     * @return List of Availability Zone names to exclude.
     * 
     */
    public Optional>> excludeNames() {
        return Optional.ofNullable(this.excludeNames);
    }

    /**
     * List of Availability Zone IDs to exclude.
     * 
     */
    @Import(name="excludeZoneIds")
    private @Nullable Output> excludeZoneIds;

    /**
     * @return List of Availability Zone IDs to exclude.
     * 
     */
    public Optional>> excludeZoneIds() {
        return Optional.ofNullable(this.excludeZoneIds);
    }

    /**
     * Configuration block(s) for filtering. Detailed below.
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

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

    /**
     * Allows to filter list of Availability Zones based on their
     * current state. Can be either `"available"`, `"information"`, `"impaired"` or
     * `"unavailable"`. By default the list includes a complete set of Availability Zones
     * to which the underlying AWS account has access, regardless of their state.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return Allows to filter list of Availability Zones based on their
     * current state. Can be either `"available"`, `"information"`, `"impaired"` or
     * `"unavailable"`. By default the list includes a complete set of Availability Zones
     * to which the underlying AWS account has access, regardless of their state.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    private GetAvailabilityZonesArgs() {}

    private GetAvailabilityZonesArgs(GetAvailabilityZonesArgs $) {
        this.allAvailabilityZones = $.allAvailabilityZones;
        this.excludeNames = $.excludeNames;
        this.excludeZoneIds = $.excludeZoneIds;
        this.filters = $.filters;
        this.state = $.state;
    }

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

    public static final class Builder {
        private GetAvailabilityZonesArgs $;

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

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

        /**
         * @param allAvailabilityZones Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
         * 
         * @return builder
         * 
         */
        public Builder allAvailabilityZones(@Nullable Output allAvailabilityZones) {
            $.allAvailabilityZones = allAvailabilityZones;
            return this;
        }

        /**
         * @param allAvailabilityZones Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
         * 
         * @return builder
         * 
         */
        public Builder allAvailabilityZones(Boolean allAvailabilityZones) {
            return allAvailabilityZones(Output.of(allAvailabilityZones));
        }

        /**
         * @param excludeNames List of Availability Zone names to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeNames(@Nullable Output> excludeNames) {
            $.excludeNames = excludeNames;
            return this;
        }

        /**
         * @param excludeNames List of Availability Zone names to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeNames(List excludeNames) {
            return excludeNames(Output.of(excludeNames));
        }

        /**
         * @param excludeNames List of Availability Zone names to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeNames(String... excludeNames) {
            return excludeNames(List.of(excludeNames));
        }

        /**
         * @param excludeZoneIds List of Availability Zone IDs to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeZoneIds(@Nullable Output> excludeZoneIds) {
            $.excludeZoneIds = excludeZoneIds;
            return this;
        }

        /**
         * @param excludeZoneIds List of Availability Zone IDs to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeZoneIds(List excludeZoneIds) {
            return excludeZoneIds(Output.of(excludeZoneIds));
        }

        /**
         * @param excludeZoneIds List of Availability Zone IDs to exclude.
         * 
         * @return builder
         * 
         */
        public Builder excludeZoneIds(String... excludeZoneIds) {
            return excludeZoneIds(List.of(excludeZoneIds));
        }

        /**
         * @param filters Configuration block(s) for filtering. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Configuration block(s) for filtering. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters Configuration block(s) for filtering. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetAvailabilityZonesFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param state Allows to filter list of Availability Zones based on their
         * current state. Can be either `"available"`, `"information"`, `"impaired"` or
         * `"unavailable"`. By default the list includes a complete set of Availability Zones
         * to which the underlying AWS account has access, regardless of their state.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Allows to filter list of Availability Zones based on their
         * current state. Can be either `"available"`, `"information"`, `"impaired"` or
         * `"unavailable"`. By default the list includes a complete set of Availability Zones
         * to which the underlying AWS account has access, regardless of their state.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        public GetAvailabilityZonesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy