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

com.pulumi.aws.directconnect.PublicVirtualInterfaceArgs Maven / Gradle / Ivy

// *** 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.directconnect;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
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 PublicVirtualInterfaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final PublicVirtualInterfaceArgs Empty = new PublicVirtualInterfaceArgs();

    /**
     * The address family for the BGP peer. ` ipv4  ` or `ipv6`.
     * 
     */
    @Import(name="addressFamily", required=true)
    private Output addressFamily;

    /**
     * @return The address family for the BGP peer. ` ipv4  ` or `ipv6`.
     * 
     */
    public Output addressFamily() {
        return this.addressFamily;
    }

    /**
     * The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
     * 
     */
    @Import(name="amazonAddress")
    private @Nullable Output amazonAddress;

    /**
     * @return The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
     * 
     */
    public Optional> amazonAddress() {
        return Optional.ofNullable(this.amazonAddress);
    }

    /**
     * The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
     * 
     */
    @Import(name="bgpAsn", required=true)
    private Output bgpAsn;

    /**
     * @return The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
     * 
     */
    public Output bgpAsn() {
        return this.bgpAsn;
    }

    /**
     * The authentication key for BGP configuration.
     * 
     */
    @Import(name="bgpAuthKey")
    private @Nullable Output bgpAuthKey;

    /**
     * @return The authentication key for BGP configuration.
     * 
     */
    public Optional> bgpAuthKey() {
        return Optional.ofNullable(this.bgpAuthKey);
    }

    /**
     * The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
     * 
     */
    @Import(name="connectionId", required=true)
    private Output connectionId;

    /**
     * @return The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
     * 
     */
    public Output connectionId() {
        return this.connectionId;
    }

    /**
     * The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
     * 
     */
    @Import(name="customerAddress")
    private @Nullable Output customerAddress;

    /**
     * @return The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
     * 
     */
    public Optional> customerAddress() {
        return Optional.ofNullable(this.customerAddress);
    }

    /**
     * The name for the virtual interface.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name for the virtual interface.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of routes to be advertised to the AWS network in this region.
     * 
     */
    @Import(name="routeFilterPrefixes", required=true)
    private Output> routeFilterPrefixes;

    /**
     * @return A list of routes to be advertised to the AWS network in this region.
     * 
     */
    public Output> routeFilterPrefixes() {
        return this.routeFilterPrefixes;
    }

    /**
     * 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 VLAN ID.
     * 
     */
    @Import(name="vlan", required=true)
    private Output vlan;

    /**
     * @return The VLAN ID.
     * 
     */
    public Output vlan() {
        return this.vlan;
    }

    private PublicVirtualInterfaceArgs() {}

    private PublicVirtualInterfaceArgs(PublicVirtualInterfaceArgs $) {
        this.addressFamily = $.addressFamily;
        this.amazonAddress = $.amazonAddress;
        this.bgpAsn = $.bgpAsn;
        this.bgpAuthKey = $.bgpAuthKey;
        this.connectionId = $.connectionId;
        this.customerAddress = $.customerAddress;
        this.name = $.name;
        this.routeFilterPrefixes = $.routeFilterPrefixes;
        this.tags = $.tags;
        this.vlan = $.vlan;
    }

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

    public static final class Builder {
        private PublicVirtualInterfaceArgs $;

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

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

        /**
         * @param addressFamily The address family for the BGP peer. ` ipv4  ` or `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder addressFamily(Output addressFamily) {
            $.addressFamily = addressFamily;
            return this;
        }

        /**
         * @param addressFamily The address family for the BGP peer. ` ipv4  ` or `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder addressFamily(String addressFamily) {
            return addressFamily(Output.of(addressFamily));
        }

        /**
         * @param amazonAddress The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
         * 
         * @return builder
         * 
         */
        public Builder amazonAddress(@Nullable Output amazonAddress) {
            $.amazonAddress = amazonAddress;
            return this;
        }

        /**
         * @param amazonAddress The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
         * 
         * @return builder
         * 
         */
        public Builder amazonAddress(String amazonAddress) {
            return amazonAddress(Output.of(amazonAddress));
        }

        /**
         * @param bgpAsn The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
         * 
         * @return builder
         * 
         */
        public Builder bgpAsn(Output bgpAsn) {
            $.bgpAsn = bgpAsn;
            return this;
        }

        /**
         * @param bgpAsn The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
         * 
         * @return builder
         * 
         */
        public Builder bgpAsn(Integer bgpAsn) {
            return bgpAsn(Output.of(bgpAsn));
        }

        /**
         * @param bgpAuthKey The authentication key for BGP configuration.
         * 
         * @return builder
         * 
         */
        public Builder bgpAuthKey(@Nullable Output bgpAuthKey) {
            $.bgpAuthKey = bgpAuthKey;
            return this;
        }

        /**
         * @param bgpAuthKey The authentication key for BGP configuration.
         * 
         * @return builder
         * 
         */
        public Builder bgpAuthKey(String bgpAuthKey) {
            return bgpAuthKey(Output.of(bgpAuthKey));
        }

        /**
         * @param connectionId The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(Output connectionId) {
            $.connectionId = connectionId;
            return this;
        }

        /**
         * @param connectionId The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(String connectionId) {
            return connectionId(Output.of(connectionId));
        }

        /**
         * @param customerAddress The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
         * 
         * @return builder
         * 
         */
        public Builder customerAddress(@Nullable Output customerAddress) {
            $.customerAddress = customerAddress;
            return this;
        }

        /**
         * @param customerAddress The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
         * 
         * @return builder
         * 
         */
        public Builder customerAddress(String customerAddress) {
            return customerAddress(Output.of(customerAddress));
        }

        /**
         * @param name The name for the virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name for the virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param routeFilterPrefixes A list of routes to be advertised to the AWS network in this region.
         * 
         * @return builder
         * 
         */
        public Builder routeFilterPrefixes(Output> routeFilterPrefixes) {
            $.routeFilterPrefixes = routeFilterPrefixes;
            return this;
        }

        /**
         * @param routeFilterPrefixes A list of routes to be advertised to the AWS network in this region.
         * 
         * @return builder
         * 
         */
        public Builder routeFilterPrefixes(List routeFilterPrefixes) {
            return routeFilterPrefixes(Output.of(routeFilterPrefixes));
        }

        /**
         * @param routeFilterPrefixes A list of routes to be advertised to the AWS network in this region.
         * 
         * @return builder
         * 
         */
        public Builder routeFilterPrefixes(String... routeFilterPrefixes) {
            return routeFilterPrefixes(List.of(routeFilterPrefixes));
        }

        /**
         * @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 vlan The VLAN ID.
         * 
         * @return builder
         * 
         */
        public Builder vlan(Output vlan) {
            $.vlan = vlan;
            return this;
        }

        /**
         * @param vlan The VLAN ID.
         * 
         * @return builder
         * 
         */
        public Builder vlan(Integer vlan) {
            return vlan(Output.of(vlan));
        }

        public PublicVirtualInterfaceArgs build() {
            if ($.addressFamily == null) {
                throw new MissingRequiredPropertyException("PublicVirtualInterfaceArgs", "addressFamily");
            }
            if ($.bgpAsn == null) {
                throw new MissingRequiredPropertyException("PublicVirtualInterfaceArgs", "bgpAsn");
            }
            if ($.connectionId == null) {
                throw new MissingRequiredPropertyException("PublicVirtualInterfaceArgs", "connectionId");
            }
            if ($.routeFilterPrefixes == null) {
                throw new MissingRequiredPropertyException("PublicVirtualInterfaceArgs", "routeFilterPrefixes");
            }
            if ($.vlan == null) {
                throw new MissingRequiredPropertyException("PublicVirtualInterfaceArgs", "vlan");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy