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

com.pulumi.aws.directconnect.HostedPublicVirtualInterfaceArgs 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.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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class HostedPublicVirtualInterfaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final HostedPublicVirtualInterfaceArgs Empty = new HostedPublicVirtualInterfaceArgs();

    /**
     * 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);
    }

    /**
     * The AWS account that will own the new virtual interface.
     * 
     */
    @Import(name="ownerAccountId", required=true)
    private Output ownerAccountId;

    /**
     * @return The AWS account that will own the new virtual interface.
     * 
     */
    public Output ownerAccountId() {
        return this.ownerAccountId;
    }

    /**
     * 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;
    }

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

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

    private HostedPublicVirtualInterfaceArgs() {}

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

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

    public static final class Builder {
        private HostedPublicVirtualInterfaceArgs $;

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

        public Builder(HostedPublicVirtualInterfaceArgs defaults) {
            $ = new HostedPublicVirtualInterfaceArgs(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 ownerAccountId The AWS account that will own the new virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccountId(Output ownerAccountId) {
            $.ownerAccountId = ownerAccountId;
            return this;
        }

        /**
         * @param ownerAccountId The AWS account that will own the new virtual interface.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccountId(String ownerAccountId) {
            return ownerAccountId(Output.of(ownerAccountId));
        }

        /**
         * @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 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 HostedPublicVirtualInterfaceArgs build() {
            if ($.addressFamily == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "addressFamily");
            }
            if ($.bgpAsn == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "bgpAsn");
            }
            if ($.connectionId == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "connectionId");
            }
            if ($.ownerAccountId == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "ownerAccountId");
            }
            if ($.routeFilterPrefixes == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "routeFilterPrefixes");
            }
            if ($.vlan == null) {
                throw new MissingRequiredPropertyException("HostedPublicVirtualInterfaceArgs", "vlan");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy