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

com.pulumi.aws.ec2.outputs.GetInternetGatewayAttachment 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetInternetGatewayAttachment {
    /**
     * @return Current state of the attachment between the gateway and the VPC. Present only if a VPC is attached
     * 
     */
    private String state;
    /**
     * @return ID of an attached VPC.
     * 
     */
    private String vpcId;

    private GetInternetGatewayAttachment() {}
    /**
     * @return Current state of the attachment between the gateway and the VPC. Present only if a VPC is attached
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return ID of an attached VPC.
     * 
     */
    public String vpcId() {
        return this.vpcId;
    }

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

    public static Builder builder(GetInternetGatewayAttachment defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String state;
        private String vpcId;
        public Builder() {}
        public Builder(GetInternetGatewayAttachment defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.state = defaults.state;
    	      this.vpcId = defaults.vpcId;
        }

        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetInternetGatewayAttachment", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder vpcId(String vpcId) {
            if (vpcId == null) {
              throw new MissingRequiredPropertyException("GetInternetGatewayAttachment", "vpcId");
            }
            this.vpcId = vpcId;
            return this;
        }
        public GetInternetGatewayAttachment build() {
            final var _resultValue = new GetInternetGatewayAttachment();
            _resultValue.state = state;
            _resultValue.vpcId = vpcId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy