com.pulumi.aws.ec2.InternetGatewayAttachmentArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
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.ec2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class InternetGatewayAttachmentArgs extends com.pulumi.resources.ResourceArgs {
public static final InternetGatewayAttachmentArgs Empty = new InternetGatewayAttachmentArgs();
/**
* The ID of the internet gateway.
*
*/
@Import(name="internetGatewayId", required=true)
private Output internetGatewayId;
/**
* @return The ID of the internet gateway.
*
*/
public Output internetGatewayId() {
return this.internetGatewayId;
}
/**
* The ID of the VPC.
*
*/
@Import(name="vpcId", required=true)
private Output vpcId;
/**
* @return The ID of the VPC.
*
*/
public Output vpcId() {
return this.vpcId;
}
private InternetGatewayAttachmentArgs() {}
private InternetGatewayAttachmentArgs(InternetGatewayAttachmentArgs $) {
this.internetGatewayId = $.internetGatewayId;
this.vpcId = $.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InternetGatewayAttachmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private InternetGatewayAttachmentArgs $;
public Builder() {
$ = new InternetGatewayAttachmentArgs();
}
public Builder(InternetGatewayAttachmentArgs defaults) {
$ = new InternetGatewayAttachmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param internetGatewayId The ID of the internet gateway.
*
* @return builder
*
*/
public Builder internetGatewayId(Output internetGatewayId) {
$.internetGatewayId = internetGatewayId;
return this;
}
/**
* @param internetGatewayId The ID of the internet gateway.
*
* @return builder
*
*/
public Builder internetGatewayId(String internetGatewayId) {
return internetGatewayId(Output.of(internetGatewayId));
}
/**
* @param vpcId The ID of the VPC.
*
* @return builder
*
*/
public Builder vpcId(Output vpcId) {
$.vpcId = vpcId;
return this;
}
/**
* @param vpcId The ID of the VPC.
*
* @return builder
*
*/
public Builder vpcId(String vpcId) {
return vpcId(Output.of(vpcId));
}
public InternetGatewayAttachmentArgs build() {
if ($.internetGatewayId == null) {
throw new MissingRequiredPropertyException("InternetGatewayAttachmentArgs", "internetGatewayId");
}
if ($.vpcId == null) {
throw new MissingRequiredPropertyException("InternetGatewayAttachmentArgs", "vpcId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy