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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetRouteArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRouteArgs Empty = new GetRouteArgs();

    /**
     * EC2 Carrier Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="carrierGatewayId")
    private @Nullable Output carrierGatewayId;

    /**
     * @return EC2 Carrier Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> carrierGatewayId() {
        return Optional.ofNullable(this.carrierGatewayId);
    }

    /**
     * Core network ARN of the Route belonging to the Route Table.
     * 
     */
    @Import(name="coreNetworkArn")
    private @Nullable Output coreNetworkArn;

    /**
     * @return Core network ARN of the Route belonging to the Route Table.
     * 
     */
    public Optional> coreNetworkArn() {
        return Optional.ofNullable(this.coreNetworkArn);
    }

    /**
     * CIDR block of the Route belonging to the Route Table.
     * 
     */
    @Import(name="destinationCidrBlock")
    private @Nullable Output destinationCidrBlock;

    /**
     * @return CIDR block of the Route belonging to the Route Table.
     * 
     */
    public Optional> destinationCidrBlock() {
        return Optional.ofNullable(this.destinationCidrBlock);
    }

    /**
     * IPv6 CIDR block of the Route belonging to the Route Table.
     * 
     */
    @Import(name="destinationIpv6CidrBlock")
    private @Nullable Output destinationIpv6CidrBlock;

    /**
     * @return IPv6 CIDR block of the Route belonging to the Route Table.
     * 
     */
    public Optional> destinationIpv6CidrBlock() {
        return Optional.ofNullable(this.destinationIpv6CidrBlock);
    }

    /**
     * ID of a managed prefix list destination of the Route belonging to the Route Table.
     * 
     */
    @Import(name="destinationPrefixListId")
    private @Nullable Output destinationPrefixListId;

    /**
     * @return ID of a managed prefix list destination of the Route belonging to the Route Table.
     * 
     */
    public Optional> destinationPrefixListId() {
        return Optional.ofNullable(this.destinationPrefixListId);
    }

    /**
     * Egress Only Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="egressOnlyGatewayId")
    private @Nullable Output egressOnlyGatewayId;

    /**
     * @return Egress Only Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> egressOnlyGatewayId() {
        return Optional.ofNullable(this.egressOnlyGatewayId);
    }

    /**
     * Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="gatewayId")
    private @Nullable Output gatewayId;

    /**
     * @return Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> gatewayId() {
        return Optional.ofNullable(this.gatewayId);
    }

    /**
     * Instance ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="instanceId")
    private @Nullable Output instanceId;

    /**
     * @return Instance ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> instanceId() {
        return Optional.ofNullable(this.instanceId);
    }

    /**
     * Local Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="localGatewayId")
    private @Nullable Output localGatewayId;

    /**
     * @return Local Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> localGatewayId() {
        return Optional.ofNullable(this.localGatewayId);
    }

    /**
     * NAT Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="natGatewayId")
    private @Nullable Output natGatewayId;

    /**
     * @return NAT Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> natGatewayId() {
        return Optional.ofNullable(this.natGatewayId);
    }

    /**
     * Network Interface ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="networkInterfaceId")
    private @Nullable Output networkInterfaceId;

    /**
     * @return Network Interface ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> networkInterfaceId() {
        return Optional.ofNullable(this.networkInterfaceId);
    }

    /**
     * ID of the specific Route Table containing the Route entry.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="routeTableId", required=true)
    private Output routeTableId;

    /**
     * @return ID of the specific Route Table containing the Route entry.
     * 
     * The following arguments are optional:
     * 
     */
    public Output routeTableId() {
        return this.routeTableId;
    }

    /**
     * EC2 Transit Gateway ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="transitGatewayId")
    private @Nullable Output transitGatewayId;

    /**
     * @return EC2 Transit Gateway ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> transitGatewayId() {
        return Optional.ofNullable(this.transitGatewayId);
    }

    /**
     * VPC Peering Connection ID of the Route belonging to the Route Table.
     * 
     */
    @Import(name="vpcPeeringConnectionId")
    private @Nullable Output vpcPeeringConnectionId;

    /**
     * @return VPC Peering Connection ID of the Route belonging to the Route Table.
     * 
     */
    public Optional> vpcPeeringConnectionId() {
        return Optional.ofNullable(this.vpcPeeringConnectionId);
    }

    private GetRouteArgs() {}

    private GetRouteArgs(GetRouteArgs $) {
        this.carrierGatewayId = $.carrierGatewayId;
        this.coreNetworkArn = $.coreNetworkArn;
        this.destinationCidrBlock = $.destinationCidrBlock;
        this.destinationIpv6CidrBlock = $.destinationIpv6CidrBlock;
        this.destinationPrefixListId = $.destinationPrefixListId;
        this.egressOnlyGatewayId = $.egressOnlyGatewayId;
        this.gatewayId = $.gatewayId;
        this.instanceId = $.instanceId;
        this.localGatewayId = $.localGatewayId;
        this.natGatewayId = $.natGatewayId;
        this.networkInterfaceId = $.networkInterfaceId;
        this.routeTableId = $.routeTableId;
        this.transitGatewayId = $.transitGatewayId;
        this.vpcPeeringConnectionId = $.vpcPeeringConnectionId;
    }

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

    public static final class Builder {
        private GetRouteArgs $;

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

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

        /**
         * @param carrierGatewayId EC2 Carrier Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder carrierGatewayId(@Nullable Output carrierGatewayId) {
            $.carrierGatewayId = carrierGatewayId;
            return this;
        }

        /**
         * @param carrierGatewayId EC2 Carrier Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder carrierGatewayId(String carrierGatewayId) {
            return carrierGatewayId(Output.of(carrierGatewayId));
        }

        /**
         * @param coreNetworkArn Core network ARN of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder coreNetworkArn(@Nullable Output coreNetworkArn) {
            $.coreNetworkArn = coreNetworkArn;
            return this;
        }

        /**
         * @param coreNetworkArn Core network ARN of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder coreNetworkArn(String coreNetworkArn) {
            return coreNetworkArn(Output.of(coreNetworkArn));
        }

        /**
         * @param destinationCidrBlock CIDR block of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrBlock(@Nullable Output destinationCidrBlock) {
            $.destinationCidrBlock = destinationCidrBlock;
            return this;
        }

        /**
         * @param destinationCidrBlock CIDR block of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationCidrBlock(String destinationCidrBlock) {
            return destinationCidrBlock(Output.of(destinationCidrBlock));
        }

        /**
         * @param destinationIpv6CidrBlock IPv6 CIDR block of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationIpv6CidrBlock(@Nullable Output destinationIpv6CidrBlock) {
            $.destinationIpv6CidrBlock = destinationIpv6CidrBlock;
            return this;
        }

        /**
         * @param destinationIpv6CidrBlock IPv6 CIDR block of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationIpv6CidrBlock(String destinationIpv6CidrBlock) {
            return destinationIpv6CidrBlock(Output.of(destinationIpv6CidrBlock));
        }

        /**
         * @param destinationPrefixListId ID of a managed prefix list destination of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationPrefixListId(@Nullable Output destinationPrefixListId) {
            $.destinationPrefixListId = destinationPrefixListId;
            return this;
        }

        /**
         * @param destinationPrefixListId ID of a managed prefix list destination of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder destinationPrefixListId(String destinationPrefixListId) {
            return destinationPrefixListId(Output.of(destinationPrefixListId));
        }

        /**
         * @param egressOnlyGatewayId Egress Only Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder egressOnlyGatewayId(@Nullable Output egressOnlyGatewayId) {
            $.egressOnlyGatewayId = egressOnlyGatewayId;
            return this;
        }

        /**
         * @param egressOnlyGatewayId Egress Only Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder egressOnlyGatewayId(String egressOnlyGatewayId) {
            return egressOnlyGatewayId(Output.of(egressOnlyGatewayId));
        }

        /**
         * @param gatewayId Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder gatewayId(@Nullable Output gatewayId) {
            $.gatewayId = gatewayId;
            return this;
        }

        /**
         * @param gatewayId Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder gatewayId(String gatewayId) {
            return gatewayId(Output.of(gatewayId));
        }

        /**
         * @param instanceId Instance ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(@Nullable Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId Instance ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

        /**
         * @param localGatewayId Local Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder localGatewayId(@Nullable Output localGatewayId) {
            $.localGatewayId = localGatewayId;
            return this;
        }

        /**
         * @param localGatewayId Local Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder localGatewayId(String localGatewayId) {
            return localGatewayId(Output.of(localGatewayId));
        }

        /**
         * @param natGatewayId NAT Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder natGatewayId(@Nullable Output natGatewayId) {
            $.natGatewayId = natGatewayId;
            return this;
        }

        /**
         * @param natGatewayId NAT Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder natGatewayId(String natGatewayId) {
            return natGatewayId(Output.of(natGatewayId));
        }

        /**
         * @param networkInterfaceId Network Interface ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(@Nullable Output networkInterfaceId) {
            $.networkInterfaceId = networkInterfaceId;
            return this;
        }

        /**
         * @param networkInterfaceId Network Interface ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(String networkInterfaceId) {
            return networkInterfaceId(Output.of(networkInterfaceId));
        }

        /**
         * @param routeTableId ID of the specific Route Table containing the Route entry.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(Output routeTableId) {
            $.routeTableId = routeTableId;
            return this;
        }

        /**
         * @param routeTableId ID of the specific Route Table containing the Route entry.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(String routeTableId) {
            return routeTableId(Output.of(routeTableId));
        }

        /**
         * @param transitGatewayId EC2 Transit Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayId(@Nullable Output transitGatewayId) {
            $.transitGatewayId = transitGatewayId;
            return this;
        }

        /**
         * @param transitGatewayId EC2 Transit Gateway ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder transitGatewayId(String transitGatewayId) {
            return transitGatewayId(Output.of(transitGatewayId));
        }

        /**
         * @param vpcPeeringConnectionId VPC Peering Connection ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(@Nullable Output vpcPeeringConnectionId) {
            $.vpcPeeringConnectionId = vpcPeeringConnectionId;
            return this;
        }

        /**
         * @param vpcPeeringConnectionId VPC Peering Connection ID of the Route belonging to the Route Table.
         * 
         * @return builder
         * 
         */
        public Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) {
            return vpcPeeringConnectionId(Output.of(vpcPeeringConnectionId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy