// *** 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.outputs;

import com.pulumi.aws.ec2.outputs.GetInternetGatewayAttachment;
import com.pulumi.aws.ec2.outputs.GetInternetGatewayFilter;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetInternetGatewayResult {
    /**
     * @return ARN of the Internet Gateway.
     * 
     */
    private String arn;
    private List<GetInternetGatewayAttachment> attachments;
    private @Nullable List<GetInternetGatewayFilter> filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String internetGatewayId;
    /**
     * @return ID of the AWS account that owns the internet gateway.
     * 
     */
    private String ownerId;
    private Map<String,String> tags;

    private GetInternetGatewayResult() {}
    /**
     * @return ARN of the Internet Gateway.
     * 
     */
    public String arn() {
        return this.arn;
    }
    public List<GetInternetGatewayAttachment> attachments() {
        return this.attachments;
    }
    public List<GetInternetGatewayFilter> filters() {
        return this.filters == null ? List.of() : this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String internetGatewayId() {
        return this.internetGatewayId;
    }
    /**
     * @return ID of the AWS account that owns the internet gateway.
     * 
     */
    public String ownerId() {
        return this.ownerId;
    }
    public Map<String,String> tags() {
        return this.tags;
    }

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

    public static Builder builder(GetInternetGatewayResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private List<GetInternetGatewayAttachment> attachments;
        private @Nullable List<GetInternetGatewayFilter> filters;
        private String id;
        private String internetGatewayId;
        private String ownerId;
        private Map<String,String> tags;
        public Builder() {}
        public Builder(GetInternetGatewayResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.attachments = defaults.attachments;
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.internetGatewayId = defaults.internetGatewayId;
    	      this.ownerId = defaults.ownerId;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            this.arn = Objects.requireNonNull(arn);
            return this;
        }
        @CustomType.Setter
        public Builder attachments(List<GetInternetGatewayAttachment> attachments) {
            this.attachments = Objects.requireNonNull(attachments);
            return this;
        }
        public Builder attachments(GetInternetGatewayAttachment... attachments) {
            return attachments(List.of(attachments));
        }
        @CustomType.Setter
        public Builder filters(@Nullable List<GetInternetGatewayFilter> filters) {
            this.filters = filters;
            return this;
        }
        public Builder filters(GetInternetGatewayFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder internetGatewayId(String internetGatewayId) {
            this.internetGatewayId = Objects.requireNonNull(internetGatewayId);
            return this;
        }
        @CustomType.Setter
        public Builder ownerId(String ownerId) {
            this.ownerId = Objects.requireNonNull(ownerId);
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map<String,String> tags) {
            this.tags = Objects.requireNonNull(tags);
            return this;
        }
        public GetInternetGatewayResult build() {
            final var o = new GetInternetGatewayResult();
            o.arn = arn;
            o.attachments = attachments;
            o.filters = filters;
            o.id = id;
            o.internetGatewayId = internetGatewayId;
            o.ownerId = ownerId;
            o.tags = tags;
            return o;
        }
    }
}
