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

com.pulumi.aws.ec2.RouteTableArgs 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.aws.ec2.inputs.RouteTableRouteArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 RouteTableArgs extends com.pulumi.resources.ResourceArgs {

    public static final RouteTableArgs Empty = new RouteTableArgs();

    /**
     * A list of virtual gateways for propagation.
     * 
     */
    @Import(name="propagatingVgws")
    private @Nullable Output> propagatingVgws;

    /**
     * @return A list of virtual gateways for propagation.
     * 
     */
    public Optional>> propagatingVgws() {
        return Optional.ofNullable(this.propagatingVgws);
    }

    /**
     * A list of route objects. Their keys are documented below.
     * This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above.
     * 
     */
    @Import(name="routes")
    private @Nullable Output> routes;

    /**
     * @return A list of route objects. Their keys are documented below.
     * This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above.
     * 
     */
    public Optional>> routes() {
        return Optional.ofNullable(this.routes);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The VPC ID.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The VPC ID.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private RouteTableArgs() {}

    private RouteTableArgs(RouteTableArgs $) {
        this.propagatingVgws = $.propagatingVgws;
        this.routes = $.routes;
        this.tags = $.tags;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private RouteTableArgs $;

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

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

        /**
         * @param propagatingVgws A list of virtual gateways for propagation.
         * 
         * @return builder
         * 
         */
        public Builder propagatingVgws(@Nullable Output> propagatingVgws) {
            $.propagatingVgws = propagatingVgws;
            return this;
        }

        /**
         * @param propagatingVgws A list of virtual gateways for propagation.
         * 
         * @return builder
         * 
         */
        public Builder propagatingVgws(List propagatingVgws) {
            return propagatingVgws(Output.of(propagatingVgws));
        }

        /**
         * @param propagatingVgws A list of virtual gateways for propagation.
         * 
         * @return builder
         * 
         */
        public Builder propagatingVgws(String... propagatingVgws) {
            return propagatingVgws(List.of(propagatingVgws));
        }

        /**
         * @param routes A list of route objects. Their keys are documented below.
         * This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above.
         * 
         * @return builder
         * 
         */
        public Builder routes(@Nullable Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes A list of route objects. Their keys are documented below.
         * This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes A list of route objects. Their keys are documented below.
         * This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above.
         * 
         * @return builder
         * 
         */
        public Builder routes(RouteTableRouteArgs... routes) {
            return routes(List.of(routes));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vpcId The VPC ID.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The VPC ID.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy