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

com.pulumi.aws.networkmanager.outputs.ConnectPeerConfiguration 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.networkmanager.outputs;

import com.pulumi.aws.networkmanager.outputs.ConnectPeerConfigurationBgpConfiguration;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ConnectPeerConfiguration {
    private @Nullable List bgpConfigurations;
    /**
     * @return A Connect peer core network address.
     * 
     */
    private @Nullable String coreNetworkAddress;
    /**
     * @return The inside IP addresses used for BGP peering. Required when the Connect attachment protocol is `GRE`. See `aws.networkmanager.ConnectAttachment` for details.
     * 
     */
    private @Nullable List insideCidrBlocks;
    /**
     * @return The Connect peer address.
     * 
     * The following arguments are optional:
     * 
     */
    private @Nullable String peerAddress;
    private @Nullable String protocol;

    private ConnectPeerConfiguration() {}
    public List bgpConfigurations() {
        return this.bgpConfigurations == null ? List.of() : this.bgpConfigurations;
    }
    /**
     * @return A Connect peer core network address.
     * 
     */
    public Optional coreNetworkAddress() {
        return Optional.ofNullable(this.coreNetworkAddress);
    }
    /**
     * @return The inside IP addresses used for BGP peering. Required when the Connect attachment protocol is `GRE`. See `aws.networkmanager.ConnectAttachment` for details.
     * 
     */
    public List insideCidrBlocks() {
        return this.insideCidrBlocks == null ? List.of() : this.insideCidrBlocks;
    }
    /**
     * @return The Connect peer address.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional peerAddress() {
        return Optional.ofNullable(this.peerAddress);
    }
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }

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

    public static Builder builder(ConnectPeerConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List bgpConfigurations;
        private @Nullable String coreNetworkAddress;
        private @Nullable List insideCidrBlocks;
        private @Nullable String peerAddress;
        private @Nullable String protocol;
        public Builder() {}
        public Builder(ConnectPeerConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bgpConfigurations = defaults.bgpConfigurations;
    	      this.coreNetworkAddress = defaults.coreNetworkAddress;
    	      this.insideCidrBlocks = defaults.insideCidrBlocks;
    	      this.peerAddress = defaults.peerAddress;
    	      this.protocol = defaults.protocol;
        }

        @CustomType.Setter
        public Builder bgpConfigurations(@Nullable List bgpConfigurations) {

            this.bgpConfigurations = bgpConfigurations;
            return this;
        }
        public Builder bgpConfigurations(ConnectPeerConfigurationBgpConfiguration... bgpConfigurations) {
            return bgpConfigurations(List.of(bgpConfigurations));
        }
        @CustomType.Setter
        public Builder coreNetworkAddress(@Nullable String coreNetworkAddress) {

            this.coreNetworkAddress = coreNetworkAddress;
            return this;
        }
        @CustomType.Setter
        public Builder insideCidrBlocks(@Nullable List insideCidrBlocks) {

            this.insideCidrBlocks = insideCidrBlocks;
            return this;
        }
        public Builder insideCidrBlocks(String... insideCidrBlocks) {
            return insideCidrBlocks(List.of(insideCidrBlocks));
        }
        @CustomType.Setter
        public Builder peerAddress(@Nullable String peerAddress) {

            this.peerAddress = peerAddress;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(@Nullable String protocol) {

            this.protocol = protocol;
            return this;
        }
        public ConnectPeerConfiguration build() {
            final var _resultValue = new ConnectPeerConfiguration();
            _resultValue.bgpConfigurations = bgpConfigurations;
            _resultValue.coreNetworkAddress = coreNetworkAddress;
            _resultValue.insideCidrBlocks = insideCidrBlocks;
            _resultValue.peerAddress = peerAddress;
            _resultValue.protocol = protocol;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy