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

com.pulumi.aws.ec2.inputs.GetInternetGatewayArgs 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.60.0-alpha.1731982519
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.ec2.inputs;

import com.pulumi.aws.ec2.inputs.GetInternetGatewayFilterArgs;
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 GetInternetGatewayArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetInternetGatewayArgs Empty = new GetInternetGatewayArgs();

    /**
     * Custom filter block as described below.
     * 
     * More complex filters can be expressed using one or more `filter` sub-blocks,
     * which take the following arguments:
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

    /**
     * @return Custom filter block as described below.
     * 
     * More complex filters can be expressed using one or more `filter` sub-blocks,
     * which take the following arguments:
     * 
     */
    public Optional>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * ID of the specific Internet Gateway to retrieve.
     * 
     */
    @Import(name="internetGatewayId")
    private @Nullable Output internetGatewayId;

    /**
     * @return ID of the specific Internet Gateway to retrieve.
     * 
     */
    public Optional> internetGatewayId() {
        return Optional.ofNullable(this.internetGatewayId);
    }

    /**
     * Map of tags, each pair of which must exactly match
     * a pair on the desired Internet Gateway.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Map of tags, each pair of which must exactly match
     * a pair on the desired Internet Gateway.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetInternetGatewayArgs() {}

    private GetInternetGatewayArgs(GetInternetGatewayArgs $) {
        this.filters = $.filters;
        this.internetGatewayId = $.internetGatewayId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetInternetGatewayArgs $;

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

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

        /**
         * @param filters Custom filter block as described below.
         * 
         * More complex filters can be expressed using one or more `filter` sub-blocks,
         * which take the following arguments:
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Custom filter block as described below.
         * 
         * More complex filters can be expressed using one or more `filter` sub-blocks,
         * which take the following arguments:
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters Custom filter block as described below.
         * 
         * More complex filters can be expressed using one or more `filter` sub-blocks,
         * which take the following arguments:
         * 
         * @return builder
         * 
         */
        public Builder filters(GetInternetGatewayFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param internetGatewayId ID of the specific Internet Gateway to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder internetGatewayId(@Nullable Output internetGatewayId) {
            $.internetGatewayId = internetGatewayId;
            return this;
        }

        /**
         * @param internetGatewayId ID of the specific Internet Gateway to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder internetGatewayId(String internetGatewayId) {
            return internetGatewayId(Output.of(internetGatewayId));
        }

        /**
         * @param tags Map of tags, each pair of which must exactly match
         * a pair on the desired Internet Gateway.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of tags, each pair of which must exactly match
         * a pair on the desired Internet Gateway.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public GetInternetGatewayArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy