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

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

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 MainRouteTableAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final MainRouteTableAssociationArgs Empty = new MainRouteTableAssociationArgs();

    /**
     * The ID of the Route Table to set as the new
     * main route table for the target VPC
     * 
     */
    @Import(name="routeTableId", required=true)
    private Output routeTableId;

    /**
     * @return The ID of the Route Table to set as the new
     * main route table for the target VPC
     * 
     */
    public Output routeTableId() {
        return this.routeTableId;
    }

    /**
     * The ID of the VPC whose main route table should be set
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The ID of the VPC whose main route table should be set
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private MainRouteTableAssociationArgs() {}

    private MainRouteTableAssociationArgs(MainRouteTableAssociationArgs $) {
        this.routeTableId = $.routeTableId;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private MainRouteTableAssociationArgs $;

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

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

        /**
         * @param routeTableId The ID of the Route Table to set as the new
         * main route table for the target VPC
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(Output routeTableId) {
            $.routeTableId = routeTableId;
            return this;
        }

        /**
         * @param routeTableId The ID of the Route Table to set as the new
         * main route table for the target VPC
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(String routeTableId) {
            return routeTableId(Output.of(routeTableId));
        }

        /**
         * @param vpcId The ID of the VPC whose main route table should be set
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The ID of the VPC whose main route table should be set
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        public MainRouteTableAssociationArgs build() {
            if ($.routeTableId == null) {
                throw new MissingRequiredPropertyException("MainRouteTableAssociationArgs", "routeTableId");
            }
            if ($.vpcId == null) {
                throw new MissingRequiredPropertyException("MainRouteTableAssociationArgs", "vpcId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy