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

com.pulumi.aws.directconnect.inputs.BgpPeerState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.inputs;

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


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

    public static final BgpPeerState Empty = new BgpPeerState();

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

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

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

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

    /**
     * The Direct Connect endpoint on which the BGP peer terminates.
     * 
     */
    @Import(name="awsDevice")
    private @Nullable Output awsDevice;

    /**
     * @return The Direct Connect endpoint on which the BGP peer terminates.
     * 
     */
    public Optional> awsDevice() {
        return Optional.ofNullable(this.awsDevice);
    }

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

    /**
     * @return The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
     * 
     */
    public Optional> bgpAsn() {
        return Optional.ofNullable(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 BGP peer.
     * 
     */
    @Import(name="bgpPeerId")
    private @Nullable Output bgpPeerId;

    /**
     * @return The ID of the BGP peer.
     * 
     */
    public Optional> bgpPeerId() {
        return Optional.ofNullable(this.bgpPeerId);
    }

    /**
     * The Up/Down state of the BGP peer.
     * 
     */
    @Import(name="bgpStatus")
    private @Nullable Output bgpStatus;

    /**
     * @return The Up/Down state of the BGP peer.
     * 
     */
    public Optional> bgpStatus() {
        return Optional.ofNullable(this.bgpStatus);
    }

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

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

    /**
     * The ID of the Direct Connect virtual interface on which to create the BGP peer.
     * 
     */
    @Import(name="virtualInterfaceId")
    private @Nullable Output virtualInterfaceId;

    /**
     * @return The ID of the Direct Connect virtual interface on which to create the BGP peer.
     * 
     */
    public Optional> virtualInterfaceId() {
        return Optional.ofNullable(this.virtualInterfaceId);
    }

    private BgpPeerState() {}

    private BgpPeerState(BgpPeerState $) {
        this.addressFamily = $.addressFamily;
        this.amazonAddress = $.amazonAddress;
        this.awsDevice = $.awsDevice;
        this.bgpAsn = $.bgpAsn;
        this.bgpAuthKey = $.bgpAuthKey;
        this.bgpPeerId = $.bgpPeerId;
        this.bgpStatus = $.bgpStatus;
        this.customerAddress = $.customerAddress;
        this.virtualInterfaceId = $.virtualInterfaceId;
    }

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

    public static final class Builder {
        private BgpPeerState $;

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

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

        /**
         * @param addressFamily The address family for the BGP peer. ` ipv4  ` or `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder addressFamily(@Nullable 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 on public virtual interfaces.
         * 
         * @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 on public virtual interfaces.
         * 
         * @return builder
         * 
         */
        public Builder amazonAddress(String amazonAddress) {
            return amazonAddress(Output.of(amazonAddress));
        }

        /**
         * @param awsDevice The Direct Connect endpoint on which the BGP peer terminates.
         * 
         * @return builder
         * 
         */
        public Builder awsDevice(@Nullable Output awsDevice) {
            $.awsDevice = awsDevice;
            return this;
        }

        /**
         * @param awsDevice The Direct Connect endpoint on which the BGP peer terminates.
         * 
         * @return builder
         * 
         */
        public Builder awsDevice(String awsDevice) {
            return awsDevice(Output.of(awsDevice));
        }

        /**
         * @param bgpAsn The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
         * 
         * @return builder
         * 
         */
        public Builder bgpAsn(@Nullable 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 bgpPeerId The ID of the BGP peer.
         * 
         * @return builder
         * 
         */
        public Builder bgpPeerId(@Nullable Output bgpPeerId) {
            $.bgpPeerId = bgpPeerId;
            return this;
        }

        /**
         * @param bgpPeerId The ID of the BGP peer.
         * 
         * @return builder
         * 
         */
        public Builder bgpPeerId(String bgpPeerId) {
            return bgpPeerId(Output.of(bgpPeerId));
        }

        /**
         * @param bgpStatus The Up/Down state of the BGP peer.
         * 
         * @return builder
         * 
         */
        public Builder bgpStatus(@Nullable Output bgpStatus) {
            $.bgpStatus = bgpStatus;
            return this;
        }

        /**
         * @param bgpStatus The Up/Down state of the BGP peer.
         * 
         * @return builder
         * 
         */
        public Builder bgpStatus(String bgpStatus) {
            return bgpStatus(Output.of(bgpStatus));
        }

        /**
         * @param customerAddress The IPv4 CIDR destination address to which Amazon should send traffic.
         * Required for IPv4 BGP peers on public virtual interfaces.
         * 
         * @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 on public virtual interfaces.
         * 
         * @return builder
         * 
         */
        public Builder customerAddress(String customerAddress) {
            return customerAddress(Output.of(customerAddress));
        }

        /**
         * @param virtualInterfaceId The ID of the Direct Connect virtual interface on which to create the BGP peer.
         * 
         * @return builder
         * 
         */
        public Builder virtualInterfaceId(@Nullable Output virtualInterfaceId) {
            $.virtualInterfaceId = virtualInterfaceId;
            return this;
        }

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

        public BgpPeerState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy